2011-05-12 11:10:13 +02:00
|
|
|
#
|
2011-09-05 17:15:50 +02:00
|
|
|
# spec file for package snapper
|
2011-05-12 11:10:13 +02:00
|
|
|
#
|
2013-01-25 09:40:24 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-05 17:15:50 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2011-09-05 17:15:50 +02:00
|
|
|
Name: snapper
|
2013-12-03 16:58:29 +01:00
|
|
|
Version: 0.1.8
|
2011-09-19 18:04:43 +02:00
|
|
|
Release: 0
|
2011-09-05 17:15:50 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: snapper-%{version}.tar.bz2
|
|
|
|
Prefix: /usr
|
2012-06-13 22:46:23 +02:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxml2-devel
|
2012-12-07 14:51:34 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-11-13 09:44:02 +01:00
|
|
|
%if ! 0%{?mandriva_version}
|
|
|
|
BuildRequires: dbus-1-devel
|
2013-07-01 16:00:20 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt
|
2012-11-13 09:44:02 +01:00
|
|
|
%else
|
2013-07-01 16:00:20 +02:00
|
|
|
BuildRequires: docbook-dtd45-xml
|
|
|
|
BuildRequires: docbook-xsl
|
2012-11-13 09:44:02 +01:00
|
|
|
BuildRequires: libdbus-1-devel
|
2013-07-01 16:00:20 +02:00
|
|
|
BuildRequires: xsltproc
|
2012-11-13 09:44:02 +01:00
|
|
|
%endif
|
2012-06-13 22:46:23 +02:00
|
|
|
%if (0%{?suse_version} && 0%{?suse_version} >= 1210)
|
2011-09-05 17:15:50 +02:00
|
|
|
BuildRequires: libzypp(plugin:commit)
|
2012-03-17 13:23:18 +01:00
|
|
|
%endif
|
2013-05-13 15:34:01 +02:00
|
|
|
BuildRequires: pam-devel
|
2013-02-08 14:45:00 +01:00
|
|
|
Requires: diffutils
|
2012-11-13 09:44:02 +01:00
|
|
|
Requires: libsnapper2 = %version
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-09-05 17:15:50 +02:00
|
|
|
Recommends: cron logrotate snapper-zypp-plugin
|
2012-01-04 07:31:45 +01:00
|
|
|
Supplements: btrfsprogs
|
2012-03-17 13:23:18 +01:00
|
|
|
%endif
|
2011-09-05 17:15:50 +02:00
|
|
|
Summary: Tool for filesystem snapshot management
|
2012-06-13 22:46:23 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Packages
|
2013-09-11 17:15:44 +02:00
|
|
|
Url: http://snapper.io/
|
2011-05-12 11:10:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains snapper, a tool for filesystem snapshot management.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arvin Schnell <aschnell@suse.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n snapper-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
libtoolize --force --automake --copy
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
|
2013-05-13 15:34:01 +02:00
|
|
|
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} \
|
|
|
|
--docdir=%{prefix}/share/doc/packages/snapper \
|
2013-07-18 17:34:57 +02:00
|
|
|
--disable-silent-rules --disable-ext4
|
2011-05-12 11:10:13 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
2013-05-13 15:34:01 +02:00
|
|
|
rm $RPM_BUILD_ROOT/%{_lib}/security/pam_snapper.la
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version}
|
2013-05-13 15:34:01 +02:00
|
|
|
install -D -m 644 data/sysconfig.snapper $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.snapper
|
2012-03-17 13:23:18 +01:00
|
|
|
%else
|
2013-05-13 15:34:01 +02:00
|
|
|
install -D -m 644 data/sysconfig.snapper $RPM_BUILD_ROOT/etc/sysconfig/snapper
|
2012-03-17 13:23:18 +01:00
|
|
|
%endif
|
|
|
|
|
2011-05-12 11:10:13 +02:00
|
|
|
%{find_lang} snapper
|
|
|
|
|
2013-07-01 16:00:20 +02:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2011-05-12 11:10:13 +02:00
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%files -f snapper.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{prefix}/bin/snapper
|
2012-11-13 09:44:02 +01:00
|
|
|
%{prefix}/sbin/snapperd
|
2013-11-29 07:05:09 +01:00
|
|
|
%doc %{_mandir}/*/snapper.8*
|
|
|
|
%doc %{_mandir}/*/snapperd.8*
|
|
|
|
%doc %{_mandir}/*/snapper-configs.5*
|
2011-05-12 11:10:13 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/snapper
|
|
|
|
/etc/cron.hourly/suse.de-snapper
|
|
|
|
/etc/cron.daily/suse.de-snapper
|
2012-11-13 09:44:02 +01:00
|
|
|
%config /etc/dbus-1/system.d/org.opensuse.Snapper.conf
|
|
|
|
%{prefix}/share/dbus-1/system-services/org.opensuse.Snapper.service
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2012-11-13 09:44:02 +01:00
|
|
|
%package -n libsnapper2
|
2011-09-05 17:15:50 +02:00
|
|
|
Summary: Library for filesystem snapshot management
|
|
|
|
Group: System/Libraries
|
2012-06-13 22:46:23 +02:00
|
|
|
Requires: util-linux
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-09-05 17:15:50 +02:00
|
|
|
PreReq: %fillup_prereq
|
2012-03-17 13:23:18 +01:00
|
|
|
%endif
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2012-11-13 09:44:02 +01:00
|
|
|
%description -n libsnapper2
|
2011-05-12 11:10:13 +02:00
|
|
|
This package contains libsnapper, a library for filesystem snapshot management.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arvin Schnell <aschnell@suse.de>
|
|
|
|
|
2012-11-13 09:44:02 +01:00
|
|
|
%files -n libsnapper2
|
2011-05-12 11:10:13 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsnapper.so.*
|
|
|
|
%dir %{_sysconfdir}/snapper
|
|
|
|
%dir %{_sysconfdir}/snapper/configs
|
|
|
|
%dir %{_sysconfdir}/snapper/config-templates
|
|
|
|
%config(noreplace) %{_sysconfdir}/snapper/config-templates/default
|
|
|
|
%dir %{_sysconfdir}/snapper/filters
|
|
|
|
%config(noreplace) %{_sysconfdir}/snapper/filters/*.txt
|
|
|
|
%doc %dir %{prefix}/share/doc/packages/snapper
|
|
|
|
%doc %{prefix}/share/doc/packages/snapper/AUTHORS
|
|
|
|
%doc %{prefix}/share/doc/packages/snapper/COPYING
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-05-12 11:10:13 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.snapper
|
2012-03-17 13:23:18 +01:00
|
|
|
%else
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/snapper
|
|
|
|
%endif
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2012-11-13 09:44:02 +01:00
|
|
|
%post -n libsnapper2
|
2011-05-12 11:10:13 +02:00
|
|
|
/sbin/ldconfig
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-05-12 11:10:13 +02:00
|
|
|
%{fillup_only -n snapper}
|
2012-03-17 13:23:18 +01:00
|
|
|
%endif
|
2011-05-12 11:10:13 +02:00
|
|
|
|
2012-11-13 09:44:02 +01:00
|
|
|
%postun -n libsnapper2
|
2011-05-12 11:10:13 +02:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%package -n libsnapper-devel
|
2012-06-13 22:46:23 +02:00
|
|
|
Requires: boost-devel
|
|
|
|
Requires: gcc-c++
|
2012-11-13 09:44:02 +01:00
|
|
|
Requires: libsnapper2 = %version
|
2012-06-13 22:46:23 +02:00
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libxml2-devel
|
2011-09-05 17:15:50 +02:00
|
|
|
Summary: Header files and documentation for libsnapper
|
|
|
|
Group: Development/Languages/C and C++
|
2011-05-12 11:10:13 +02:00
|
|
|
|
|
|
|
%description -n libsnapper-devel
|
|
|
|
This package contains header files and documentation for developing with
|
|
|
|
libsnapper.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arvin Schnell <aschnell@suse.de>
|
|
|
|
|
|
|
|
%files -n libsnapper-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsnapper.la
|
|
|
|
%{_libdir}/libsnapper.so
|
|
|
|
%{prefix}/include/snapper
|
2011-07-08 15:50:58 +02:00
|
|
|
|
|
|
|
%package -n snapper-zypp-plugin
|
2013-12-16 07:09:58 +01:00
|
|
|
BuildArch: noarch
|
2013-02-08 14:45:00 +01:00
|
|
|
Requires: dbus-1-python
|
2013-11-29 07:05:09 +01:00
|
|
|
Requires: python-xml
|
2013-05-13 15:34:01 +02:00
|
|
|
Requires: snapper = %version
|
2012-06-13 22:46:23 +02:00
|
|
|
Requires: zypp-plugin-python
|
2013-11-29 07:05:09 +01:00
|
|
|
Requires: libzypp(plugin:commit) = 1
|
2011-09-05 17:15:50 +02:00
|
|
|
Summary: A zypp commit plugin for calling snapper
|
|
|
|
Group: System/Packages
|
2011-07-08 15:50:58 +02:00
|
|
|
|
|
|
|
%description -n snapper-zypp-plugin
|
|
|
|
This package contains a plugin for zypp that makes filesystem snapshots with
|
|
|
|
snapper during commits.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arvin Schnell <aschnell@suse.de>
|
|
|
|
|
|
|
|
%files -n snapper-zypp-plugin
|
|
|
|
%defattr(-,root,root)
|
2013-11-29 07:05:09 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/snapper/zypp-plugin.conf
|
2012-03-17 13:23:18 +01:00
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
%dir /usr/lib/zypp
|
|
|
|
%dir /usr/lib/zypp/plugins
|
|
|
|
%dir /usr/lib/zypp/plugins/commit
|
|
|
|
%endif
|
2012-09-14 12:38:50 +02:00
|
|
|
/usr/lib/zypp/plugins/commit/snapper.py*
|
2013-11-29 07:05:09 +01:00
|
|
|
%doc %{_mandir}/*/snapper-zypp-plugin.8*
|
|
|
|
%doc %{_mandir}/*/snapper-zypp-plugin.conf.5*
|
2011-09-19 18:04:43 +02:00
|
|
|
|
2013-10-20 10:54:02 +02:00
|
|
|
%package -n grub-snapper-plugin
|
2013-12-16 07:09:58 +01:00
|
|
|
BuildArch: noarch
|
2013-10-20 10:54:02 +02:00
|
|
|
Requires: python
|
|
|
|
Requires: python-xattr
|
|
|
|
Requires: snapper = %version
|
2013-12-03 16:58:29 +01:00
|
|
|
%if 0%{?suse_version}
|
2013-10-20 10:54:02 +02:00
|
|
|
Supplements: packageand(snapper-zypp-plugin:grub2)
|
2013-12-03 16:58:29 +01:00
|
|
|
%endif
|
2013-10-20 10:54:02 +02:00
|
|
|
Summary: A snapper plugin for adding snapshot metadata for grub2
|
|
|
|
Group: System/Packages
|
|
|
|
|
|
|
|
%description -n grub-snapper-plugin
|
|
|
|
This package contains a plugin for snapper that adds metadata to snapshots
|
|
|
|
used by grub2.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arvin Schnell <aschnell@suse.de>
|
|
|
|
|
|
|
|
%files -n grub-snapper-plugin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/lib/snapper
|
|
|
|
%dir /usr/lib/snapper/plugins
|
|
|
|
/usr/lib/snapper/plugins/grub.py*
|
|
|
|
|
2013-05-13 15:34:01 +02:00
|
|
|
%package -n pam_snapper
|
|
|
|
Requires: pam
|
|
|
|
Requires: snapper = %version
|
|
|
|
Summary: PAM module for calling snapper
|
|
|
|
Group: System/Packages
|
|
|
|
|
|
|
|
%description -n pam_snapper
|
|
|
|
A PAM module for calling snapper during user login and logout.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Matthias G. Eckermann <mge@suse.com>
|
|
|
|
|
|
|
|
%files -n pam_snapper
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/security/pam_snapper.so
|
|
|
|
%dir /usr/lib/pam_snapper
|
|
|
|
/usr/lib/pam_snapper/*.sh
|
2013-11-29 07:05:09 +01:00
|
|
|
%doc %{_mandir}/*/pam_snapper.8*
|
2013-05-13 15:34:01 +02:00
|
|
|
|
2011-09-05 17:15:50 +02:00
|
|
|
%changelog
|