summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 06:28:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 06:28:20 +0000
commit38e6f7ebd6e73a7dbdcbade1b1ec4d8f7ba39c29 (patch)
tree3bb29aae1ed4ee2cfaf7056ab713362a18e98575
parent4f2378a2e6aa8620dc221f950f029df1813a5471 (diff)
automatic import of python-autosignopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-autosign.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f348a28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/autosign-1.1.0.tar.gz
diff --git a/python-autosign.spec b/python-autosign.spec
new file mode 100644
index 0000000..3a321ab
--- /dev/null
+++ b/python-autosign.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-autosign
+Version: 1.1.0
+Release: 1
+Summary: Adds signature to your files
+License: MIT
+URL: http://github.com/leosartaj/autosign
+Source0: https://mirrors.aliyun.com/pypi/web/packages/cd/5d/fb78ca84708a1ebc06ceb7d137fb1a0301c22d3f02bebede6aba6b3fa5b7/autosign-1.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+autosign can be installed using pip::
+ pip install autosign
+
+%package -n python3-autosign
+Summary: Adds signature to your files
+Provides: python-autosign
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-autosign
+autosign can be installed using pip::
+ pip install autosign
+
+%package help
+Summary: Development documents and examples for autosign
+Provides: python3-autosign-doc
+%description help
+autosign can be installed using pip::
+ pip install autosign
+
+%prep
+%autosetup -n autosign-1.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-autosign -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..da6a654
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+881aa3fc0b07e9ad7bed9470f0297ab0 autosign-1.1.0.tar.gz