diff --git a/pytest-remotedata-0.3.2.tar.gz b/pytest-remotedata-0.3.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a402ca0ad1f3237d18da0547ad3432d1943101a6 Binary files /dev/null and b/pytest-remotedata-0.3.2.tar.gz differ diff --git a/python-pytest-remotedata.spec b/python-pytest-remotedata.spec new file mode 100644 index 0000000000000000000000000000000000000000..edc531d5b70fad748348cf9792e213c72b342bf4 --- /dev/null +++ b/python-pytest-remotedata.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytest-remotedata +Version: 0.3.2 +Release: 1 +Summary: Pytest plugin for controlling remote data access. +License: BSD +URL: https://astropy.org +Source0: https://files.pythonhosted.org/packages/54/6c/cd637f54a05139b4e64825230352e6fa4149b4c3116246a7c6f5368d72cb/pytest-remotedata-0.3.2.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-pytest + +%description +This package provides a plugin for the pytest framework that allows developers to control unit tests that require access to data from the internet.It was originally part of the astropy core package,but has been moved to a separate package in order to be of more general use. + +%package -n python3-pytest-remotedata +Summary: Pytest plugin for controlling remote data access. +Provides: python-pytest-remotedata +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-pytest-remotedata +This package provides a plugin for the pytest framework that allows developers to control unit tests that require access to data from the internet.It was originally part of the astropy core package,but has been moved to a separate package in order to be of more general use. + +%package help +Summary: Development documents and examples for pytest-remotedata +Provides: python3-pytest-remotedata-doc +%description help +Development documents and examples for pytest-remotedata + +%prep +%autosetup -n pytest-remotedata-0.3.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pytest-remotedata -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sun May 23 2021 Python_Bot +- Package Spec generated