Compare commits

..

163 commits

Author SHA1 Message Date
Python Maint
c99b0692f0 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:15:49 +02:00
Python Maint
1753022904 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:46:18 +02:00
Fedora Release Engineering
308dfc9c2a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 20:09:54 +00:00
Thomas Moschny
fa46cc7b0c Fix conditional. 2025-07-15 12:50:14 +02:00
Thomas Moschny
5c5e2591b2 Update action file to produce expected action output. 2025-07-15 11:27:31 +02:00
Thomas Moschny
b0bd45069e Add missing source file. 2025-07-14 22:41:21 +02:00
Thomas Moschny
cb78c6e477 Add support for DNF5 (rhbz#2326283). 2025-07-14 22:29:52 +02:00
Thomas Moschny
e0589d4bdf Update for current Python packaging guidelines (rhbz#2377253). 2025-07-14 22:29:24 +02:00
Thomas Moschny
9bb9852468 Remove all EL7-related conditionals and parts. 2025-07-14 22:29:17 +02:00
Thomas Moschny
79b07d68a8 Update to 1.18.22. 2025-06-29 20:29:30 +02:00
Python Maint
4958724e4d Rebuilt for Python 3.14 2025-06-03 15:25:40 +02:00
Fedora Release Engineering
fde6b6dbd9 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 17:32:22 +00:00
Miroslav Suchý
922d9a0613 convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-25 23:42:02 +02:00
Fedora Release Engineering
c40275ea18 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 22:29:26 +00:00
Python Maint
4482a1283a Rebuilt for Python 3.13 2024-06-07 22:43:55 +02:00
Thomas Moschny
589409b24c Merged PR#6. 2024-05-01 20:59:58 +02:00
Evan Goode
f01b9f8030 Depend on python3-dnf, not dnf
DNF is being replaced by a new package manager, DNF 5, in Fedora 39+.
The `dnf` package will soon be obsoleted by the `dnf5` package. The old
DNF 4 library functionality will still be (and always has been)
available under the `python3-dnf` package; the `dnf` package only
provides `/usr/bin/dnf`.

Eventually, etckeeper should switch to using libdnf5.
2024-05-01 18:23:43 +00:00
Thomas Moschny
d1ea1e7de6 Add patch for rhbz#2203408 from pr#7. 2024-05-01 19:37:41 +02:00
Thomas Moschny
7daca89518 Update to 1.18.21. 2024-05-01 19:02:47 +02:00
Fedora Release Engineering
a5bc565075 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 10:55:18 +00:00
Fedora Release Engineering
42f89e1794 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 18:39:10 +00:00
Python Maint
02c3e185a7 Rebuilt for Python 3.12 2023-07-25 12:22:02 +02:00
Fedora Release Engineering
87aff6b5d0 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 19:02:32 +00:00
Thomas Moschny
c9ab258fe6 Update to 1.18.20. 2023-01-28 10:13:06 +01:00
Fedora Release Engineering
1b9858c84c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 02:49:56 +00:00
Thomas Moschny
271a95d1f0 Update to 1.18.18.
Rebase patches.
Update patch to fix logging with Ansible (#1917461).
BuilRequire setuptools when Python >= 3.12.
2022-12-03 12:11:17 +01:00
Miro Hrončok
7a7d0e9726 BuilRequire setuptools when Python >= 3.12
The dnf and brz setups use distutils.
Python 3.12 removes distutils,
but setuptools can provide it instead.
2022-10-21 12:01:10 +02:00
Fedora Release Engineering
c1c0ae2a94 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 02:32:53 +00:00
Python Maint
b4e7dcf856 Rebuilt for Python 3.11 2022-06-15 18:25:29 +02:00
Thomas Moschny
3467fc0502 Update to 1.18.17. 2022-03-08 22:41:15 +01:00
Todd Zullinger
f8810ee6ee require git-core instead of git
Avoid pulling in more dependencies that necessary.  The functionality
required is in git-core.
2022-02-16 09:11:42 -05:00
Thomas Moschny
8e0916c332 Exclude egg-info directories for dnf, bzr and brz plugins (#2048085). 2022-01-31 21:28:26 +01:00
Fedora Release Engineering
967f251aef - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 02:27:09 +00:00
Fedora Release Engineering
55c1720ac0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 22:26:27 +00:00
Python Maint
316aacc07c Rebuilt for Python 3.10 2021-06-04 20:03:59 +02:00
Thomas Moschny
e194c21ca5 Update to 1.18.16.
Update spec file, remove obsolete conditionals.
2021-02-09 20:59:56 +01:00
Fedora Release Engineering
66ed97daa7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 05:02:05 +00:00
Tom Stellard
13f683035f Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-04 22:15:48 +00:00
Fedora Release Engineering
53ae57e594 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 16:59:01 +00:00
Miro Hrončok
aa83d10631 Rebuilt for Python 3.9 2020-05-26 02:45:06 +02:00
Thomas Moschny
f73e2c4c32 Update to 1.18.14.
Include zsh completion.
Mark cron file as config file.
2020-03-14 10:01:09 +01:00
Fedora Release Engineering
b5242302d7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 17:52:48 +00:00
Thomas Moschny
01729ff780 Update to 1.18.12.
New version of patch to fix logging with Ansible (#1762693).
2019-12-01 13:23:15 +01:00
Thomas Moschny
432ea14d18 Add patch to fix logging with Ansible (#1762693). 2019-11-19 09:42:22 +01:00
Miro Hrončok
10df745175 Add breezy plugin on Fedora 31+
- Remove bazaar plugin on Fedora 32+
- https://fedoraproject.org/wiki/Changes/ReplaceBazaarWithBreezy
- https://bugzilla.redhat.com/show_bug.cgi?id=1741027
2019-11-01 09:42:08 +01:00
Thomas Moschny
386372563d Package fixes for CentOS8.
Build dnf plugin on CentOS7.
2019-10-04 22:00:00 +02:00
Miro Hrončok
f46a5643e4 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:52:58 +02:00
Thomas Moschny
c78786ff72 There is currently no bzr for rhel8. 2019-10-03 12:20:06 +02:00
Thomas Moschny
2d07753d0e Update to 1.18.10. 2019-10-03 11:53:01 +02:00
Miro Hrončok
ea3ae3a030 Rebuilt for Python 3.8 2019-08-19 10:13:33 +02:00
Fedora Release Engineering
98538ddb6e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 23:58:36 +00:00
Fedora Release Engineering
3b3c7f284f - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 19:08:23 +00:00
Thomas Moschny
7a3cf97a13 Merge branch 'master' into el6 2018-07-16 13:32:31 +02:00
Thomas Moschny
d90e0777bf Update to 1.18.8.
Update URL: and Source: tags.
2018-07-16 12:27:28 +02:00
Fedora Release Engineering
5f96d16c78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 00:10:59 +00:00
Miro Hrončok
dab9a3dfd3 Rebuilt for Python 3.7 2018-06-19 10:42:44 +02:00
Thomas Moschny
e197082a98 Merge branch 'master' into el6 2018-05-14 14:33:35 +02:00
Thomas Moschny
93c50cab0b Use correct Requires: for the hostname cmd on EPEL6. 2018-05-14 14:31:59 +02:00
Thomas Moschny
278ec45c80 Merge branch 'master' into el6 2018-04-21 14:12:56 +02:00
Thomas Moschny
bda2cfeddb DNF is no longer available in EPEL7. 2018-04-21 14:07:59 +02:00
Thomas Moschny
dcfd7f9309 Merge branch 'master' into el6 2018-04-21 13:00:00 +02:00
Thomas Moschny
1122c58f9e Update to 1.18.7.
Rebase patches.
Slightly modernize spec file.
Update Python dependencies.
Fix ignore rules (rhbz#1460461).
Update README.fedora (rhbz#1478655).
Add missing BRs (rhbz#1418790).
Add patch to prevent mercurial warnings (rhbz#1480843).
2018-04-21 12:45:33 +02:00
Igor Gnatenko
50d380e1f2
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 07:11:27 +01:00
Igor Gnatenko
c4bdd51641 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-13 23:20:41 +01:00
Iryna Shcherbina
439692c457 Update Python 2 dependency declarations to new packaging standards 2018-02-07 10:26:53 +01:00
Fedora Release Engineering
4f30d7f052 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 09:00:11 +00:00
Fedora Release Engineering
33dd6ab305 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 07:49:43 +00:00
Petr Písař
659617bd73 perl dependency renamed to perl-interpreter <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules> 2017-07-13 10:10:48 +02:00
Fedora Release Engineering
118bcf32b2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 09:26:38 +00:00
Miro Hrončok
ac73c4ac17 Rebuild for Python 3.6 2016-12-19 18:20:36 +01:00
Thomas Moschny
a1d3deef9e Merge branch 'master' into el6 2016-08-23 12:17:50 +02:00
Thomas Moschny
d6da311c92 Update to 1.18.5. 2016-08-23 12:04:54 +02:00
Fedora Release Engineering
32b198d5e1 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 07:01:24 +00:00
Thomas Moschny
eb7316f6c4 Merge branch 'master' into el6 2016-03-02 19:19:17 +01:00
Thomas Moschny
f55706d2f2 Move completion file back to /etc/bash_completion.d on EPEL<7. 2016-03-02 19:05:14 +01:00
Thomas Moschny
140fc34771 Merge branch 'master' into el6 2016-02-22 20:18:27 +01:00
Thomas Moschny
a5a2fe225e Update to 1.18.3.
- Bash completions have been moved to /usr/share/bash-completion.
2016-02-22 18:28:10 +01:00
Thomas Moschny
40c0515d3a Do not own /etc/bash_completion.d on Fedora and EPEL>=7.
- Drop %defattr.
2016-02-03 22:26:53 +01:00
Dennis Gilmore
8b19fc2ae6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 20:04:38 +00:00
Peter Robinson
f1275c9e26 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 2015-11-10 14:18:08 +00:00
Thomas Moschny
d19b462968 Update to etckeeper 1.18.2.
- Depend on dnf for F22+ (rhbz#1229131).
- Minor changelog fixes.
2015-10-24 16:13:32 +02:00
Dennis Gilmore
c65165e442 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 05:47:34 +00:00
Thomas Moschny
63aa6e3f0b Merge branch 'master' into el6 2015-04-23 19:08:57 +02:00
Thomas Moschny
dd5090b826 Fix markdown generation (rhbz#1213776). 2015-04-23 18:58:05 +02:00
Thomas Moschny
0905a8393b Merge branch 'master' into el6 2015-03-26 17:04:27 +01:00
Thomas Moschny
0234808277 Add missing dependency on python3-devel for dnf plugin on F23+. 2015-03-26 16:48:52 +01:00
Thomas Moschny
e5a09baa27 Update to 0.18.1. 2015-03-26 16:28:38 +01:00
Thomas Moschny
2da25fa5b8 Update to 1.18.
- Update upstream URLs.
- Package DNF plugin.
- Slightly modernize spec file.
2015-03-26 12:04:13 +01:00
Thomas Moschny
517cb61224 Disable bzr plugin on epel5. 2014-12-18 21:13:27 +01:00
Thomas Moschny
ac58645210 Merge branch 'master' into el6 2014-09-05 19:03:45 +02:00
Thomas Moschny
72d4fce020 Update to 1.14. 2014-09-05 18:03:23 +02:00
Thomas Moschny
ab1ba3185b Merge branch 'master' into el6 2014-08-15 17:47:03 +02:00
Thomas Moschny
f78223c00d Update to 1.13. 2014-08-15 17:36:06 +02:00
Thomas Moschny
7cc2716bdf Merge branch 'master' into el6 2014-06-23 18:30:05 +02:00
Thomas Moschny
a50714477f Update to 1.12.
- Format README.md.
2014-06-23 18:27:14 +02:00
Dennis Gilmore
2699e4fc31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 06:03:30 -05:00
Thomas Moschny
e9be4e21ba Merge branch 'master' into el6 2013-12-19 20:29:11 +01:00
Thomas Moschny
1bc793d481 Update to 1.11. 2013-12-19 20:17:33 +01:00
Thomas Moschny
edbfe62402 Merge branch 'master' into el6 2013-11-09 13:25:27 +01:00
Thomas Moschny
a32db0ced5 Update to 1.10. 2013-11-09 13:09:49 +01:00
Thomas Moschny
02abf37672 Merge branch 'master' into el6 2013-09-12 19:36:06 +02:00
Thomas Moschny
1ddec8e146 Update to 1.9. 2013-09-12 19:21:16 +02:00
Thomas Moschny
e5b61b535f Merge branch 'master' into el6 2013-08-18 07:57:56 +02:00
Thomas Moschny
5e8cc18415 Define (if undefined) and use _pkgdocdir macro (rhbz#993741). 2013-08-18 07:44:38 +02:00
Thomas Moschny
7e1af3f7ff Update to 1.7. 2013-08-18 07:44:12 +02:00
Thomas Moschny
cc6bbeeafb Merge branch 'master' into el6 2013-07-30 20:20:08 +02:00
Thomas Moschny
649c061eeb Update to 1.6. 2013-07-30 12:14:23 +02:00
Thomas Moschny
b062038e50 Update to 1.5. 2013-07-27 16:18:46 +02:00
Jóhann B. Guðmundsson
2b40d1fab6 Add a missing requirement on crontabs to spec file. 2013-07-27 16:15:38 +02:00
Thomas Moschny
cb66c7200e Merge branch 'master' into el6 2013-06-30 12:04:07 +02:00
Thomas Moschny
e0680320ae Update to 1.4. 2013-06-23 12:57:50 +02:00
Thomas Moschny
1a389853e2 Update to 1.3. 2013-05-11 11:36:36 +02:00
Dennis Gilmore
06d3b6c551 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 15:13:21 -06:00
Thomas Moschny
f512469203 Update to 0.64. 2012-09-23 17:12:42 +02:00
Dennis Gilmore
44d365b218 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 19:22:42 -05:00
Thomas Moschny
de5150c00a Merge branch 'master' into el6 2012-06-04 19:22:12 +02:00
Thomas Moschny
c20c38bb0c Update to 0.63. 2012-06-04 19:01:11 +02:00
Thomas Moschny
41e6de5017 Merge branch 'master' into el6 2012-03-13 19:58:05 +01:00
Thomas Moschny
f3d92f2254 Add missing dependency on perl (bz 798563). 2012-03-13 19:55:30 +01:00
Thomas Moschny
49ef61e226 Merge branch 'master' into el6 2012-03-13 19:38:35 +01:00
Thomas Moschny
8b4b3d2c50 Update to 0.62. 2012-03-13 19:30:03 +01:00
Thomas Moschny
49e326d5a6 Merge branch 'master' into el6 2012-01-17 17:00:12 +01:00
Thomas Moschny
7345f87df7 Update to 0.61. 2012-01-17 16:58:37 +01:00
Thomas Moschny
d164a8c06f Merge branch 'master' into el6 2012-01-13 17:36:32 +01:00
Thomas Moschny
46b3896488 Update to 0.60. 2012-01-13 17:32:55 +01:00
Dennis Gilmore
ab784993d5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 20:03:03 -06:00
Thomas Moschny
4e27d2af46 Merge branch 'master' into el6 2011-12-01 15:34:23 +01:00
Thomas Moschny
66170d8945 Update to 0.58. 2011-12-01 15:07:32 +01:00
Thomas Moschny
296c4686c6 Merge branch 'master' into el6 2011-11-09 13:22:34 +01:00
Thomas Moschny
eeb766f62e Update to 0.57. 2011-11-09 13:14:15 +01:00
Thomas Moschny
c13ab31cb0 Rebuilt for trailing slash bug of rpm-4.9.1 2011-08-17 11:44:16 +02:00
Thomas Moschny
e53e0aa184 Merge branch 'master' into el6 2011-07-21 18:24:52 +02:00
Thomas Moschny
448e48d2a3 Update to 0.56. 2011-07-21 18:14:38 +02:00
Thomas Moschny
1895756093 Merge branch 'master' into el6 2011-06-28 19:10:08 +02:00
Thomas Moschny
8fe63e5c00 Update to 0.55. 2011-06-24 23:20:11 +02:00
Thomas Moschny
e1138e707e Merge branch 'master' into el6 2011-06-02 15:34:23 +02:00
Thomas Moschny
cae2492044 Add missing patch file. 2011-06-01 09:37:08 +02:00
Thomas Moschny
d05fff596c - Update to 0.54.
- Add patch for bz 709487.
2011-06-01 01:12:17 +02:00
Thomas Moschny
6083c40249 Merge branch 'master' into el6 2011-03-31 23:38:29 +02:00
Thomas Moschny
c027a44422 Update to 0.53.
Run update-ignore on package upgrade (bz 680632).
2011-03-31 00:13:14 +02:00
Thomas Moschny
42a4f1c87f Merge branch 'master' into el6 2011-02-10 11:55:05 +01:00
Thomas Moschny
cedeb90b07 - Update to 0.52.
- Include a README.fedora (bz 670934).
2011-02-10 11:44:06 +01:00
Thomas Moschny
df51e470de Drop unused patch from git. 2011-02-09 12:09:35 +01:00
Dennis Gilmore
f10450d1cc - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 12:39:36 -06:00
Thomas Moschny
e0d5426789 Merge branch 'master' into el6 2011-01-03 13:36:54 +01:00
Thomas Moschny
965a3da124 - Update to 0.51.
- etckeeper has been moved out of sbin.
2011-01-03 13:15:58 +01:00
Thomas Moschny
084c5ae7dd - Don't package INSTALL. 2011-01-03 13:09:55 +01:00
Thomas Moschny
3f0922202d Merge branch 'master' into el6 2010-10-27 10:06:54 +02:00
Thomas Moschny
7a174a4c46 - Update to 0.50.
- Change %define -> %global.
2010-10-27 09:08:32 +02:00
Thomas Moschny
e9355424fd Merge branch 'master' into el6 2010-09-17 00:46:53 +02:00
Thomas Moschny
a4fb2aefc8 - Adjust minimum required version of GIT.
- egg-info files are not created automatically on RHEL5.
2010-09-17 00:26:51 +02:00
Thomas Moschny
dc1911039c Merge branch 'master' into f12 2010-09-15 21:47:01 +02:00
Thomas Moschny
eb1d695695 - Update to 0.49.
- Remove obsolete patch.
2010-09-15 21:29:42 +02:00
Thomas Moschny
2b02e9db63 Merge branch 'master' into f12 2010-09-07 09:27:51 +02:00
Thomas Moschny
24ac1812f8 - Update to 0.48.
- Don't list /etc/etckeeper/*.d directories twice in %files.
- Add patch from upstream that fixes bz 588086.
2010-09-07 01:32:54 +02:00
Fedora Release Engineering
d149a313e2 dist-git conversion 2010-07-28 13:56:42 +00:00
Fedora Release Engineering
b92e2a5f25 dist-git conversion 2010-07-28 13:56:42 +00:00
dmalcolm
dff39b37d3 - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-22 01:16:10 +00:00
Bill Nottingham
e2809ca5da Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:25:30 +00:00
Bill Nottingham
d406a6945f Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:50:04 +00:00
Bernie Innocenti
24c7caa759 Initial import. 2009-09-30 03:54:04 +00:00
Bernie Innocenti
b3b985e5a0 Initial import. 2009-09-30 03:44:42 +00:00
Kevin Fenzi
3e098cb3e4 Initialize branch F-12 for etckeeper 2009-09-29 20:15:14 +00:00
3 changed files with 167 additions and 116 deletions

View file

@ -0,0 +1,11 @@
--- a/post-install.d/50vcs-commit 2023-12-05 10:45:18.967497833 +0100
+++ b/post-install.d/50vcs-commit 2023-12-05 10:46:00.848138455 +0100
@@ -6,7 +6,7 @@
# Parent process is etckeeper
# (Only procps ps is currently supported, others will fail,
# so this may end up empty.)
-ETCKEEPER_PID=$( ps --no-headers -o ppid "${PPID}" 2>/dev/null | sed 's/^ *//' )
+ETCKEEPER_PID=$( ps --no-headers -o ppid "$$" 2>/dev/null | sed 's/^ *//' )
# Find the parent of etckeeper and get the command line of the process
if ! [ -z "${ETCKEEPER_PID}" ]; then

4
etckeeper.actions Normal file
View file

@ -0,0 +1,4 @@
# to be placed in /etc/dnf/libdnf5-plugins/actions.d
# requires dnf5 5.2.11.0 or later
pre_base_setup:::raise_error=1:/usr/bin/sh -c /usr/bin/etckeeper\ pre-install\ \|\ /usr/bin/sed\ -e\ 's/^/log.INFO=/'
post_transaction::::/usr/bin/sh -c /usr/bin/etckeeper\ post-install\ \|\ /usr/bin/sed\ -e\ 's/^/log.INFO=/'

View file

@ -1,30 +1,21 @@
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%if 0%{?rhel} && 0%{?rhel} <= 7
%global with_yum 1
%global with_bzr 1
%global bazaar bzr
%endif
%if 0%{?fedora}
%global with_brz 1
%global bazaar brz
%endif
%if 0%{?fedora} || 0%{?rhel} >= 8
%global dnf_is_mandatory 1
%global dnf_uses_python3 1
%global with_dnf5 1
%endif
Name: etckeeper
Version: 1.18.22
Release: 1%{?dist}
Release: 6%{?dist}
Summary: Store /etc in a SCM system (git, mercurial, bzr or darcs)
License: GPLv2+
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: https://etckeeper.branchable.com/
Source0: https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/%{name}-%{version}.tar.gz
Source1: README.fedora
Source2: cron.daily
Source3: etckeeper.actions
# build plugins separately
Patch0: etckeeper-makefile-remove-python-plugins.patch
# see rhbz#1460461
@ -36,7 +27,10 @@ Patch3: etckeeper-add-breezy-python3-plugin.patch
# see rhbz#1762693 and https://github.com/ansible/ansible/issues/54949
# see also rhbz#1917461
Patch4: etckeeper-1.18.18-fix-output-for-ansible.patch
# see rhbz#2203408 and pr#7
Patch5: etckeeper-1.18.21-bz2203408.patch
BuildArch: noarch
BuildRequires: make
BuildRequires: %{_bindir}/markdown_py
Requires: git-core
Requires: perl-interpreter
@ -44,9 +38,10 @@ Requires: crontabs
Requires: findutils
Requires: hostname
Requires: which
%if 0%{?dnf_is_mandatory}
Requires: %{name}-dnf = %{version}-%{release}
%endif # dnf_is_mandatory
%if 0%{?with_dnf5}
Requires: %{name}-dnf5 = %{version}-%{release}
%endif # with_dnf5
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
@ -63,30 +58,15 @@ understand the basics of working with version control.
The default backend is git, if want to use a another backend please
install the appropriate tool (mercurial, darcs or bzr).
%{?bazaar: To use bazaar/breezy as backend, please also install the %{name}-%{bazaar} package.}
%{?with_brz: To use breezy as bzr backend, please also install the %{name}-brz package.}
To start using the package please read %{_pkgdocdir}/README.
%if 0%{?with_bzr}
%package bzr
Summary: Support for bzr with etckeeper
BuildRequires: python2-devel
BuildRequires: bzr
Requires: %{name} = %{version}-%{release}
Requires: bzr
%description bzr
This package provides a bzr backend for etckeeper, if you want to use
etckeeper with bzr backend, install this package.
%endif # with_bzr
%if 0%{?with_brz}
%package brz
Summary: Support for bzr with etckeeper (via breezy)
BuildRequires: python3-devel
BuildRequires: (python3-setuptools if python3-devel >= 3.12)
BuildRequires: brz
Requires: %{name} = %{version}-%{release}
Requires: brz
@ -99,17 +79,11 @@ etckeeper with (bzr) bazaar repositories, install this package.
%package dnf
Summary: DNF plugin for etckeeper support
%if 0%{?dnf_uses_python3}
BuildRequires: python3-devel
BuildRequires: (python3-setuptools if python3-devel >= 3.12)
%else
BuildRequires: python2-devel
%endif # dnf_uses_python3
BuildRequires: dnf
BuildRequires: python3-dnf
Requires: python3-dnf
BuildRequires: dnf-plugins-core
BuildRequires: make
Requires: %{name} = %{version}-%{release}
Requires: dnf
Requires: dnf-plugins-core
%description dnf
@ -117,15 +91,22 @@ This package provides a DNF plugin for etckeeper. If you want to use
etckeeper with DNF, install this package.
%if 0%{?with_dnf5}
%package dnf5
Summary: DNF5 plugin for etckeeper support
Requires: %{name} = %{version}-%{release}
Requires: libdnf5-plugin-actions >= 5.2.11.0
Requires: sed
%description dnf5
This package provides a DNF5 plugin for etckeeper. If you want to use
etckeeper with DNF5, install this package.
%endif # with_dnf5
%prep
%autosetup -p1
%if 0%{?with_yum}
# we set yum here, so the yum plugin gets built, and change that to
# dnf later, if needed
sed -e 's|HIGHLEVEL_PACKAGE_MANAGER=.*|HIGHLEVEL_PACKAGE_MANAGER=yum|' \
%else
sed -e 's|HIGHLEVEL_PACKAGE_MANAGER=.*|HIGHLEVEL_PACKAGE_MANAGER=dnf|' \
%endif # with_yum
-e 's|LOWLEVEL_PACKAGE_MANAGER=.*|LOWLEVEL_PACKAGE_MANAGER=rpm|' \
-i etckeeper.conf
sed -e 's|^prefix=.*|prefix=%{_prefix}|' \
@ -139,37 +120,41 @@ sed -e 's|^prefix=.*|prefix=%{_prefix}|' \
-i Makefile
# move each plugin in its own subdirectory, so each has its own build/
# directory
mkdir bzr-plugin ; mv etckeeper-bzr bzr-plugin
mkdir brz-plugin ; mv etckeeper-brz brz-plugin
mkdir dnf-plugin ; mv etckeeper-dnf dnf-plugin
mkdir brz-plugin
mv etckeeper-brz brz-plugin
ln -snf etckeeper-brz/__init__.py brz-plugin/setup.py
mkdir dnf-plugin
mv etckeeper-dnf dnf-plugin
ln -snf etckeeper-dnf/etckeeper.py dnf-plugin/setup.py
cp -av %{SOURCE1} .
%generate_buildrequires
%if 0%{?with_brz}
cd brz-plugin
%pyproject_buildrequires
cd ..
%endif # with_brz
cd dnf-plugin
%pyproject_buildrequires
cd ..
%build
%make_build
%if 0%{?with_bzr}
pushd bzr-plugin
%define py_setup etckeeper-bzr/__init__.py
%py2_build
popd
%endif # with_bzr
%if 0%{?with_brz}
pushd brz-plugin
%define py_setup etckeeper-brz/__init__.py
%py3_build
popd
cd brz-plugin
%pyproject_wheel
cd ..
%endif # with_brz
pushd dnf-plugin
%define py_setup etckeeper-dnf/etckeeper.py build
%if 0%{?dnf_uses_python3}
%py3_build
%else
%py2_build
%endif # dnf_uses_python3
popd
cd dnf-plugin
%pyproject_wheel
cd ..
markdown_py -f README.html README.md
@ -177,37 +162,23 @@ markdown_py -f README.html README.md
%install
%make_install
%if 0%{?with_bzr}
pushd bzr-plugin
%define py_setup etckeeper-bzr/__init__.py
%py2_install
popd
%endif # with_bzr
%if 0%{?with_brz}
pushd brz-plugin
%define py_setup etckeeper-brz/__init__.py
%py3_install
popd
cd brz-plugin
%pyproject_install
cd ..
%endif # with_brz
pushd dnf-plugin
%define py_setup etckeeper-dnf/etckeeper.py build
%if 0%{?dnf_uses_python3}
%py3_install
%else
%py2_install
%endif # dnf_uses_python3
popd
%if 0%{?dnf_is_mandatory}
sed -e 's|HIGHLEVEL_PACKAGE_MANAGER=.*|HIGHLEVEL_PACKAGE_MANAGER=dnf|' \
-i %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
%endif # dnf_is_mandatory
cd dnf-plugin
%pyproject_install
cd ..
install -D -p %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/%{name}
install -d %{buildroot}%{_localstatedir}/cache/%{name}
%if 0%{?with_dnf5}
install -D -p %{SOURCE3} %{buildroot}%{_sysconfdir}/dnf/libdnf5-plugins/actions.d/%{name}.actions
%endif # with_dnf5
%post
if [ $1 -gt 1 ] ; then
@ -243,25 +214,11 @@ fi
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/vendor-completions
%{_datadir}/zsh/vendor-completions/_%{name}
%if 0%{?with_yum}
%dir %{_prefix}/lib/yum-plugins
%{_prefix}/lib/yum-plugins/%{name}.*
%dir %{_sysconfdir}/yum/pluginconf.d
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/%{name}.conf
%endif # with_yum
%{_localstatedir}/cache/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.timer
%if 0%{?with_bzr}
%files bzr
%{python2_sitelib}/bzrlib/plugins/%{name}
# exclude egg-info dir, doesn't contain meaningful information
%exclude %{python2_sitelib}/bzr_%{name}-*.egg-info
%endif # with_bzr
%if 0%{?with_brz}
%files brz
# co-own the plugins directories
@ -270,39 +227,97 @@ fi
%dir %{python3_sitelib}/breezy/plugins/
%{python3_sitelib}/breezy/plugins/%{name}/
# exclude egg-info dir, doesn't contain meaningful information
%exclude %{python3_sitelib}/brz_%{name}-*.egg-info
%exclude %{python3_sitelib}/brz_%{name}-*.dist-info
%endif # with_brz
%files dnf
%if 0%{?dnf_uses_python3}
%{python3_sitelib}/dnf-plugins/%{name}.py
%exclude %{python3_sitelib}/dnf-plugins/__init__.py
%{python3_sitelib}/dnf-plugins/__pycache__/%{name}.*
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/__init__.*
# exclude egg-info dir, doesn't contain meaningful information
%exclude %{python3_sitelib}/dnf_%{name}-*.egg-info
%else
%{python2_sitelib}/dnf-plugins/%{name}.py*
%exclude %{python2_sitelib}/dnf-plugins/__init__.py*
# exclude egg-info dir, doesn't contain meaningful information
%exclude %{python2_sitelib}/dnf_%{name}-*.egg-info
%endif # dnf_uses_python3
%exclude %{python3_sitelib}/dnf_%{name}-*.dist-info
%if 0%{?with_dnf5}
%files dnf5
%{_sysconfdir}/dnf/libdnf5-plugins/actions.d/%{name}.actions
%endif # with_dnf5
%changelog
* Tue Jul 15 2025 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.22-1
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.18.22-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.18.22-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.22-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 15 2025 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.22-3
- Fix conditional.
* Tue Jul 15 2025 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.22-2
- Update action file to produce expected action output.
* Mon Jul 14 2025 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.22-1
- Update to 1.18.22.
- Remove all EL7-related conditionals and parts.
- Update for current Python packaging guidelines (rhbz#2377253).
- Add support for DNF5 (rhbz#2326283).
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 1.18.21-6
- Rebuilt for Python 3.14
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.21-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 1.18.21-4
- convert license to SPDX
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.21-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.18.21-2
- Rebuilt for Python 3.13
* Wed May 1 2024 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.21-1
- Update to 1.18.21.
- Add patch for rhbz#2203408 from pr#7.
- Depend on python3-dnf, not dnf (pr#6).
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.20-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.20-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jul 25 2023 Python Maint <python-maint@redhat.com> - 1.18.20-3
- Rebuilt for Python 3.12
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 28 2023 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.20-1
- Update to 1.18.20.
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 2 2022 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.18-1
- Update to 1.18.18.
- Rebase patches.
- Update patch to fix logging with Ansible (#1917461).
- BuildRequire setuptools when Python >= 3.12.
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.18.17-2
- Rebuilt for Python 3.11
* Tue Mar 8 2022 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.17-1
- Update to 1.18.17.
@ -312,15 +327,36 @@ fi
* Mon Jan 31 2022 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.16-5
- Exclude egg-info directories for dnf, bzr and brz plugins (#2048085).
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.16-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.18.16-2
- Rebuilt for Python 3.10
* Tue Feb 9 2021 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.16-1
- Update to 1.18.16.
- Update spec file, remove obsolete conditionals.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.14-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.18.14-2
- Rebuilt for Python 3.9
* Sat Mar 14 2020 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.14-1
- Update to 1.18.14.
- Include zsh completion.
- Mark cron file as config file.
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Dec 1 2019 Thomas Moschny <thomas.moschny@gmx.de> - 1.18.12-1
- Update to 1.18.12.
- New version of patch to fix logging with Ansible (#1762693).