diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:57:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:57:10 +0000 |
| commit | 4f15e97616b78158d3b77c90144c8585ae177390 (patch) | |
| tree | ace4a0ef1de2603cd09abc91b129f2b290cba643 /python-infi-instruct.spec | |
| parent | 11a7035b45a39b273738de79cb0c0943cef2bf05 (diff) | |
automatic import of python-infi-instruct
Diffstat (limited to 'python-infi-instruct.spec')
| -rw-r--r-- | python-infi-instruct.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-infi-instruct.spec b/python-infi-instruct.spec new file mode 100644 index 0000000..cd1be8f --- /dev/null +++ b/python-infi-instruct.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-infi.instruct +Version: 0.6.33 +Release: 1 +Summary: declarative structure marshalling +License: BSD +URL: https://github.com/Infinidat/infi.instruct +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2d/b1/9e3e03ca204f95e08177016571bc51be1241edc36f4e1e5a52479d9772be/infi.instruct-0.6.33.tar.gz +BuildArch: noarch + + +%description +declarative structure marshalling + +%package -n python3-infi.instruct +Summary: declarative structure marshalling +Provides: python-infi.instruct +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-infi.instruct +declarative structure marshalling + +%package help +Summary: Development documents and examples for infi.instruct +Provides: python3-infi.instruct-doc +%description help +declarative structure marshalling + +%prep +%autosetup -n infi.instruct-0.6.33 + +%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-infi.instruct -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.33-1 +- Package Spec generated |
