b0a9458
# systemd units for snapper
b0a9458
%global snapper_svcs snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer snapperd.service
b0a9458
Igor Gnatenko 3f88da9
Name:           snapper
b0a9458
Version:        0.8.16
290aa79
Release:        2%{?dist}
Igor Gnatenko 3f88da9
Summary:        Tool for filesystem snapshot management
Igor Gnatenko 3f88da9
Igor Gnatenko 3f88da9
License:        GPLv2
d5d069c
URL:            http://snapper.io
Igor Gnatenko 3f88da9
Source0:        https://github.com/openSUSE/snapper/archive/v%{version}/%{name}-%{version}.tar.gz
Igor Gnatenko 3f88da9
Patch0:         %{name}-remove-ext4-info-xml.patch
Igor Gnatenko 3f88da9
Patch1:         %{name}-securelibdir.patch
Igor Gnatenko 3f88da9
Igor Gnatenko 3f88da9
BuildRequires:  autoconf
Igor Gnatenko 3f88da9
BuildRequires:  automake
Igor Gnatenko 3f88da9
BuildRequires:  libtool
Igor Gnatenko 3f88da9
BuildRequires:  gettext
d253cad
BuildRequires:  gcc
Igor Gnatenko 3f88da9
BuildRequires:  gcc-c++
b0a9458
BuildRequires:  make
b0a9458
BuildRequires:  systemd-rpm-macros
e4840d2
BuildRequires:  glibc-all-langpacks
Igor Gnatenko 3f88da9
6566534
BuildRequires:  /usr/bin/xsltproc
6566534
BuildRequires:  docbook-style-xsl
6566534
BuildRequires:  btrfs-progs-devel
6566534
BuildRequires:  libmount-devel
6566534
BuildRequires:  libselinux-devel
6566534
BuildRequires:  pkgconfig(dbus-1)
6566534
BuildRequires:  pkgconfig(libxml-2.0)
6566534
BuildRequires:  libacl-devel
6566534
# No explicit configure checks
Igor Gnatenko 3f88da9
BuildRequires:  boost-devel
Igor Gnatenko 3f88da9
BuildRequires:  e2fsprogs-devel
6566534
BuildRequires:  dbus-devel
b0a9458
BuildRequires:  json-c-devel
b0a9458
BuildRequires:  ncurses-devel
Igor Gnatenko 3f88da9
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
Igor Gnatenko 3f88da9
Requires:       diffutils
165dc24
165dc24
%description
165dc24
This package contains snapper, a tool for filesystem snapshot management.
165dc24
165dc24
%package libs
Igor Gnatenko 3f88da9
Summary:        Library for filesystem snapshot management
6566534
Requires:       util-linux%{?_isa}
6566534
Requires:       btrfs-progs%{?_isa}
165dc24
165dc24
%description libs
165dc24
This package contains the snapper shared library
165dc24
for filesystem snapshot management.
165dc24
165dc24
%package devel
Igor Gnatenko 3f88da9
Summary:        Header files and development libraries for %{name}-libs
Igor Gnatenko 3f88da9
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
Igor Gnatenko 3f88da9
Requires:       libstdc++-devel%{?_isa}
Igor Gnatenko 3f88da9
Requires:       libacl-devel%{?_isa}
Igor Gnatenko 3f88da9
Requires:       boost-devel%{?_isa}
6566534
Requires:       btrfs-progs-devel
Igor Gnatenko 3f88da9
Requires:       libxml2-devel%{?_isa}
6566534
Requires:       libmount-devel%{?_isa}
165dc24
165dc24
%description devel
165dc24
This package contains header files and documentation for developing with
165dc24
snapper.
165dc24
6566534
%package tests
6566534
Summary:        Integration tests for snapper
6566534
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
6566534
6566534
%description tests
6566534
%{summary}.
6566534
60a9bf2
%package -n pam_snapper
Igor Gnatenko 3f88da9
Summary:        PAM module for calling snapper
Igor Gnatenko 3f88da9
BuildRequires:  pam-devel
Igor Gnatenko 3f88da9
Requires:       %{name}%{?_isa} = %{version}-%{release}
60a9bf2
60a9bf2
%description -n pam_snapper
60a9bf2
A PAM module for calling snapper during user login and logout.
60a9bf2
6566534
%files tests
6566534
%license COPYING
6566534
%dir %{_libdir}/snapper
6566534
%{_libdir}/snapper/testsuite/
6566534
165dc24
%prep
Igor Gnatenko 3f88da9
%autosetup -p1
Igor Gnatenko 3f88da9
# use libexecdir
Igor Gnatenko 3f88da9
find -type f -exec sed -i -e "s|/usr/lib/snapper|%{_libexecdir}/%{name}|g" {} ';'
165dc24
165dc24
%build
Igor Gnatenko 3f88da9
autoreconf -vfi
165dc24
# NOTE: --disable-ext4 option removes support for ext4 internal snapshots since the feature
165dc24
# never made it into upstream kernel
6566534
%configure \
6566534
  --disable-ext4 \
6566534
  --disable-zypp \
6566534
  --enable-selinux \
6566534
  %{nil}
Igor Gnatenko 3f88da9
%make_build
165dc24
165dc24
%install
Igor Gnatenko 3f88da9
%make_install
Igor Gnatenko 3f88da9
install -Dpm0644 data/sysconfig.snapper %{buildroot}%{_sysconfdir}/sysconfig/%{name}
e4840d2
%find_lang %{name}
Igor Gnatenko 3f88da9
find %{buildroot} -name '*.la' -print -delete
Igor Gnatenko 3f88da9
rm -rf %{buildroot}%{_sysconfdir}/cron.hourly
Igor Gnatenko 3f88da9
rm -rf %{buildroot}%{_sysconfdir}/cron.daily
Igor Gnatenko 3f88da9
rm -rf %{buildroot}%{_docdir}/%{name}/COPYING
165dc24
Igor Gnatenko 3f88da9
%check
Igor Gnatenko 3f88da9
make %{?_smp_mflags} check
165dc24
b0a9458
%post
b0a9458
%systemd_post %{snapper_svcs}
b0a9458
b0a9458
%preun
b0a9458
%systemd_preun %{snapper_svcs}
b0a9458
b0a9458
%postun
b0a9458
%systemd_postun_with_restart %{snapper_svcs}
b0a9458
165dc24
%files -f snapper.lang
56e2e7d
%license COPYING
56e2e7d
%doc AUTHORS
165dc24
%{_bindir}/snapper
94e6f94
%{_sbindir}/mksubvolume
165dc24
%{_sbindir}/snapperd
165dc24
%config(noreplace) %{_sysconfdir}/logrotate.d/snapper
b0a9458
%{_unitdir}/%{name}*
165dc24
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.opensuse.Snapper.conf
165dc24
%{_datadir}/dbus-1/system-services/org.opensuse.Snapper.service
165dc24
%{_mandir}/man8/%{name}.8*
94e6f94
%{_mandir}/man8/mksubvolume.8*
165dc24
%{_mandir}/man8/snapperd.8*
60a9bf2
%{_mandir}/man5/snapper-configs.5*
Igor Gnatenko 3f88da9
%dir %{_libexecdir}/%{name}
Igor Gnatenko 3f88da9
%{_libexecdir}/%{name}/installation-helper
Igor Gnatenko 3f88da9
%{_libexecdir}/%{name}/systemd-helper
165dc24
165dc24
%files libs
56e2e7d
%license COPYING
165dc24
%{_libdir}/libsnapper.so.*
165dc24
%dir %{_sysconfdir}/%{name}
165dc24
%dir %{_sysconfdir}/%{name}/configs
165dc24
%dir %{_sysconfdir}/%{name}/config-templates
165dc24
%config(noreplace) %{_sysconfdir}/%{name}/config-templates/default
165dc24
%dir %{_sysconfdir}/%{name}/filters
165dc24
%config(noreplace) %{_sysconfdir}/%{name}/filters/*.txt
165dc24
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
165dc24
165dc24
%files devel
60a9bf2
%doc examples/c/*.c
60a9bf2
%doc examples/c++-lib/*.cc
165dc24
%{_libdir}/libsnapper.so
Igor Gnatenko 3f88da9
%{_includedir}/%{name}/
165dc24
60a9bf2
%files -n pam_snapper
60a9bf2
%{_libdir}/security/pam_snapper.so
Igor Gnatenko 3f88da9
%{_prefix}/lib/pam_snapper/
Igor Gnatenko 3f88da9
%{_mandir}/man8/pam_snapper.8*
60a9bf2
165dc24
%changelog
290aa79
* Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 0.8.16-2
290aa79
- Rebuild for versioned symbols in json-c
290aa79
b0a9458
* Sat Mar 20 2021 Neal Gompa <ngompa13@gmail.com> - 0.8.16-1
b0a9458
- Update to 0.8.16
b0a9458
8da4f14
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-4
8da4f14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8da4f14
0597db5
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 0.8.9-3
0597db5
- Rebuilt for Boost 1.75
0597db5
83366ff
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
83366ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
83366ff
6566534
* Fri Jun 12 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.8.9-1
6566534
- Update to 0.8.9
6566534
7b6f542
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 0.8.3-4
7b6f542
- Rebuilt for Boost 1.73
7b6f542
f3f6f1c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-3
f3f6f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f3f6f1c
006cc36
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-2
006cc36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
006cc36
ea50b65
* Wed Mar 27 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.3-1
ea50b65
- Update to 0.8.3
ea50b65
e4840d2
* Mon Feb 18 2019 Neal Gompa <ngompa13@gmail.com> - 0.8.2-1
e4840d2
- Rebase to 0.8.2 (RH#1669128) to fix FTBFS (RH#1676010)
e4840d2
be71b9c
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-2
be71b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
be71b9c
f72832f
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.6-1
f72832f
- Update to 0.5.6
f72832f
e694f0a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
e694f0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e694f0a
a6ed41b
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.4-3
a6ed41b
- Escape macros in %%changelog
a6ed41b
474a7e4
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.4-2
474a7e4
- Switch to %%ldconfig_scriptlets
474a7e4
93903a4
* Tue Jan 30 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.4-1
93903a4
- Update to 0.5.4
93903a4
894b4f8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
894b4f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
894b4f8
4b6e317
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
4b6e317
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4b6e317
d1f31ef
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 0.5.0-3
d1f31ef
- Rebuilt for s390x binutils bug
d1f31ef
f3f8d5b
* Tue Jul 04 2017 Jonathan Wakely <jwakely@redhat.com> - 0.5.0-2
f3f8d5b
- Rebuilt for Boost 1.64
f3f8d5b
d5d069c
* Thu Jun 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.5.0-1
d5d069c
- Update to 0.5.0
d5d069c
c907c08
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-3
c907c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c907c08
3b68e9e
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.4.1-2
3b68e9e
- Rebuilt for Boost 1.63
3b68e9e
Igor Gnatenko 3f88da9
* Fri Jan 06 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.4.1-1
Igor Gnatenko 3f88da9
- Update to 0.4.1 (RHBZ #1405664)
Igor Gnatenko 3f88da9
- Use libexecdir for helpers
Igor Gnatenko 3f88da9
- Run tests
Igor Gnatenko 3f88da9
- Simplify spec
Igor Gnatenko 3f88da9
94e6f94
* Tue Aug 02 2016 Ondrej Kozina <okozina@redhat.com> - 0.3.3-1
94e6f94
- Update to snapper 0.3.3
94e6f94
3e79e57
* Tue May 17 2016 Jonathan Wakely <jwakely@redhat.com> - 0.2.8-4
3e79e57
- Rebuilt for linker errors in boost (#1331983)
3e79e57
3d8be70
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-3
3d8be70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3d8be70
4c1854b
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.2.8-2
4c1854b
- Rebuilt for Boost 1.60
4c1854b
087b344
* Mon Nov 02 2015 Ondrej Kozina <okozina@redhat.com> - 0.2.8-1
087b344
- Update to snapper 0.2.8
087b344
30f06b9
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.2.6-2
30f06b9
- Rebuilt for Boost 1.59
30f06b9
56e2e7d
* Wed Aug 19 2015 Ondrej Kozina <okozina@redhat.com> - 0.2.6-1
56e2e7d
- Update to snapper 0.2.6
56e2e7d
15744da
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-6
15744da
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
15744da
4fec1bd
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.2.5-5
4fec1bd
- rebuild for Boost 1.58
4fec1bd
6e654dd
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-4
6e654dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6e654dd
97914bb
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.2.5-3
97914bb
- Rebuilt for GCC 5 C++11 ABI change
97914bb
9ae44d9
* Sat Feb 07 2015 Ondrej Kozina <okozina@redhat.com> - 0.2.5-2
9ae44d9
- Rebuild for boost 1.57.0
9ae44d9
70a2c54
* Fri Jan 30 2015 Ondrej Kozina <okozina@redhat.com> - 0.2.5-1
70a2c54
- Update to snapper 0.2.5
70a2c54
- enable rollback support (btrfs, w/o grub2 plugin yet)
70a2c54
Petr Machata bc494de
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.2.3-3
Petr Machata bc494de
- Rebuild for boost 1.57.0
Petr Machata bc494de
8c677b7
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
8c677b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8c677b7
ced016a
* Wed Jul 30 2014 Ondrej Kozina <okozina@redhat.com> - 0.2.3-1
ced016a
- Update to snapper 0.2.3
ced016a
- patch: enable systemd timer files
ced016a
71fb39e
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-3
71fb39e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71fb39e
Petr Machata 2d5e828
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.1.8-2
Petr Machata 2d5e828
- Rebuild for boost 1.55.0
Petr Machata 2d5e828
a9db0e5
* Wed Dec 04 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.8-1
a9db0e5
- Update to snapper 0.1.8
a9db0e5
f15b7d1
* Fri Nov 01 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.7-1
f15b7d1
- Update to snapper 0.1.7.
f15b7d1
- removed --enable-xattrs (already enabled by default)
f15b7d1
- patch: reflect recent change in libbtrfs API
f15b7d1
1a596e3
* Wed Jul 31 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.5-2
1a596e3
- Add a missing requirement on crontabs to spec file (#989115)
1a596e3
60a9bf2
* Mon Jul 29 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.5-1
60a9bf2
- updated to latest upstream
60a9bf2
- allow whitespace in ALLOW_USERS and ALLOW_GROUPS
60a9bf2
- enable new pam module
a6ed41b
- modified specfile to reflect recent change in %%doc macro (no more version suffix)
60a9bf2
- patch: pam module installed in proper libdir
60a9bf2
Petr Machata dbcd790
* Sat Jul 27 2013 Petr Machata <pmachata@redhat.com> - 0.1.3-2.20130426git35ff4ec
Petr Machata dbcd790
- rebuild for boost 1.54.0
Petr Machata dbcd790
- Boost.Thread DSO does not include -mt suffix anymore (snapper-boost-mt.patch)
Petr Machata efcc9bd
98dbe13
* Fri Apr 26 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.3-1.20130426git35ff4ec
98dbe13
- fixed possible security vulnerability in extended attributes handling
98dbe13
98bcdf8
* Thu Apr 18 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.3-1.20130418git7ca81a2
98bcdf8
- updatet to latest upstream version
98bcdf8
- add support to compare extended attributes ('xadiff' command)
98bcdf8
- add support to revert modificiations in file's extended attributes
2c20786
- patch: avoid useless build dependency on libattr-devel
98bcdf8
ee05f70
* Mon Feb 11 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.2-1.20130211git676556f
ee05f70
- updated to latest upstream version
ee05f70
- fixed wrong include: "auto_ptr.h" -> <memory>
ee05f70
- moved diffutils dependency to client
ee05f70
f199fc2
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.1.0-2.20121026git1aaa372
f199fc2
- Rebuild for Boost-1.53.0
f199fc2
165dc24
* Fri Oct 26 2012 Ondrej Kozina <okozina@redhat.com> - 0.1.0-1.20121026git1aaa372
165dc24
- removed python binding since python can use dbus interface instead
165dc24
- removed btrfs-progs and LVM dependecies (#852174)
165dc24
- patch: do not build zypp plugin
165dc24
- patch: avoid abrt when 'diff' command is executed without arguments
165dc24
- patch: do not check for btrfs-progs binary
165dc24
- patch: do not allow 'create-config' command on non-thin LVM volumes (#852174)
165dc24
- edit libtool script to link with: '-Wl, --as-needed'
165dc24
- spec file polishing
165dc24
165dc24
* Wed Sep 26 2012 Ondrej Kozina <okozina@redhat.com> - 0.0.14-3.20120926git7918e5c
165dc24
- add dbus interface
165dc24
- patch man page to reflect unsupported ext4 snapshots
165dc24
165dc24
* Wed Sep 5 2012 Ondrej Kozina <okozina@redhat.com> - 0.0.14-2.20120905gitb0d0145
165dc24
- Rename cron files
165dc24
- Fix multiple review notes issued in (#852174)
165dc24
165dc24
* Mon Aug 27 2012 Ondrej Kozina <okozina@redhat.com> - 0.0.14-1
165dc24
- Initial build