diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:00:47 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:00:47 +0000 |
commit | c1e502d522ab00af0f8278a08c28a29fc11a3473 (patch) | |
tree | 9f074c364044326c2d5ac36698f4329fe12c96af | |
parent | 66b11fe8bc2ba0ef85197726e3bf8957d627616e (diff) |
automatic import of python-pytest-filter-subpackage
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pytest-filter-subpackage.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/pytest-filter-subpackage-0.1.2.tar.gz diff --git a/python-pytest-filter-subpackage.spec b/python-pytest-filter-subpackage.spec new file mode 100644 index 0000000..c8251f2 --- /dev/null +++ b/python-pytest-filter-subpackage.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytest-filter-subpackage +Version: 0.1.2 +Release: 1 +Summary: Pytest plugin for filtering based on sub-packages +License: BSD +URL: https://github.com/astropy/pytest-filter-subpackage +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a9/96/2bcf7875a3c0ea6a80b1da8bc85c5e29f66043ed8abafd8ea26a08b48ed0/pytest-filter-subpackage-0.1.2.tar.gz +BuildArch: noarch + +Requires: python3-pytest +Requires: python3-pytest +Requires: python3-pytest-doctestplus +Requires: python3-pytest-cov + +%description + + +%package -n python3-pytest-filter-subpackage +Summary: Pytest plugin for filtering based on sub-packages +Provides: python-pytest-filter-subpackage +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pytest-filter-subpackage + + +%package help +Summary: Development documents and examples for pytest-filter-subpackage +Provides: python3-pytest-filter-subpackage-doc +%description help + + +%prep +%autosetup -n pytest-filter-subpackage-0.1.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-filter-subpackage -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +9f99964c03d1db97936db4a683539146 pytest-filter-subpackage-0.1.2.tar.gz |