diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:46:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:46:32 +0000 |
commit | 1fa6aa53ff831a961a47814ddc8c3a9138510e4c (patch) | |
tree | fe632ec7c744952416f2aaf3eae75d1e8adcffeb | |
parent | ab98f56d9b444e380fc4caad8d5e76f3da4b1337 (diff) |
automatic import of python-unpaddedbase64
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-unpaddedbase64.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/unpaddedbase64-2.1.0.tar.gz diff --git a/python-unpaddedbase64.spec b/python-unpaddedbase64.spec new file mode 100644 index 0000000..ef67671 --- /dev/null +++ b/python-unpaddedbase64.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-unpaddedbase64 +Version: 2.1.0 +Release: 1 +Summary: Encode and decode Base64 without "=" padding +License: Apache-2.0 +URL: https://github.com/matrix-org/python-unpaddedbase64 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4d/f8/114266b21a7a9e3d09b352bb63c9d61d918bb7aa35d08c722793bfbfd28f/unpaddedbase64-2.1.0.tar.gz +BuildArch: noarch + + +%description +Encode and decode Base64 without "=" padding. +`RFC 4648`_ specifies that Base64 should be padded to a multiple of 4 bytes +using "=" characters. However many protocols choose to omit the "=" padding. + +%package -n python3-unpaddedbase64 +Summary: Encode and decode Base64 without "=" padding +Provides: python-unpaddedbase64 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-unpaddedbase64 +Encode and decode Base64 without "=" padding. +`RFC 4648`_ specifies that Base64 should be padded to a multiple of 4 bytes +using "=" characters. However many protocols choose to omit the "=" padding. + +%package help +Summary: Development documents and examples for unpaddedbase64 +Provides: python3-unpaddedbase64-doc +%description help +Encode and decode Base64 without "=" padding. +`RFC 4648`_ specifies that Base64 should be padded to a multiple of 4 bytes +using "=" characters. However many protocols choose to omit the "=" padding. + +%prep +%autosetup -n unpaddedbase64-2.1.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-unpaddedbase64 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +df85a20cbb8bf365a14db3011e9a7c49 unpaddedbase64-2.1.0.tar.gz |