-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapper.spec.in
133 lines (108 loc) · 3.46 KB
/
snapper.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#
# spec file for package snapper (Version @VERSION@)
#
# norootforbuild
Name: snapper
Version: @VERSION@
Release: 0
License: GPL
Group: System/Packages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: snapper-%{version}.tar.bz2
Prefix: /usr
BuildRequires: gcc-c++ boost-devel libblocxx-devel libxml2-devel doxygen
BuildRequires: libzypp(plugin:commit)
Requires: libsnapper@LIBVERSION_MAJOR@ = %version
Recommends: cron logrotate snapper-zypp-plugin
Summary: Tool for filesystem snapshot management
Url: http://en.opensuse.org/Portal:Snapper
%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
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} --disable-silent-rules
make %{?jobs:-j%jobs}
%install
make install DESTDIR="$RPM_BUILD_ROOT"
%{find_lang} snapper
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f snapper.lang
%defattr(-,root,root)
%{prefix}/bin/snapper
%doc %{_mandir}/*/*
%config(noreplace) %{_sysconfdir}/logrotate.d/snapper
/etc/cron.hourly/suse.de-snapper
/etc/cron.daily/suse.de-snapper
%package -n libsnapper@LIBVERSION_MAJOR@
Summary: Library for filesystem snapshot management
Group: System/Libraries
Requires: btrfsprogs diffutils util-linux
PreReq: %fillup_prereq
%description -n libsnapper@LIBVERSION_MAJOR@
This package contains libsnapper, a library for filesystem snapshot management.
Authors:
--------
Arvin Schnell <aschnell@suse.de>
%files -n libsnapper@LIBVERSION_MAJOR@
%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
/var/adm/fillup-templates/sysconfig.snapper
%dir %{prefix}/lib/snapper
%dir %{prefix}/lib/snapper/bin
%{prefix}/lib/snapper/bin/compare-dirs
%post -n libsnapper@LIBVERSION_MAJOR@
/sbin/ldconfig
%{fillup_only -n snapper}
%postun -n libsnapper@LIBVERSION_MAJOR@
/sbin/ldconfig
%package -n libsnapper-devel
Requires: libsnapper@LIBVERSION_MAJOR@ = %version
Requires: gcc-c++ libstdc++-devel boost-devel blocxx-devel libxml2-devel
Summary: Header files and documentation for libsnapper
Group: Development/Languages/C and C++
%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
%package -n snapper-zypp-plugin
Requires: snapper libzypp(plugin:commit) zypp-plugin-python
Summary: A zypp commit plugin for calling snapper
Group: System/Packages
%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)
/usr/lib/zypp/plugins/commit/snapper.py