From 5076315eaa45b7fe94d09210732f501e08d662cbbdd34bbb0ad3d330d4ec4024 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Sat, 10 Aug 2013 12:18:30 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + etckeeper.changes | 5 +++ etckeeper.rpmlintrc | 1 + etckeeper.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++ etckeeper_1.7.tar.gz | 3 ++ 6 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 etckeeper.changes create mode 100644 etckeeper.rpmlintrc create mode 100644 etckeeper.spec create mode 100644 etckeeper_1.7.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/etckeeper.changes b/etckeeper.changes new file mode 100644 index 0000000..675b349 --- /dev/null +++ b/etckeeper.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Aug 10 10:33:54 CET 2013 - pascal.bleser@opensuse.org + +- initial version (1.7) + diff --git a/etckeeper.rpmlintrc b/etckeeper.rpmlintrc new file mode 100644 index 0000000..5f8ab05 --- /dev/null +++ b/etckeeper.rpmlintrc @@ -0,0 +1 @@ +addFilter('python-naming-policy-not-applied') diff --git a/etckeeper.spec b/etckeeper.spec new file mode 100644 index 0000000..ce32da4 --- /dev/null +++ b/etckeeper.spec @@ -0,0 +1,97 @@ +# vim: set sw=4 ts=4 et nu: + +# Copyright (c) 2013 Pascal Bleser +# +# 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 diff --git a/etckeeper_1.7.tar.gz b/etckeeper_1.7.tar.gz new file mode 100644 index 0000000..79a7e3a --- /dev/null +++ b/etckeeper_1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b5a458dc91bb1c2075640301dcde1596b8adebe239b2db9f22f66de55c0496e +size 47790