Accepting request 537429 from home:avindra
- update to 1.18.7: * Will work on systems that don't have perl. (Perl is still used when available). * Prevent LC_ALL overriding the LC_COLLATE used to sort metadata. - includes changes from 1.18.6: * Only show errors (no progress indicators) when pushing Git/Mercurial repos to avoid unecessary cron mails. * Fix regex in 20-warn-problem-files. * Support added for apk (alpine linux) - Lint spec file - Point source URL to upstream tarball - Mark dependency on python-base per rpmlint - Patches / source modifications: * Add 0001-Remove-env-from-shebang-in-zypper-plugin.patch - fixes rpmlint warning about dependency detection * Rebase etckeeeper-avoid-packagelist.patch * Remove junk file caught by rpmlint (.mdwn) OBS-URL: https://build.opensuse.org/request/show/537429 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=15
This commit is contained in:
parent
224c4dbdab
commit
91e68df6fd
22
0001-Remove-env-from-shebang-in-zypper-plugin.patch
Normal file
22
0001-Remove-env-from-shebang-in-zypper-plugin.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 86700d49eac01eb070c4581e0729ba107370e105 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Avindra Goolcharan <aavindraa@gmail.com>
|
||||||
|
Date: Sun, 29 Oct 2017 11:54:49 -0400
|
||||||
|
Subject: [PATCH] Remove env from shebang in zypper plugin
|
||||||
|
|
||||||
|
---
|
||||||
|
zypper-etckeeper.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/zypper-etckeeper.py b/zypper-etckeeper.py
|
||||||
|
index daa2ff2..0b21881 100755
|
||||||
|
--- a/zypper-etckeeper.py
|
||||||
|
+++ b/zypper-etckeeper.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python
|
||||||
|
|
||||||
|
import errno
|
||||||
|
import subprocess
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a4ddb313037c6861efbc24a55ed8e66cd98591e190aedf2657c8a1071f821889
|
|
||||||
size 68041
|
|
3
etckeeper-1.18.7.tar.gz
Normal file
3
etckeeper-1.18.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7abde0e029abd06351d0e98c067a98dd7da3a22d9627c83c95e2eb90d29066cd
|
||||||
|
size 77568
|
@ -18,10 +18,10 @@ Index: etckeeper-1.18.5/etckeeper
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- etckeeper-1.18.5.orig/etckeeper
|
--- etckeeper-1.18.5.orig/etckeeper
|
||||||
+++ etckeeper-1.18.5/etckeeper
|
+++ etckeeper-1.18.5/etckeeper
|
||||||
@@ -125,6 +125,13 @@ if [ -z "$VCS" ]; then
|
@@ -126,6 +126,13 @@
|
||||||
fi
|
|
||||||
export VCS
|
export VCS
|
||||||
|
|
||||||
|
if [ "$(which perl 2>/dev/null)" != "" ]; then
|
||||||
+ #If environment variable ETCKEEPER_AVOID_PACKAGELIST is not null,
|
+ #If environment variable ETCKEEPER_AVOID_PACKAGELIST is not null,
|
||||||
+ # AVOID_PACKAGELIST in etckeeper.conf is overridden here.
|
+ # AVOID_PACKAGELIST in etckeeper.conf is overridden here.
|
||||||
+ if [ -n "$ETCKEEPER_AVOID_PACKAGELIST" ]; then
|
+ if [ -n "$ETCKEEPER_AVOID_PACKAGELIST" ]; then
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 18 07:35:13 UTC 2017 - aavindraa@gmail.com
|
||||||
|
|
||||||
|
- update to 1.18.7:
|
||||||
|
* Will work on systems that don't have perl. (Perl is still used
|
||||||
|
when available).
|
||||||
|
* Prevent LC_ALL overriding the LC_COLLATE used to sort metadata.
|
||||||
|
- includes changes from 1.18.6:
|
||||||
|
* Only show errors (no progress indicators) when pushing
|
||||||
|
Git/Mercurial repos to avoid unecessary cron mails.
|
||||||
|
* Fix regex in 20-warn-problem-files.
|
||||||
|
* Support added for apk (alpine linux)
|
||||||
|
- Lint spec file
|
||||||
|
- Point source URL to upstream tarball
|
||||||
|
- Mark dependency on python-base per rpmlint
|
||||||
|
- Patches / source modifications:
|
||||||
|
* Add 0001-Remove-env-from-shebang-in-zypper-plugin.patch
|
||||||
|
- fixes rpmlint warning about dependency detection
|
||||||
|
* Rebase etckeeeper-avoid-packagelist.patch
|
||||||
|
* Remove junk file caught by rpmlint (.mdwn)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 22 17:39:27 UTC 2016 - jengelh@inai.de
|
Sat Oct 22 17:39:27 UTC 2016 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package etckeeper
|
# spec file for package etckeeper
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2014 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
|
# Copyright (c) 2014 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
|
||||||
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||||
#
|
#
|
||||||
@ -23,18 +23,20 @@
|
|||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
Name: etckeeper
|
Name: etckeeper
|
||||||
Version: 1.18.5
|
Version: 1.18.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Store /etc under Version Control
|
Summary: Store /etc under Version Control
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
#Source: http://ftp.debian.org/debian/pool/main/e/etckeeper/%%{name}_%%{version}.orig.tar.gz
|
Source: https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/%{name}-%{version}.tar.gz
|
||||||
Source: https://github.com/joeyh/%{name}/archive/%{version}.tar.gz
|
|
||||||
# PATCH-FIX-UPSTREAM etckeeper-avoid-packagelist.patch gh#joeyh/etckeeper#17 bkbin005@rinku.zaq.ne.jp -- add AVOID_PACKAGELIST
|
# PATCH-FIX-UPSTREAM etckeeper-avoid-packagelist.patch gh#joeyh/etckeeper#17 bkbin005@rinku.zaq.ne.jp -- add AVOID_PACKAGELIST
|
||||||
Patch0: etckeeper-avoid-packagelist.patch
|
Patch0: etckeeper-avoid-packagelist.patch
|
||||||
|
# PATCH-FIX-UPSTREAM 0001-Remove-env-from-shebang-in-zypper-plugin.patch
|
||||||
|
Patch1: 0001-Remove-env-from-shebang-in-zypper-plugin.patch
|
||||||
Url: http://etckeeper.branchable.com/
|
Url: http://etckeeper.branchable.com/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define LPM rpm
|
%define LPM rpm
|
||||||
|
Requires: python-base >= 2.7
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
# added for bzr 2014-07-10 bkbin005@rinku.zaq.ne.jp
|
# added for bzr 2014-07-10 bkbin005@rinku.zaq.ne.jp
|
||||||
BuildRequires: bzr
|
BuildRequires: bzr
|
||||||
@ -110,6 +112,7 @@ The etckeeper-zypp-plugin calls etckeeper from YUM.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%__perl -pi -e '
|
%__perl -pi -e '
|
||||||
s|^(\s*)(HIGHLEVEL_PACKAGE_MANAGER)=.+|$1$2=%{HPM}|;
|
s|^(\s*)(HIGHLEVEL_PACKAGE_MANAGER)=.+|$1$2=%{HPM}|;
|
||||||
@ -119,6 +122,7 @@ s|^(\s*)(VCS)=.+|$1$2=git|;
|
|||||||
|
|
||||||
# rpmlint
|
# rpmlint
|
||||||
find -type f -name ".gitignore" -delete
|
find -type f -name ".gitignore" -delete
|
||||||
|
rm -f ./doc/todo/.mdwn
|
||||||
|
|
||||||
# use %%{_unitdir} for rpm-based distros
|
# use %%{_unitdir} for rpm-based distros
|
||||||
sed -i 's:systemddir=/lib/systemd/system:systemddir=%{_unitdir}:g' Makefile
|
sed -i 's:systemddir=/lib/systemd/system:systemddir=%{_unitdir}:g' Makefile
|
||||||
@ -150,7 +154,6 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%service_del_postun etckeeper.service
|
%service_del_postun etckeeper.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc GPL README.md doc
|
%doc GPL README.md doc
|
||||||
%{_unitdir}/etckeeper*
|
%{_unitdir}/etckeeper*
|
||||||
%{_bindir}/etckeeper
|
%{_bindir}/etckeeper
|
||||||
@ -168,16 +171,13 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%{python_sitearch}/bzr_%{name}-*.egg-info
|
%{python_sitearch}/bzr_%{name}-*.egg-info
|
||||||
|
|
||||||
%files cron
|
%files cron
|
||||||
%defattr(-,root,root)
|
|
||||||
%config(noreplace) %{_sysconfdir}/cron.daily/etckeeper
|
%config(noreplace) %{_sysconfdir}/cron.daily/etckeeper
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%files zypp-plugin
|
%files zypp-plugin
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py
|
%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py
|
||||||
%else
|
%else
|
||||||
%files yum-plugin
|
%files yum-plugin
|
||||||
%defattr(-,root,root)
|
|
||||||
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/etckeeper.conf
|
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/etckeeper.conf
|
||||||
%{_prefix}/lib/yum-plugins/etckeeper.*
|
%{_prefix}/lib/yum-plugins/etckeeper.*
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user