summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:40:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:40:32 +0000
commitfc74f11a7a506c6f8f91ef40f366bc7b279bafec (patch)
treea9dd1393b5cd0aee661ebdebd09476a3e0a6eb9e
parente6c40ab40f7209f5c063ea9133d6265890cf431d (diff)
automatic import of python-scramp
-rw-r--r--.gitignore1
-rw-r--r--python-scramp.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2109c33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/scramp-1.4.4.tar.gz
diff --git a/python-scramp.spec b/python-scramp.spec
new file mode 100644
index 0000000..c42c14d
--- /dev/null
+++ b/python-scramp.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-scramp
+Version: 1.4.4
+Release: 1
+Summary: An implementation of the SCRAM protocol.
+License: MIT No Attribution
+URL: https://github.com/tlocke/scramp
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/de/26/64cb6f2564c79b8e4e8809e844c9fe464a948221c0b2d173cb9586d06e38/scramp-1.4.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-asn1crypto
+Requires: python3-importlib-metadata
+
+%description
+
+
+%package -n python3-scramp
+Summary: An implementation of the SCRAM protocol.
+Provides: python-scramp
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-scramp
+
+
+%package help
+Summary: Development documents and examples for scramp
+Provides: python3-scramp-doc
+%description help
+
+
+%prep
+%autosetup -n scramp-1.4.4
+
+%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-scramp -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c0532e6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+48e0d85b07fc5de306cfed0e14e9d5d4 scramp-1.4.4.tar.gz