summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 05:59:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 05:59:43 +0000
commit938260c9308cc5d0c515a9170bc46ca2507adc72 (patch)
tree47818b523b55ab22b8135400567855f133873cc1
parentaf7449dabd052a208420dc202971bcc8744ef234 (diff)
automatic import of python-restricted-pkgopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-restricted-pkg.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3510c3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/restricted_pkg-1.1.2.tar.gz
diff --git a/python-restricted-pkg.spec b/python-restricted-pkg.spec
new file mode 100644
index 0000000..c68cbae
--- /dev/null
+++ b/python-restricted-pkg.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-restricted_pkg
+Version: 1.1.2
+Release: 1
+Summary: A simple setup.py helper for private repositories
+License: MIT
+URL: http://github.com/rbarrois/restricted_pkg
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ac/63/5ac2d21284e642d9963e63c9bbe415d61f5f545df8c3e92d4dc82fe84495/restricted_pkg-1.1.2.tar.gz
+BuildArch: noarch
+
+
+%description
+This python package provide a simple wrapper around `Distribute <http://packages.python.org/distribute/>`_ to handle
+private projects.
+It is mostly intended for use in a package's ``setup.py`` script.
+It provides the following features:
+- Using a private package index when fetching package dependencies during ``python setup.py install``
+- Restricting the ``register`` and ``upload`` commands to a private package index, or to disable them completely
+- Easy support for authenticated URLs when accessing the index.
+
+%package -n python3-restricted_pkg
+Summary: A simple setup.py helper for private repositories
+Provides: python-restricted_pkg
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-restricted_pkg
+This python package provide a simple wrapper around `Distribute <http://packages.python.org/distribute/>`_ to handle
+private projects.
+It is mostly intended for use in a package's ``setup.py`` script.
+It provides the following features:
+- Using a private package index when fetching package dependencies during ``python setup.py install``
+- Restricting the ``register`` and ``upload`` commands to a private package index, or to disable them completely
+- Easy support for authenticated URLs when accessing the index.
+
+%package help
+Summary: Development documents and examples for restricted_pkg
+Provides: python3-restricted_pkg-doc
+%description help
+This python package provide a simple wrapper around `Distribute <http://packages.python.org/distribute/>`_ to handle
+private projects.
+It is mostly intended for use in a package's ``setup.py`` script.
+It provides the following features:
+- Using a private package index when fetching package dependencies during ``python setup.py install``
+- Restricting the ``register`` and ``upload`` commands to a private package index, or to disable them completely
+- Easy support for authenticated URLs when accessing the index.
+
+%prep
+%autosetup -n restricted_pkg-1.1.2
+
+%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-restricted_pkg -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6c87db9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2a30f0da05c2413976c39852668256f1 restricted_pkg-1.1.2.tar.gz