diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 23:56:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 23:56:43 +0000 |
commit | 66cd507f15976b1a13408053ea503daae71e5e08 (patch) | |
tree | c38a064184409f867079475c9c8d1b1b5ae3e16e | |
parent | 757559f23e39b1f7120ff98131daaa61b084dfa2 (diff) |
automatic import of python-pymacaroons
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pymacaroons.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/pymacaroons-0.13.0.tar.gz diff --git a/python-pymacaroons.spec b/python-pymacaroons.spec new file mode 100644 index 0000000..b2ea380 --- /dev/null +++ b/python-pymacaroons.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pymacaroons +Version: 0.13.0 +Release: 1 +Summary: Macaroon library for Python +License: MIT +URL: https://github.com/ecordell/pymacaroons +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/b4/52ff00b59e91c4817ca60210c33caf11e85a7f68f7b361748ca2eb50923e/pymacaroons-0.13.0.tar.gz +BuildArch: noarch + +Requires: python3-PyNaCl +Requires: python3-six + +%description +PyMacaroons is a Python implementation of Macaroons. *They're better than cookies!* + +%package -n python3-pymacaroons +Summary: Macaroon library for Python +Provides: python-pymacaroons +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pymacaroons +PyMacaroons is a Python implementation of Macaroons. *They're better than cookies!* + +%package help +Summary: Development documents and examples for pymacaroons +Provides: python3-pymacaroons-doc +%description help +PyMacaroons is a Python implementation of Macaroons. *They're better than cookies!* + +%prep +%autosetup -n pymacaroons-0.13.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-pymacaroons -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.0-1 +- Package Spec generated @@ -0,0 +1 @@ +72b7d892a76618bd16f557e8e728b7f5 pymacaroons-0.13.0.tar.gz |