summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:54:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:54:26 +0000
commit72f946fb96dd8a6c545fde437e485bf8426843c7 (patch)
tree94dcb73f4337e4820865d3f389ab9ebcf75b7060
parent8afdb5459d168818af13ccd9a12d2d971a08a710 (diff)
automatic import of python-sorno-py-scripts
-rw-r--r--.gitignore1
-rw-r--r--python-sorno-py-scripts.spec105
-rw-r--r--sources1
3 files changed, 107 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..65040c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sorno-py-scripts-0.48.7.tar.gz
diff --git a/python-sorno-py-scripts.spec b/python-sorno-py-scripts.spec
new file mode 100644
index 0000000..0562e64
--- /dev/null
+++ b/python-sorno-py-scripts.spec
@@ -0,0 +1,105 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sorno-py-scripts
+Version: 0.48.7
+Release: 1
+Summary: Herman Tai's python scripts all prefixed with "sorno_"
+License: APLv2
+URL: https://github.com/hermantai/sorno-py-scripts
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/94/bb/1848e53ff58de2187f82f658e206d9010114b27849aa6ca8b65b3efd2a77/sorno-py-scripts-0.48.7.tar.gz
+BuildArch: noarch
+
+
+%description
+My python scripts. `sorno` is just a brand name that I use for my stuff.
+It's convenient to use that as a package name instead of the usual "org.xxx".
+The source code of the whole project is in github:
+https://github.com/hermantai/sorno-py-scripts
+PyPI page: https://pypi.python.org/pypi/sorno-py-scripts
+All scripts support the "-h" or the "--help" option for documentation of the
+scripts. Often the documentation is in the __doc__ of the script, so take a
+look at that as well.
+All scripts are prefixed with "`sorno_`" to avoid polluting the Scripts folder
+(in Windows, /usr/local/bin in \*nix) of python or other binaries when this
+suite is installed.
+This project also includes the `sorno` library.
+
+%package -n python3-sorno-py-scripts
+Summary: Herman Tai's python scripts all prefixed with "sorno_"
+Provides: python-sorno-py-scripts
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sorno-py-scripts
+My python scripts. `sorno` is just a brand name that I use for my stuff.
+It's convenient to use that as a package name instead of the usual "org.xxx".
+The source code of the whole project is in github:
+https://github.com/hermantai/sorno-py-scripts
+PyPI page: https://pypi.python.org/pypi/sorno-py-scripts
+All scripts support the "-h" or the "--help" option for documentation of the
+scripts. Often the documentation is in the __doc__ of the script, so take a
+look at that as well.
+All scripts are prefixed with "`sorno_`" to avoid polluting the Scripts folder
+(in Windows, /usr/local/bin in \*nix) of python or other binaries when this
+suite is installed.
+This project also includes the `sorno` library.
+
+%package help
+Summary: Development documents and examples for sorno-py-scripts
+Provides: python3-sorno-py-scripts-doc
+%description help
+My python scripts. `sorno` is just a brand name that I use for my stuff.
+It's convenient to use that as a package name instead of the usual "org.xxx".
+The source code of the whole project is in github:
+https://github.com/hermantai/sorno-py-scripts
+PyPI page: https://pypi.python.org/pypi/sorno-py-scripts
+All scripts support the "-h" or the "--help" option for documentation of the
+scripts. Often the documentation is in the __doc__ of the script, so take a
+look at that as well.
+All scripts are prefixed with "`sorno_`" to avoid polluting the Scripts folder
+(in Windows, /usr/local/bin in \*nix) of python or other binaries when this
+suite is installed.
+This project also includes the `sorno` library.
+
+%prep
+%autosetup -n sorno-py-scripts-0.48.7
+
+%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-sorno-py-scripts -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.48.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..315bef1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c8f055003d8bf23141e75bcab047f546 sorno-py-scripts-0.48.7.tar.gz