]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed build on Fedora 24
authorArvin Schnell <aschnell@suse.de>
Thu, 6 Oct 2016 09:37:22 +0000 (11:37 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 6 Oct 2016 09:37:22 +0000 (11:37 +0200)
snapper.spec.in

index c2f19d90f4f6cf2c09b89f7cfc6aa6658dd4d687..f6d4ff1f12743558285ce55aca4f9520533da923 100644 (file)
@@ -39,6 +39,10 @@ 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
@@ -93,6 +97,9 @@ autoconf
        --docdir=%{prefix}/share/doc/packages/snapper                           \
 %if 0%{?suse_version} <= 1310
        --disable-rollback                                                      \
+%endif
+%if 0%{?suse_version} <= 1320
+       --disable-btrfs-quota                                                   \
 %endif
        --disable-silent-rules --disable-ext4
 make %{?jobs:-j%jobs}
@@ -119,12 +126,16 @@ rm -rf "$RPM_BUILD_ROOT"
 %defattr(-,root,root)
 %{prefix}/bin/snapper
 %{prefix}/sbin/snapperd
+%if 0%{?suse_version} > 1310
 %{prefix}/sbin/mksubvolume
+%endif
 %{prefix}/lib/snapper
 %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
 /etc/cron.hourly/suse.de-snapper
 /etc/cron.daily/suse.de-snapper