diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:47:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:47:43 +0000 |
commit | 8662598222d21856701326bd7335f193157a6882 (patch) | |
tree | 3a555bd9a3bce516db9d3b47c12b1f346f848e1f | |
parent | 5f382d1240099550ccc12e67ecd65e41e97479bb (diff) |
automatic import of python-treepoemopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-treepoem.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/treepoem-3.18.0.tar.gz diff --git a/python-treepoem.spec b/python-treepoem.spec new file mode 100644 index 0000000..560b8db --- /dev/null +++ b/python-treepoem.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-treepoem +Version: 3.18.0 +Release: 1 +Summary: Barcode rendering for Python supporting QRcode, Aztec, PDF417, I25, Code128, Code39 and many more types. +License: MIT +URL: https://github.com/adamchainz/treepoem +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3a/72/69d4fdfe25efa0aba45c8fa545bad2382fa1f4c9c13032b3c811a014eb4c/treepoem-3.18.0.tar.gz +BuildArch: noarch + +Requires: python3-Pillow + +%description + + +%package -n python3-treepoem +Summary: Barcode rendering for Python supporting QRcode, Aztec, PDF417, I25, Code128, Code39 and many more types. +Provides: python-treepoem +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-treepoem + + +%package help +Summary: Development documents and examples for treepoem +Provides: python3-treepoem-doc +%description help + + +%prep +%autosetup -n treepoem-3.18.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-treepoem -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.18.0-1 +- Package Spec generated @@ -0,0 +1 @@ +53989d5c527be598cb9f982636234447 treepoem-3.18.0.tar.gz |