diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch new file mode 100644 index 0000000000000000000000000000000000000000..6a215df06fa80ba13f3316850bdf290db229bed5 --- /dev/null +++ b/0001-add-setup.py.patch @@ -0,0 +1,23 @@ +From bd745628d1b395a4f6dae1905bcc50d5d535d4e3 Mon Sep 17 00:00:00 2001 +From: liqiuyu123 +Date: Mon, 21 Nov 2022 14:35:18 +0800 +Subject: [PATCH] add setup.py + +--- + setup.py | 4 ++++ + 1 file changed, 4 insertions(+) + create mode 100644 setup.py + +diff --git a/setup.py b/setup.py +new file mode 100644 +index 0000000..1abbd06 +--- /dev/null ++++ b/setup.py +@@ -0,0 +1,4 @@ ++import setuptools ++ ++if __name__ == "__main__": ++ setuptools.setup() +-- +2.37.1.windows.1 + diff --git a/configparser-5.2.0.tar.gz b/configparser-5.2.0.tar.gz deleted file mode 100644 index 9b36d040d6113fcfcb98fb41a6f722c9ca4d2189..0000000000000000000000000000000000000000 Binary files a/configparser-5.2.0.tar.gz and /dev/null differ diff --git a/configparser-5.3.0.tar.gz b/configparser-5.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c7fee9d4505811c81d54a2ad7341c256ea2034dd Binary files /dev/null and b/configparser-5.3.0.tar.gz differ diff --git a/python-configparser.spec b/python-configparser.spec index 4aa2eeeadc7bb868b4edd7f7ff84da22e1e6bbb4..09c5a59c20cf5b4327f1ad294d8673e7d6e78bc9 100644 --- a/python-configparser.spec +++ b/python-configparser.spec @@ -3,44 +3,82 @@ The ancient ConfigParser module available in the standard library 2.x \ has seen a major update in Python 3.2. This package is a backport of \ those changes so that they can be used directly in Python 2.6 - 3.5. +%global _empty_manifest_terminate_build 0 Name: python-configparser -Version: 5.2.0 +Version: 5.3.0 Release: 1 Summary: Configuration file parser for python License: MIT URL: https://bitbucket.org/ambv/configparser -Source0: https://pypi.python.org/packages/source/c/configparser/configparser-%{version}.tar.gz - +Source0: https://files.pythonhosted.org/packages/4b/c0/3a47084aca7a940ed1334f89ed2e67bcb42168c4f40c486e267fe71e7aa0/configparser-5.3.0.tar.gz +Patch0: 0001-add-setup.py.patch BuildArch: noarch -BuildRequires: python3-devel python3-setuptools -Requires: python3-setuptools + +Requires: python3-setuptools %description %_description %package -n python3-configparser Summary: Configuration file parser for python -%{?python_provide:%python_provide python3-configparser} +Provides: python-configparser = %{version}-%{release} +BuildRequires: python3-devel python3-setuptools %description -n python3-configparser %_description +%package help +Summary: Development documents and examples for configparser +Provides: python3-configparser-doc + +%description help %_description + %prep -%autosetup -n configparser-%{version} -p1 -rm -rf *.egg-info +%autosetup -n configparser-%{version} +%patch0 %build -%{__python3} setup.py build +%py3_build %install -%{__python3} setup.py install --skip-build --root %{buildroot} +%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 . %check %{__python3} setup.py test -%files -n python3-configparser -%doc README.rst -%{python3_sitelib}/* +%files -n python3-configparser -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Nov 21 2022 liqiuyu - 5.3.0-1 +- Update package to version 5.3.0 + * Tue Jun 07 2022 SimpleUpdate Robot - 5.2.0-1 - Upgrade to version 5.2.0