diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:00:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:00:22 +0000 |
commit | 41ff0f9237b0ba41c2e41a59f8ab7f9f82bc63b0 (patch) | |
tree | d4a94e21a8a3fb64ed52875fa2de5470228698cf | |
parent | b9ce929f9cf4a3c0fe6e16ecd5042e691993e966 (diff) |
automatic import of python-fwffropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-fwffr.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/fwffr-0.4.0.tar.gz diff --git a/python-fwffr.spec b/python-fwffr.spec new file mode 100644 index 0000000..39f5a88 --- /dev/null +++ b/python-fwffr.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fwffr +Version: 0.4.0 +Release: 1 +Summary: Fixed-width field format reader +License: MIT license +URL: https://github.com/GoodRx/fwffr +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cf/8b/75c37d2376db1a4933aad61399f200aadc65ec33b0316766b11ef0aa3bf0/fwffr-0.4.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-fwffr +Summary: Fixed-width field format reader +Provides: python-fwffr +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-fwffr + + +%package help +Summary: Development documents and examples for fwffr +Provides: python3-fwffr-doc +%description help + + +%prep +%autosetup -n fwffr-0.4.0 + +%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-fwffr -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +df110453e365010db93ce1530fe86682 fwffr-0.4.0.tar.gz |