etckeeper/etckeeper.spec

201 lines
5.9 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package etckeeper
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# this would pull python2
%bcond_with bzr
%bcond_without systemd
%if %{with bzr}
%define python_versioned python
%define python_args PYTHON_INSTALL_OPTS="--prefix=%{_prefix} --install-purelib=%{python_sitearch}"
%else
%define python_versioned python3
%define python_args %{nil}
%endif
%define make_args systemddir=%{_unitdir} PYTHON=%{python_versioned} %{python_args}
Name: etckeeper
Version: 1.18.8
Release: 0
Summary: Store /etc under Version Control
License: GPL-2.0-or-later
Group: System/Management
Source: https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/%{name}-%{version}.tar.gz
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
# PATCH-FIX-UPSTREAM etckeeper-avoid-packagelist.patch gh#joeyh/etckeeper#17 bkbin005@rinku.zaq.ne.jp -- add AVOID_PACKAGELIST
Patch0: etckeeper-avoid-packagelist.patch
Patch1: etckeeper-set-package-manager.patch
Url: http://etckeeper.branchable.com/
%if ! %{with bzr}
BuildArch: noarch
%endif
BuildRequires: %{python_versioned}-devel
%if 0%{suse_version} >= 1500
BuildRequires: bash-completion-devel
%else
BuildRequires: bash-completion
%endif
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
BuildRequires: make
# for the path ownership
BuildRequires: %{python_versioned}-zypp-plugin
BuildRequires: libzypp
BuildRequires: systemd-rpm-macros
%if %{with bzr}
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
BuildRequires: bzr
%endif
Recommends: git-core
Recommends: %{name}-bash-completion = %{version}-%{release}
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
Recommends: %{name}-zypp-plugin = %{version}-%{release}
%if %{with bzr}
Recommends: %{name}-bzr = %{version}-%{release}
%endif
%if %{with systemd}
%{?systemd_requires}
Obsoletes: %{name}-cron = %{version}-%{release}
%else
Recommends: %{name}-cron = %{version}-%{release}
%endif
%description
The etckeeper program is a tool to let /etc be stored in a git,
mercurial, bzr or darcs repository. It hooks into yum to automatically
commit changes made to /etc during package upgrades. It tracks file
metadata that version control systems do not normally support, but that
is important for /etc, such as the permissions of /etc/shadow. It is
quite modular and configurable, while also being simple to use if you
understand the basics of working with version control.
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%package cron
Summary: The etckeeper cron function
Group: System/Management
%if ! %{with bzr}
BuildArch: noarch
%endif
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
Requires: etckeeper = %{version}-%{release}
Provides: etckeeper:%{_sysconfdir}/cron.daily/etckeeper
Requires: cron
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%description cron
The etckeeper-cron calls etckeeper from cron.
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%package zypp-plugin
Summary: The etckeeper integration function with ZYpp
Group: System/Management
%if ! %{with bzr}
BuildArch: noarch
%endif
Requires: %{python_versioned}-zypp-plugin
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
Requires: etckeeper = %{version}-%{release}
Obsoletes: etckeeper-pkgmanager-collabo < %{version}-%{release}
Provides: etckeeper-pkgmanager-collabo = %{version}-%{release}
Provides: etckeeper:%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%description zypp-plugin
The etckeeper-zypp-plugin calls etckeeper from ZYpp.
%package bzr
Summary: The etckeeper integration function with bzr
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
Group: System/Management
Requires: %{python_versioned}-base
Requires: etckeeper = %{version}-%{release}
%description bzr
The etckeeper integration function with bzr
%package bash-completion
Summary: The bash completion for etckeeper
Group: System/Shells
Requires: bash-completion
Requires: etckeeper = %{version}-%{release}
%description bash-completion
Bash command line completion support for %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
find -type f -name ".gitignore" -delete
rm -f ./doc/todo/.mdwn
rm README.md
cp -a doc/README.mdwn README.md
perl -p -i -e 's|%{_bindir}/python|%{_bindir}/%{python_versioned}|g' zypper-etckeeper.py
make %{?_smp_mflags} %{make_args}
%install
%make_install %{make_args}
%if ! %{with systemd}
install -D debian/cron.daily "%{buildroot}/etc/cron.daily/%{name}"
%endif
mkdir %{buildroot}%{_sbindir}
ln -s ../bin/%{name} %{buildroot}%{_sbindir}/%{name}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
%pre
%service_add_pre etckeeper.timer etckeeper.service
%preun
%service_del_preun etckeeper.timer etckeeper.service
%post
%service_add_post etckeeper.timer etckeeper.service
%postun
%service_del_postun etckeeper.timer etckeeper.service
%files
%doc README.md
%license GPL
%{_unitdir}/etckeeper.timer
%{_unitdir}/etckeeper.service
%{_bindir}/etckeeper
%{_sbindir}/etckeeper
%{_sbindir}/rcetckeeper
%dir %{_sysconfdir}/etckeeper
%dir %{_sysconfdir}/etckeeper/*.d
%{_sysconfdir}/etckeeper/daily
%config(noreplace) %{_sysconfdir}/etckeeper/etckeeper.conf
%config %{_sysconfdir}/etckeeper/*.d/*
%{_mandir}/man8/etckeeper.8*
%if ! %{with systemd}
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%files cron
%config(noreplace) %{_sysconfdir}/cron.daily/etckeeper
%endif
%files bash-completion
%{_datadir}/bash-completion/completions/etckeeper
Accepting request 244920 from home:Mitsutoshi:branches:utilities - updated Source to 1.13: + Ignore check-mk-agent-logwatch's FHS violating /etc/check_mk/logwatch.state. Closes: deb#753903 + Only allow [-a-z_] in etckeeper commands to avoid any possible directory traversal etc issues. + update-ignore, uninit: Fix parsing of ignore files containing '\' - added etckeeper-avoid-packagelist.patch: Because it is slow that some package manager make the packagelist (eg, rpm -qa), high-level package manager might time out (eg. zypper in/remove). So I added this patch. If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 in etckeeper.conf. Or if you want to avoid it temporarily, you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). This patch was sent to upstream, but Joey does not accept it yet. Please see also gh#joeyh/etckeeper#17 . - rename subpackage from pkgmanager-collabo to zypp-plugin or yum-plugin. please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added "Provides:" for renaming: pkgmanager-collabo => (zypp|yum)-plugin. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage - added "Provides:" for split packages: etekeeper-cron and plugins. Please see also: https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack - added "Reccomends: git". please see also: http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html - added bzr support files. Their files need "Buildrequires: python-devel bzr", but did not write them, so they were not installed untill now. - added Python Compatibility with older distributions codes. Please see also: https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions - added version-release number to Recommendes and Requires. It is desirable that etckeeper packages are same version. - removed lib/zypp directories: They should belong libzypp. + remove them. + added "BuildRequire: zypp-plugin-python". OBS-URL: https://build.opensuse.org/request/show/244920 OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=8
2014-08-16 21:25:19 +02:00
%files zypp-plugin
%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py
%if %{with bzr}
%files bzr
%{python_sitearch}/bzrlib/plugins/%{name}/
%{python_sitearch}/bzr_%{name}-*.egg-info
%endif
%changelog