Accepting request 186641 from home:pbleser:staging

new package for utilities

OBS-URL: https://build.opensuse.org/request/show/186641
OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=1
This commit is contained in:
Pascal Bleser 2013-08-10 12:18:30 +00:00 committed by Git OBS Bridge
commit 5076315eaa
6 changed files with 130 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

5
etckeeper.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sat Aug 10 10:33:54 CET 2013 - pascal.bleser@opensuse.org
- initial version (1.7)

1
etckeeper.rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter('python-naming-policy-not-applied')

97
etckeeper.spec Normal file
View File

@ -0,0 +1,97 @@
# vim: set sw=4 ts=4 et nu:
# 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 http://bugs.opensuse.org/
Name: etckeeper
Version: 1.7
Release: 0
Summary: Store /etc under Version Control
Source: http://ftp.debian.org/debian/pool/main/e/etckeeper/etckeeper_%{version}.tar.gz
Source99: etckeeper.rpmlintrc
URL: http://joeyh.name/code/etckeeper/
Group: System/Management
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: make
BuildRequires: python-devel
%{!?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))")}
%py_requires
Requires: git >= 1.6.1
BuildRequires: git >= 1.6.1
BuildRequires: bzr
BuildRequires: libzypp
Requires: cron
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%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's
quite modular and configurable, while also being simple to use if you
understand the basics of working with version control.
%prep
%setup -q -n "%{name}"
%if 0%{?suse_version}
%define HPM zypper
%define LPM rpm
%else
%if 0%{?fedora}
%define HPM yum
%define LPM rpm
%else
%{error:"Unsupported distribution"}
%endif
%endif
%__perl -pi -e '
s|^(\s*)(HIGHLEVEL_PACKAGE_MANAGER)=.+|$1$2=%{HPM}|;
s|^(\s*)(LOWLEVEL_PACKAGE_MANAGER)=.+|$1$2=%{LPM}|;
s|^(\s*)(VCS)=.+|$1$2=git|;
' ./etckeeper.conf
%build
make %{?_smp_mflags}
%install
make \
DESTDIR="%{buildroot}" \
PYTHON_INSTALL_OPTS="--prefix=%{_prefix} --root=%{buildroot} --record-rpm=$PWD/files.lst" \
install
install -D debian/cron.daily "%{buildroot}/etc/cron.daily/%{name}"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc GPL TODO README
%{_bindir}/etckeeper
%config(noreplace) /etc/cron.daily/etckeeper
%dir %{_sysconfdir}/etckeeper
%config(noreplace) %{_sysconfdir}/etckeeper/etckeeper.conf
%dir %{_sysconfdir}/etckeeper/*.d
%config %{_sysconfdir}/etckeeper/*.d/*
%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py
%doc %{_mandir}/man8/etckeeper.8*
%config %{_sysconfdir}/bash_completion.d/etckeeper
%changelog

3
etckeeper_1.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b5a458dc91bb1c2075640301dcde1596b8adebe239b2db9f22f66de55c0496e
size 47790