From 032e6d672ef28f9234184fff22b7783bc2332bfe Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Fri, 11 Jul 2025 16:14:10 -0300 Subject: [PATCH] Modernize python-augeas spec file Migrate the spec file to use Fedora's modern Python `pyproject` macros. This leverages automatic buildrequires discovery, and aligns the package with current Fedora packaging standards. The %changelog was removed and changed to %autochangelog as it is usable in Fedora, and does not require the changelog to be maintained in the upstream repository. Signed-off-by: Rafael Guterres Jeffman --- .python-augeas.spec.swp | Bin 0 -> 12288 bytes python-augeas.spec | 194 +++------------------------------------- 2 files changed, 10 insertions(+), 184 deletions(-) create mode 100644 .python-augeas.spec.swp diff --git a/.python-augeas.spec.swp b/.python-augeas.spec.swp new file mode 100644 index 0000000000000000000000000000000000000000..6db13072e13959175ade2c3028c17c0ac4d449ca GIT binary patch literal 12288 zcmeI2zmMER6vyWf6sr(ILW&5Ga6oPVk9Th+B({kXh>}Q`%W02`M75grzP0D#Um1@V zT}}&s03`oKlK+5$hMEeh2q7A1p+usg;Op}&d%K)cBvqtm>7((^^Nip7j9pkePn zH@%N#PvCf6hzp~;$v*@T2G{@_U;}J`4X^<=zy@9%1Gd}{Um@L>T*`gdZmhNLCpT<>4X^<=zy{a=8(;%$ zfDNz#Hoykhzzb+VO@z33N{ClpMe_LnfARhQ#~C4h1wVjC;A>#OIdB&I^_mbrgYUp& z@CZBrHLxHC5(MBwa2EV|T8Jm$dvG6o12WJDo1h0i0B?i0z zkKkMI5Ig|;U>kVg9dI5rb-fJuU;}J`4X^<=zy{a=8(;%$z!~sWZHp*Tc}!^$3x9bk z{KIyyZhus1OUgva-0jpIx!t?(%ZaXRpz~>Q;??bC;fXOfhg4(TmleiOipaaX_u2JZ z!(DH9_421TugYv9{8UGjSLA(iYv=PD+t-9Y)hSh8kb5pWx0P75ccIG8n<^-})Ap36 z*r&*jbY5ANrU<&T)$kVyQ4<{3I>mRVU3x*;6Mku^gt66Idb;wIhpW6|>g^ou zYxc%EpXfYBz!Y^p@md8E>dfA#lTxpOh3yR|k{4LXag zqUls0>voHj>TxA@>nu~|V9;@C_Lqs;!X=3+Rdh$ibW(nVl%>&Xzqrz@$g7k1a;FL9tuZCZg`3lUQ3;gD{M> zP3p0XiY!dXL^Yng0Ixz8`iHs7XdX6ig`QD3^ABfaDlG1N5et@G(kdh4dtz_6HRv2o zj=9~FfvxhP*lHj0L1*jQ&Q`D~dqH7>6f(^JR_?zCY`JbjO0k!o2A!UNc&T|K=i+vo T47!>P_F@~!;?8Zkix=i!J}<2O literal 0 HcmV?d00001 diff --git a/python-augeas.spec b/python-augeas.spec index 7f21822..0d0112e 100644 --- a/python-augeas.spec +++ b/python-augeas.spec @@ -6,11 +6,13 @@ License: LGPL-2.1-or-later URL: http://augeas.net/ Source0: https://github.com/hercules-team/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz -BuildRequires: python3-setuptools BuildRequires: python3-devel -BuildRequires: augeas +BuildRequires: augeas-devel BuildRequires: python3-pytest -BuildRequires: python3-cffi +BuildRequires: gcc + +%generate_buildrequires +%pyproject_buildrequires %description python-augeas is a set of Python bindings around augeas. @@ -30,196 +32,20 @@ python3-augeas is a set of Python bindings around augeas. %autosetup -p1 %build -%{py3_build} +%{pyproject_wheel} %install -%{py3_install} +%{pyproject_install} %check -%pytest +%{pytest} %files -n python3-augeas %license COPYING %doc AUTHORS README.md %{python3_sitearch}/_augeas.abi3.so %{python3_sitearch}/augeas/ -%{python3_sitearch}/python_augeas-*.egg-info +%{python3_sitearch}/python_augeas-*.dist-info %changelog -* Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jun 14 2023 Python Maint - 1.1.0-9 -- Rebuilt for Python 3.12 - -* Thu Feb 23 2023 Rafael Jeffman - 1.1.0-8 -- migrated to SPDX license - -* Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Jul 22 2022 Fedora Release Engineering - 1.1.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 1.1.0-5 -- Rebuilt for Python 3.11 - -* Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Mon Oct 11 2021 Felix Schwarz - 1.1.0-3 -- do not install "test" package - -* Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jun 29 2021 Greg Swift - 1.1.0-1 -- Rebuild latest upstream -- Remove merged upstream patch - -* Thu Jun 03 2021 Python Maint - 0.5.0-24 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering - 0.5.0-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 0.5.0-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Sat May 23 2020 Miro Hrončok - 0.5.0-21 -- Rebuilt for Python 3.9 - -* Thu Apr 02 2020 Pino Toscano - 0.5.0-20 -- Backport upstream commit d93e1563add8c40450556b7d74520439ee792bd9 to fix - the discovery of location in the test -- Execute the tests at build time -- Add a simple gating test to execute the test script, and make it gating for - the python-augeas source - -* Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Nov 28 2019 Miro Hrončok - 0.5.0-18 -- Subpackage python2-augeas has been removed - See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal - -* Thu Oct 03 2019 Miro Hrončok - 0.5.0-17 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Fri Aug 16 2019 Miro Hrončok - 0.5.0-16 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 0.5.0-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 0.5.0-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sat Jun 16 2018 Miro Hrončok - 0.5.0-12 -- Rebuilt for Python 3.7 - -* Wed Feb 14 2018 Iryna Shcherbina - 0.5.0-11 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 0.5.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.5.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 12 2016 Charalampos Stratakis - 0.5.0-7 -- Rebuild for Python 3.6 - -* Tue Jul 19 2016 Fedora Release Engineering - 0.5.0-6 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Wed Feb 3 2016 Orion Poplawski - 0.5.0-5 -- Modernize spec -- Fix python3 package file ownership - -* Tue Jan 19 2016 Nils Philippsen -- use %%global instead of %%define - -* Fri Nov 06 2015 Robert Kuska - 0.5.0-4 -- Rebuilt for Python3.5 rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 0.5.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Mon Sep 22 2014 Tomas Radej - 0.5.0-2 -- Added Python 3 subpackage - -* Thu Sep 04 2014 Greg Swift - 0.5.0-1 -- Version 0.5.0 release - -* Sat Jun 07 2014 Fedora Release Engineering - 0.4.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue Oct 22 2013 Greg Swift - 0.4.1-5 -- add python-ctypes dependency (rhbz#1020239) - -* Sun Aug 04 2013 Fedora Release Engineering - 0.4.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 0.4.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Jul 21 2012 Fedora Release Engineering - 0.4.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Mon Jan 16 2012 Greg Swift 0.4.1-1 -- version 0.4.1 -- include egg only on F-9, RHEL-6 and later - -* Sat Jan 14 2012 Fedora Release Engineering - 0.3.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Fri Feb 18 2011 Harald Hoyer 0.3.0-7 -- only include egg-info, if fedora >=9 or rhel >= 6 -Resolves: rhbz#661452 - -* Tue Feb 08 2011 Fedora Release Engineering - 0.3.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Wed Jul 21 2010 David Malcolm - 0.3.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Sun Jul 26 2009 Fedora Release Engineering - 0.3.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Thu Feb 26 2009 Fedora Release Engineering - 0.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.3.0-2 -- Rebuild for Python 2.6 - -* Tue Sep 09 2008 Harald Hoyer 0.3.0-1 -- version 0.3.0 - -* Thu Jul 03 2008 Harald Hoyer 0.2.1-1 -- version 0.2.1 - -* Wed Jun 11 2008 Harald Hoyer 0.2.0-1 -- switched to noarch, dlopen/ python bindings - -* Mon May 05 2008 Harald Hoyer 0.1.0-4 -- version to import in CVS (rhbz#444945) - -* Mon May 05 2008 Harald Hoyer 0.1.0-3 -- set mode of _augeas.so to 0755 - -* Mon May 05 2008 Harald Hoyer 0.1.0-2 -- wildcard to catch egg-info in case it is build - -* Fri May 02 2008 Harald Hoyer 0.1.0-1 -- new version - -* Wed Apr 16 2008 Harald Hoyer - 0.0.8-1 -- initial version +%autochangelog