# WARNING: This package is synchronized with Fedora! %define major 4 %define libname %mklibname %name %major %define libname_devel %mklibname -d %name %global btrfs_version 3.16.2 %global util_linux_version 2.24 Name: snapper Version: 0.5.6 Release: %mkrel 1 License: GPLv2 Group: File tools BuildRequires: boost-devel BuildRequires: gettext BuildRequires: libtool BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(dbus-1) BuildRequires: pam-devel BuildRequires: pkgconfig(libxslt) BuildRequires: xsltproc BuildRequires: docbook-style-xsl BuildRequires: libacl-devel BuildRequires: btrfs-devel >= %{btrfs_version} BuildRequires: pkgconfig(mount) >= %{util_linux_version} BuildRequires: e2fsprogs-devel Requires: %{libname}%{?_isa} = %{version}-%{release} Requires: diffutils Summary: Tool for filesystem snapshot management URL: http://snapper.io Source0: http://ftp.suse.com/pub/projects/snapper/%{name}-%{version}.tar.bz2 # Patches from Fedora Patch0: %{name}-remove-ext4-info-xml.patch Patch1: %{name}-securelibdir.patch # Patches from upstream Patch100: 1453b7f147e25875d10c3e66e337093603d9e27e.patch # Mageia Patch200: snapper-0.5.0-pthread.patch %description This package contains snapper, a tool for filesystem snapshot management. %package -n %{libname} Summary: Library for filesystem snapshot management Group: System/Libraries Requires: util-linux >= %{util_linux_version} Requires: btrfs-progs >= %{btrfs_version} %description -n %{libname} This package contains the snapper shared library for filesystem snapshot management. %package -n %{libname_devel} Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %{name} = %{version}-%{release} Requires: libstdc++-devel Requires: boost-devel Requires: libxml2-devel Requires: libmount-devel >= %{util_linux_version} Summary: Header files and documentation for libsnapper %description -n %{libname_devel} This package contains header files and documentation for developing with snapper. %package -n pam_%{name} Requires: %{name} = %version-%{release} Requires: pam Summary: PAM module for calling snapper Group: System/Libraries %description -n pam_%{name} A PAM module for calling snapper during user login and logout. %prep %autosetup -p1 # use libexecdir find -type f -exec sed -i -e "s|/usr/lib/snapper|%{_libexecdir}/%{name}|g" {} ';' %build # NOTE: This needed for regenerating the configuration to include changes from patches aclocal libtoolize --force --automake --copy autoheader automake --add-missing --copy autoconf # NOTE: --disable-ext4 option removes support for ext4 internal snapshots since the feature # never made it into upstream kernel %configure2_5x --disable-silent-rules --disable-ext4 --disable-zypp #NOTE: avoid 'unused-direct-shlib-dependency' warning in rpmlint checks sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install %make_install install -m644 -D data/sysconfig.snapper %{buildroot}%{_sysconfdir}/sysconfig/%{name} %{find_lang} %{name} rm -f %{buildroot}/%{_libdir}/*.la rm -f %{buildroot}/%{_libdir}/security/*.la rm -rf %{buildroot}/%{_sysconfdir}/cron.hourly rm -rf %{buildroot}/%{_sysconfdir}/cron.daily rm -rf %{buildroot}/%{_docdir}/%{name}/COPYING %files -f %{name}.lang %license COPYING %doc AUTHORS %{_bindir}/snapper %{_sbindir}/mksubvolume %{_sbindir}/snapperd %config(noreplace) %{_sysconfdir}/logrotate.d/snapper %{_unitdir}/%{name}-*.timer %{_unitdir}/%{name}-*.service %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.opensuse.Snapper.conf %{_datadir}/dbus-1/system-services/org.opensuse.Snapper.service %{_mandir}/man8/%{name}.8* %{_mandir}/man8/mksubvolume.8* %{_mandir}/man8/snapperd.8* %{_mandir}/man5/snapper-configs.5* %dir %{_libexecdir}/%{name} %{_libexecdir}/%{name}/installation-helper %{_libexecdir}/%{name}/systemd-helper %files -n %{libname} %license COPYING %{_libdir}/libsnapper.so.%{major} %{_libdir}/libsnapper.so.%{major}.* %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/configs %dir %{_sysconfdir}/%{name}/config-templates %config(noreplace) %{_sysconfdir}/%{name}/config-templates/default %dir %{_sysconfdir}/%{name}/filters %config(noreplace) %{_sysconfdir}/%{name}/filters/*.txt %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %files -n %{libname_devel} %doc examples/c/*.c %doc examples/c++-lib/*.cc %{_libdir}/libsnapper.so %{_includedir}/%{name} %files -n pam_%{name} %{_libdir}/security/pam_snapper.so %dir %{_prefix}/lib/pam_snapper %{_prefix}/lib/pam_snapper/*.sh %doc %{_mandir}/*/pam_snapper*.* %changelog * Fri Nov 02 2018 pterjan <pterjan> 0.5.6-1.mga7 + Revision: 1327607 - Add upstream patch to fix build on arm - Update to 0.5.6 * Thu Oct 18 2018 wally <wally> 0.5.0-4.mga7 + Revision: 1322006 - add patch to fix linking - rebuild for new boost 1.68.0 * Thu Oct 04 2018 umeabot <umeabot> 0.5.0-3.mga7 + Revision: 1317383 - Mageia 7 Mass Rebuild - Mageia 7 Mass Rebuild * Tue Jan 09 2018 ngompa <ngompa> 0.5.0-1.mga7 + Revision: 1191848 - Update to 0.5.0 * Mon Jan 08 2018 wally <wally> 0.4.1-4.mga7 + Revision: 1191619 - add patch to fix build with gcc7 - rebuild for new boost + tv <tv> - rebuild for boost 1.65 * Sat Sep 16 2017 tv <tv> 0.4.1-2.mga7 + Revision: 1154543 - rebuild with latest boost * Thu Mar 23 2017 ngompa <ngompa> 0.4.1-1.mga6 + Revision: 1094584 - Update to 0.4.1 - Use proper libexec dir for helper binaries * Sun Sep 25 2016 ngompa <ngompa> 0.3.3-1.mga6 + Revision: 1055954 - Upgrade to 0.3.3 * Wed Feb 17 2016 umeabot <umeabot> 0.2.8-5.mga6 + Revision: 962862 - Mageia 6 Mass Rebuild * Sun Dec 27 2015 daviddavid <daviddavid> 0.2.8-4.mga6 + Revision: 916100 - rebuild for new boost 1.60.0 * Wed Nov 18 2015 ngompa <ngompa> 0.2.8-3.mga6 + Revision: 903974 - Add patch for cleanup.service to use libexecdir * Mon Nov 16 2015 ngompa <ngompa> 0.2.8-2.mga6 + Revision: 903484 - Import snapper into Mageia