diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:01:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:01:07 +0000 |
commit | 7fbae12d2ad3db5da25e4e0278947f82d6ef40c1 (patch) | |
tree | f29be3e0efead1663ecadf0dd54d0e1c393424da | |
parent | fab1fcdcf320e54ce4473c0487236e43fde2e6d6 (diff) |
automatic import of python-user-agent
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-user-agent.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/user_agent-0.1.10.tar.gz diff --git a/python-user-agent.spec b/python-user-agent.spec new file mode 100644 index 0000000..d5b23bf --- /dev/null +++ b/python-user-agent.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-user-agent +Version: 0.1.10 +Release: 1 +Summary: User-Agent generator +License: MIT License +URL: https://github.com/lorien/user_agent +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b5/db/559a95b7cc146b269a0cc4cb7a53471ddd270ce9b29f23a5ed5e118acd4e/user_agent-0.1.10.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-user-agent +Summary: User-Agent generator +Provides: python-user-agent +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-user-agent + + +%package help +Summary: Development documents and examples for user-agent +Provides: python3-user-agent-doc +%description help + + +%prep +%autosetup -n user-agent-0.1.10 + +%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-user-agent -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.10-1 +- Package Spec generated @@ -0,0 +1 @@ +39e3af475e078fa1a6811b9cbac464e9 user_agent-0.1.10.tar.gz |