summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 08:01:13 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 08:01:13 +0000
commitfbdd3d11386e3dd69480f1a959e962509449ffe7 (patch)
treec6e9b4ae75cd3ea06e81e42e1a426f7754032f30
parentd35c018b3bb985518bdb249b3d7ce7e1fd7e4272 (diff)
automatic import of python3-patoolopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-patool.spec131
-rw-r--r--sources1
3 files changed, 133 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..371913d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/patool-1.12.tar.gz
diff --git a/python-patool.spec b/python-patool.spec
new file mode 100644
index 0000000..dfc6b38
--- /dev/null
+++ b/python-patool.spec
@@ -0,0 +1,131 @@
+%global _empty_manifest_terminate_build 0
+Name: python-patool
+Version: 1.12
+Release: 1
+Summary: portable archive file manager
+License: GPL
+URL: http://wummel.github.io/patool/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/eb/ad3c94cb8cbc1d8b1c47471d2c43537a05fda2bdff54a7d8248873591691/patool-1.12.tar.gz
+BuildArch: noarch
+
+
+%description
+Various archive formats can be created, extracted, tested, listed,
+searched, compared and repacked by patool. The advantage of patool
+is its simplicity in handling archive files without having to remember
+a myriad of programs and options.
+
+The archive format is determined by the file(1) program and as a
+fallback by the archive file extension.
+
+patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), APE (.ape),
+AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2),
+CAB (.cab), COMPRESS (.Z), CPIO (.cpio),
+DEB (.deb), DMS (.dms), FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz),
+LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm),
+RAR (.rar), RZIP (.rz), SHN (.shn), TAR (.tar), XZ (.xz), ZIP (.zip, .jar),
+ZOO (.zoo) and ZPAQ (.zpaq) formats.
+It relies on helper applications to handle those archive formats
+(for example bzip2 for BZIP2 archives).
+
+The archive formats TAR, ZIP, BZIP2 and GZIP
+are supported natively and do not require helper applications to be
+installed.
+
+%package -n python3-patool
+Summary: portable archive file manager
+Provides: python-patool
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-patool
+Various archive formats can be created, extracted, tested, listed,
+searched, compared and repacked by patool. The advantage of patool
+is its simplicity in handling archive files without having to remember
+a myriad of programs and options.
+
+The archive format is determined by the file(1) program and as a
+fallback by the archive file extension.
+
+patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), APE (.ape),
+AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2),
+CAB (.cab), COMPRESS (.Z), CPIO (.cpio),
+DEB (.deb), DMS (.dms), FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz),
+LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm),
+RAR (.rar), RZIP (.rz), SHN (.shn), TAR (.tar), XZ (.xz), ZIP (.zip, .jar),
+ZOO (.zoo) and ZPAQ (.zpaq) formats.
+It relies on helper applications to handle those archive formats
+(for example bzip2 for BZIP2 archives).
+
+The archive formats TAR, ZIP, BZIP2 and GZIP
+are supported natively and do not require helper applications to be
+installed.
+
+%package help
+Summary: Development documents and examples for patool
+Provides: python3-patool-doc
+%description help
+Various archive formats can be created, extracted, tested, listed,
+searched, compared and repacked by patool. The advantage of patool
+is its simplicity in handling archive files without having to remember
+a myriad of programs and options.
+
+The archive format is determined by the file(1) program and as a
+fallback by the archive file extension.
+
+patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), APE (.ape),
+AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2),
+CAB (.cab), COMPRESS (.Z), CPIO (.cpio),
+DEB (.deb), DMS (.dms), FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz),
+LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm),
+RAR (.rar), RZIP (.rz), SHN (.shn), TAR (.tar), XZ (.xz), ZIP (.zip, .jar),
+ZOO (.zoo) and ZPAQ (.zpaq) formats.
+It relies on helper applications to handle those archive formats
+(for example bzip2 for BZIP2 archives).
+
+The archive formats TAR, ZIP, BZIP2 and GZIP
+are supported natively and do not require helper applications to be
+installed.
+
+%prep
+%autosetup -n patool-1.12
+
+%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-patool -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 1.12-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ea887f1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+32a764139a018c6bc497b25630513a33 patool-1.12.tar.gz