From 68f668719c6c9744ee3029d6bf29667723cf9af0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 09:26:17 +0000 Subject: automatic import of python-distribute --- .gitignore | 1 + python-distribute.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 python-distribute.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..25aed5c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/distribute-0.7.3.zip diff --git a/python-distribute.spec b/python-distribute.spec new file mode 100644 index 0000000..e889f7c --- /dev/null +++ b/python-distribute.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-distribute +Version: 0.7.3 +Release: 1 +Summary: distribute legacy wrapper +License: PSF or ZPL +URL: http://packages.python.org/distribute +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip +BuildArch: noarch + + +%description +Distribute - legacy package + +This package is a simple compatibility layer that installs Setuptools 0.7+. + +%package -n python3-distribute +Summary: distribute legacy wrapper +Provides: python-distribute +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-distribute +Distribute - legacy package + +This package is a simple compatibility layer that installs Setuptools 0.7+. + +%package help +Summary: Development documents and examples for distribute +Provides: python3-distribute-doc +%description help +Distribute - legacy package + +This package is a simple compatibility layer that installs Setuptools 0.7+. + +%prep +%autosetup -n distribute-0.7.3 + +%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-distribute -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 0.7.3-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c62f231 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +c6c59594a7b180af57af8a0cc0cf5b4a distribute-0.7.3.zip -- cgit v1.2.3