GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — snapper/snapper.spec.in at master · ken23421/snapper Expand file tree/ Copy pathsnapper.spec.inMore file actions 314 lines (279 loc) · 8.94 KB / Copy pathsnapper.spec.inFile metadata and controls314 lines (279 loc) · 8.94 KB 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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 # # spec file for package snapper # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif # optionally build with test coverage reporting %bcond_with coverage Name: snapper Version: @VERSION@ Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: snapper-%{version}.tar.bz2 %if 0%{?suse_version} > 1325 BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel BuildRequires: libboost_test-devel %else BuildRequires: boost-devel %endif BuildRequires: gcc-c++ BuildRequires: libacl-devel BuildRequires: libtool BuildRequires: libxml2-devel BuildRequires: e2fsprogs-devel %if 0%{?suse_version} > 1230 BuildRequires: libbtrfs-devel %endif %if 0%{?suse_version} > 1310 BuildRequires: libmount-devel >= 2.24 %endif %if 0%{?fedora_version} >= 23 BuildRequires: pkgconfig %else BuildRequires: pkg-config %endif %if 0%{?fedora_version} >= 24 BuildRequires: glibc-langpack-en BuildRequires: glibc-langpack-de %endif %if ! 0%{?mandriva_version} %if 0%{?fedora_version} >= 23 BuildRequires: dbus-devel BuildRequires: docbook-style-xsl %else BuildRequires: dbus-1-devel BuildRequires: docbook-xsl-stylesheets %endif BuildRequires: libxslt %else BuildRequires: docbook-dtd45-xml BuildRequires: docbook-xsl BuildRequires: libdbus-1-devel BuildRequires: xsltproc %endif %if (0%{?suse_version} && 0%{?suse_version} >= 1210) BuildRequires: libzypp(plugin:commit) %endif BuildRequires: pam-devel %if 0%{?fedora_version} BuildRequires: json-c-devel %else BuildRequires: libjson-c-devel %endif %if %{with coverage} BuildRequires: lcov %endif Requires: diffutils Requires: libsnapper@LIBVERSION_MAJOR@ = %version %if 0%{?suse_version} Recommends: logrotate snapper-zypp-plugin Supplements: btrfsprogs %endif Summary: Tool for filesystem snapshot management License: GPL-2.0-only Group: System/Packages Url: http://snapper.io/ %description This package contains snapper, a tool for filesystem snapshot management. %prep %setup %build %if %{with coverage} # optimized code may confuse the coverage measurement, turn it off # -fPIC is mysteriously needed on Fedora. export CFLAGS="-g3 -fPIC" export CXXFLAGS="-g3 -fPIC" %else export CFLAGS="%{optflags} -DNDEBUG" export CXXFLAGS="%{optflags} -DNDEBUG" %endif autoreconf -fi %configure \ --docdir="%{_defaultdocdir}/snapper" \ %if %{with coverage} --enable-coverage \ %endif %if 0%{?suse_version} <= 1310 --disable-rollback \ %endif %if 0%{?suse_version} <= 1310 --disable-btrfs-quota \ %endif --disable-silent-rules --disable-ext4 make %{?_smp_mflags} %install %make_install rm -f "%{buildroot}/%{_libdir}"/*.la "%{buildroot}/%{_lib}/security/pam_snapper.la" rm -f %{buildroot}/etc/cron.hourly/suse.de-snapper rm -f %{buildroot}/etc/cron.daily/suse.de-snapper %if 0%{?suse_version} install -D -m 644 data/sysconfig.snapper "%{buildroot}%{_fillupdir}/sysconfig.snapper" %else install -D -m 644 data/sysconfig.snapper "%{buildroot}/etc/sysconfig/snapper" %endif %{find_lang} snapper %check make check VERBOSE=1 %pre %if 0%{?suse_version} %service_add_pre snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer %endif %post %if 0%{?suse_version} # special hack, since the macros were added much later than # the systemd timer if [ -f /etc/cron.hourly/suse.de-snapper ]; then systemctl preset snapper-timeline.timer || : systemctl is-enabled -q snapper-timeline.timer && systemctl start snapper-timeline.timer || : fi if [ -f /etc/cron.daily/suse.de-snapper ]; then systemctl preset snapper-cleanup.timer || : systemctl is-enabled -q snapper-cleanup.timer && systemctl start snapper-cleanup.timer || : fi %service_add_post snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer %endif %preun %if 0%{?suse_version} %service_del_preun snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer %endif %postun %if 0%{?suse_version} %service_del_postun snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer %endif %files -f snapper.lang %defattr(-,root,root) %{_bindir}/snapper %{_sbindir}/snapperd %if 0%{?suse_version} > 1310 %{_sbindir}/mksubvolume %endif %dir %{_prefix}/lib/snapper %{_prefix}/lib/snapper/*-helper %doc %{_mandir}/*/snapper.8* %doc %{_mandir}/*/snapperd.8* %doc %{_mandir}/*/snapper-configs.5* %if 0%{?suse_version} > 1310 %doc %{_mandir}/*/mksubvolume.8* %endif %config(noreplace) %{_sysconfdir}/logrotate.d/snapper %{_unitdir}/snapper-*.* %config /etc/dbus-1/system.d/org.opensuse.Snapper.conf %{_datadir}/dbus-1/system-services/org.opensuse.Snapper.service %package -n libsnapper@LIBVERSION_MAJOR@ Summary: Library for filesystem snapshot management Group: System/Libraries Requires: util-linux %if 0%{?suse_version} PreReq: %fillup_prereq %endif # expands to Obsoletes: libsnapper1 libsnapper2 libsnapper3... Obsoletes: %(echo `seq -s " " -f "libsnapper%.f" $((@LIBVERSION_MAJOR@ - 1))`) %description -n libsnapper@LIBVERSION_MAJOR@ This package contains libsnapper, a library for filesystem snapshot management. %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 %{_defaultdocdir}/snapper %doc %{_defaultdocdir}/snapper/AUTHORS %doc %{_defaultdocdir}/snapper/COPYING %if 0%{?suse_version} %{_fillupdir}/sysconfig.snapper %else %config(noreplace) %{_sysconfdir}/sysconfig/snapper %endif %post -n libsnapper@LIBVERSION_MAJOR@ /sbin/ldconfig %if 0%{?suse_version} %{fillup_only -n snapper} %endif %postun -n libsnapper@LIBVERSION_MAJOR@ -p /sbin/ldconfig %package -n libsnapper-devel %if 0%{?suse_version} > 1325 Requires: libboost_headers-devel %else Requires: boost-devel %endif Requires: gcc-c++ Requires: libacl-devel Requires: libsnapper@LIBVERSION_MAJOR@ = %version Requires: libstdc++-devel Requires: libxml2-devel %if 0%{?suse_version} > 1230 Requires: libbtrfs-devel %endif %if 0%{?suse_version} > 1310 Requires: libmount-devel >= 2.24 %endif 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. %files -n libsnapper-devel %defattr(-,root,root) %{_libdir}/libsnapper.so %{_includedir}/snapper %package -n snapper-zypp-plugin Requires: libzypp(plugin:commit) = 1 Requires: snapper = %version 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. %files -n snapper-zypp-plugin %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/snapper/zypp-plugin.conf %if 0%{?suse_version} < 1210 %dir /usr/lib/zypp %dir /usr/lib/zypp/plugins %dir /usr/lib/zypp/plugins/commit %endif /usr/lib/zypp/plugins/commit/snapper-zypp-plugin %doc %{_mandir}/*/snapper-zypp-plugin.8* %doc %{_mandir}/*/snapper-zypp-plugin.conf.5* %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. %files -n pam_snapper %defattr(-,root,root) /%{_lib}/security/pam_snapper.so %dir /usr/lib/pam_snapper /usr/lib/pam_snapper/*.sh %doc %{_mandir}/*/pam_snapper.8* %package testsuite Summary: Integration tests for snapper Group: System/Packages %description testsuite Tests to be run in a scratch machine to test that snapper operates as expected. %files testsuite %defattr(-,root,root) %dir %{_libdir}/snapper %dir %{_libdir}/snapper/testsuite %{_libdir}/snapper/testsuite/* %changelog |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |