- update to latest upstream

- various specfile fixes
This commit is contained in:
Ondrej Kozina 2013-07-29 17:27:54 +02:00
parent dbcd790548
commit 60a9bf2118
8 changed files with 79 additions and 48 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/snapper-0.1.0.tar.bz2
/snapper-0.1.2.tar.bz2
/snapper-0.1.3.tar.bz2
/snapper-0.1.5.tar.gz

View File

@ -1,14 +1,11 @@
diff -up snapper-0.1.3/snapper/Makefile.am\~ snapper-0.1.3/snapper/Makefile.am
--- snapper-0.1.3/snapper/Makefile.am~ 2013-04-26 12:21:53.000000000 +0200
+++ snapper-0.1.3/snapper/Makefile.am 2013-07-28 00:15:33.023069583 +0200
@@ -54,7 +54,7 @@ endif
--- a/snapper/Makefile.am 2013-07-12 10:47:19.000000000 +0200
+++ b/snapper/Makefile.am 2013-07-29 12:58:29.570736991 +0200
@@ -53,7 +53,7 @@ endif
libsnapper_la_LDFLAGS = -version-info @LIBVERSION_INFO@
-libsnapper_la_LIBADD = -lboost_thread-mt -lxml2 -lz -lm
+libsnapper_la_LIBADD = -lboost_thread -lxml2 -lz -lm
-libsnapper_la_LIBADD = -lboost_thread-mt -lboost_system-mt -lxml2 -lz -lm
+libsnapper_la_LIBADD = -lboost_thread -lboost_system -lxml2 -lz -lm
pkgincludedir = $(includedir)/snapper
Diff finished. Sun Jul 28 00:15:51 2013

View File

@ -0,0 +1,22 @@
--- a/doc/snapper.xml.in 2013-07-12 10:47:19.000000000 +0200
+++ b/doc/snapper.xml.in 2013-07-29 12:43:31.582526830 +0200
@@ -39,9 +39,7 @@
<para>Snapper never modifies the content of snapshots. Thus snapper creates
read-only snapshots if supported by the kernel. Supported filesystems are
- btrfs and ext4 as well as snapshots of LVM logical volumes with
- thin-provisioning. Some filesystems might not be supported depending on your
- installation.</para>
+ btrfs as well as snapshots of LVM logical volumes with thin-provisioning.</para>
</refsect1>
<refsect1 id='concepts'>
@@ -235,7 +233,7 @@
<varlistentry>
<term><option>-f, --fstype</option> <replaceable>fstype</replaceable></term>
<listitem>
- <para>Manually set filesystem type. Supported values are btrfs, ext4 and lvm. For
+ <para>Manually set filesystem type. Supported values are btrfs and lvm. For
lvm, snapper uses LVM thin-provisioned snapshots. The filesystem type on top of
LVM must be provided in parentheses, e.g. lvm(xfs).</para>
<para>Without this option snapper tries to detect the filesystem.</para>

View File

@ -1,22 +0,0 @@
diff --git a/doc/snapper.8.in b/doc/snapper.8.in
index 0b9ad45..549d150 100644
--- a/doc/snapper.8.in
+++ b/doc/snapper.8.in
@@ -17,7 +17,7 @@ create, delete and compare snapshots and undo changes done between snapshots.
.LP
Snapper never modifies the content of snapshots. Thus snapper creates
read-only snapshots if supported by the kernel. Supported filesystems are
-btrfs and ext4 as well as snapshots of LVM logical volumes with
+btrfs and snapshots of LVM logical volumes with
thin-provisioning. Some filesystems might not be supported depending on your
installation.
@@ -115,7 +115,7 @@ will likely need the global option \fI--config\fR, see \fBGLOBAL OPTIONS\fR and
\fBCONCEPTS\fR.
.TP
\fI\-f, \-\-fstype\fR <fstype>
-Manually set filesystem type. Supported values are btrfs, ext4 and lvm. For
+Manually set filesystem type. Supported values are btrfs and lvm. For
lvm snapper uses LVM thin-provisioned snapshots. The filesystem type on top of
LVM must be provided in parentheses, e.g. lvm(xfs).

View File

@ -1,9 +1,7 @@
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 3fcc081..8d014d3 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -5,8 +5,8 @@
EXTRA_DIST = snapper-hourly snapper-daily zypp-plugin.py
--- a/scripts/Makefile.am 2013-07-12 10:47:19.000000000 +0200
+++ b/scripts/Makefile.am 2013-07-29 12:49:49.505908078 +0200
@@ -17,8 +17,8 @@ endif
EXTRA_DIST = snapper-hourly snapper-daily zypp-plugin.py $(pam_snapper_SCRIPTS)
install-data-local:
- install -D snapper-hourly $(DESTDIR)/etc/cron.hourly/suse.de-snapper

View File

@ -0,0 +1,11 @@
--- a/pam/Makefile.am 2013-07-12 10:47:19.000000000 +0200
+++ a/pam/Makefile.am 2013-07-29 14:42:37.633082979 +0200
@@ -8,7 +8,7 @@ AM_CFLAGS = -D_GNU_SOURCE
INCLUDES = -I$(top_srcdir) $(DBUS_CFLAGS)
-securelibdir = $(shell echo /`basename $(libdir)`/security)
+securelibdir = $(libdir)/security
securelib_LTLIBRARIES = pam_snapper.la

View File

@ -1,22 +1,20 @@
Name: snapper
Version: 0.1.3
Release: 2.20130426git35ff4ec%{?dist}
Version: 0.1.5
Release: 1%{?dist}
License: GPLv2
Group: Applications/System
BuildRequires: boost-devel doxygen gettext libtool libxml2-devel
BuildRequires: dbus-devel
BuildRequires: boost-devel gettext libtool libxml2-devel dbus-devel
BuildRequires: pam-devel libxslt docbook-style-xsl
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: diffutils
Summary: Tool for filesystem snapshot management
Url: http://en.opensuse.org/Portal:Snapper
# source tarball creation process from master branch:
# git clone git://github.com/openSUSE/snapper.git
# git archive --format=tar --prefix=snapper-0.1.3/ 35ff4eca49393b033a7cbaf76479addeb6c77a8d | bzip2 > /tmp/snapper-0.1.3.tar.bz2
Source0: %{name}-%{version}.tar.bz2
patch0: %{name}-remove-ext4-info.patch
Source0: https://github.com/openSUSE/snapper/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
patch0: %{name}-remove-ext4-info-xml.patch
patch1: %{name}-rename-cron-files.patch
patch2: %{name}-boost-mt.patch
patch3: %{name}-securelibdir.patch
%description
This package contains snapper, a tool for filesystem snapshot management.
@ -40,11 +38,20 @@ Summary: Header files and documentation for libsnapper
This package contains header files and documentation for developing with
snapper.
%package -n pam_snapper
Requires: %{name}%{?_isa} = %version-%{release}
Requires: pam%{?_isa}
Summary: PAM module for calling snapper
%description -n pam_snapper
A PAM module for calling snapper during user login and logout.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
aclocal
@ -54,7 +61,7 @@ automake --add-missing --copy
autoconf
# NOTE: --disable-ext4 option removes support for ext4 internal snapshots since the feature
# never made it into upstream kernel
%configure --disable-silent-rules --disable-ext4 --docdir=%{_defaultdocdir}/%{name}-%{version} --disable-zypp --enable-xattrs
%configure --disable-silent-rules --disable-ext4 --disable-zypp --enable-xattrs
#NOTE: avoid 'unused-direct-shlib-dependency' warning in rpmlint checks
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
@ -64,6 +71,7 @@ make install DESTDIR=%{buildroot}
install -m644 -D data/sysconfig.snapper %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%{find_lang} %{name}
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/security/*.la
%post libs -p /sbin/ldconfig
@ -80,6 +88,7 @@ rm -f %{buildroot}/%{_libdir}/*.la
%doc AUTHORS
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/snapperd.8*
%{_mandir}/man5/snapper-configs.5*
%files libs
%{_libdir}/libsnapper.so.*
@ -93,11 +102,26 @@ rm -f %{buildroot}/%{_libdir}/*.la
%doc AUTHORS COPYING
%files devel
%doc examples/*.cc
%doc examples/c/*.c
%doc examples/c++-lib/*.cc
%{_libdir}/libsnapper.so
%{_includedir}/%{name}
%files -n pam_snapper
#%defattr(-,root,root)
%{_libdir}/security/pam_snapper.so
%dir %{_prefix}/lib/pam_snapper
%{_prefix}/lib/pam_snapper/*.sh
%doc %{_mandir}/*/pam_snapper*.*
%changelog
* Mon Jul 29 2013 Ondrej Kozina <okozina@redhat.com> - 0.1.5-1
- updated to latest upstream
- allow whitespace in ALLOW_USERS and ALLOW_GROUPS
- enable new pam module
- modified specfile to reflect recent change in %doc macro (no more version suffix)
- patch: pam module installed in proper libdir
* Sat Jul 27 2013 Petr Machata <pmachata@redhat.com> - 0.1.3-2.20130426git35ff4ec
- rebuild for boost 1.54.0
- Boost.Thread DSO does not include -mt suffix anymore (snapper-boost-mt.patch)

View File

@ -1 +1 @@
b033115f16f3ba54010845a90e009191 snapper-0.1.3.tar.bz2
12e00ca9959333b5dba854a7c9c7e0b0 snapper-0.1.5.tar.gz