diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:52:14 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:52:14 +0000 |
commit | 43dfdc6d567e716f42a1281e428d7d92461762d0 (patch) | |
tree | 08c39084461be18bdbf1825cadd0a040e5f55580 | |
parent | cef56dc223cd90dd6578a7f3f829591528e1f866 (diff) |
automatic import of python-addic7ed-cliopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-addic7ed-cli.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/addic7ed-cli-1.4.6.tar.gz diff --git a/python-addic7ed-cli.spec b/python-addic7ed-cli.spec new file mode 100644 index 0000000..471f032 --- /dev/null +++ b/python-addic7ed-cli.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-addic7ed-cli +Version: 1.4.6 +Release: 1 +Summary: A commandline access to addic7ed subtitles +License: Expat +URL: https://github.com/BenoitZugmeyer/addic7ed-cli/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/dd/53/e6687af45a1907cf17ac1a20c0092197a23773b90d121424276c838d6de2/addic7ed-cli-1.4.6.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-addic7ed-cli +Summary: A commandline access to addic7ed subtitles +Provides: python-addic7ed-cli +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-addic7ed-cli + + +%package help +Summary: Development documents and examples for addic7ed-cli +Provides: python3-addic7ed-cli-doc +%description help + + +%prep +%autosetup -n addic7ed-cli-1.4.6 + +%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-addic7ed-cli -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.6-1 +- Package Spec generated @@ -0,0 +1 @@ +cf9d3ebf3b83a768bfa27f1700aad953 addic7ed-cli-1.4.6.tar.gz |