diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:03:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:03:49 +0000 |
commit | 5bc8977c671be26d80991e7748a2c0bdd0c3948a (patch) | |
tree | bd8d3ff50de85ba80024e0fd43c63430fea3d89b | |
parent | b4f819478c239935762221ab8988d57272c5d0c3 (diff) |
automatic import of python-interfile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-interfile.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/interfile-0.3.1.tar.gz diff --git a/python-interfile.spec b/python-interfile.spec new file mode 100644 index 0000000..72e6821 --- /dev/null +++ b/python-interfile.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-interfile +Version: 0.3.1 +Release: 1 +Summary: Interfile read and write. +License: LICENSE.txt +URL: http://www.occiput.io/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/87/629615eb203fbc1c26368b7cdc0d6369de8d30291475163ca9bdde40bffe/interfile-0.3.1.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-interfile +Summary: Interfile read and write. +Provides: python-interfile +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-interfile + + +%package help +Summary: Development documents and examples for interfile +Provides: python3-interfile-doc +%description help + + +%prep +%autosetup -n interfile-0.3.1 + +%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-interfile -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.1-1 +- Package Spec generated @@ -0,0 +1 @@ +f9af1464fc01e9f3fa75bc33158e225c interfile-0.3.1.tar.gz |