Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
backup
>
rsnapshot
> rsnapshot.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rsnapshot.spec of Package rsnapshot
# $Id: rsnapshot.spec 7981 2009-11-03 03:05:34Z dag $ # Authority: dag %define logmsg logger -t %{name}/rpm Summary: Local and remote filesystem snapshot utility Name: rsnapshot Version: 1.3.1 Release: 1%{?dist} License: GPL Group: Applications/System URL: http://www.rsnapshot.org/ Packager: Dag Wieers <dag@wieers.com> Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://www.rsnapshot.org/downloads/rsnapshot-%{version}.tar.gz Patch1: rsnapshot-kpartx.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: rsync, openssh, autoconf, automake, openssh-clients Requires: perl, rsync, openssh-clients %description rsnapshot is a remote backup program that uses rsync to take backup snapshots of filesystems. rnsapshot uses hard links to save space on disk. %prep %setup %patch1 %{__perl} -pi.orig -e ' s|^#\@CMD_CP\@|\@CMD_CP\@|g; s|^#\@CMD_DU\@|\@CMD_DU\@|g; s|^#logfile\s+.+$|logfile /var/log/rsnapshot|g; s|^#lockfile\s+.+$|lockfile /var/run/rsnapshot.pid|g; ' rsnapshot.conf.default.in %build %configure \ --with-perl="%{__perl}" \ --with-rsync="%{_bindir}/rsync" \ --with-ssh="%{_bindir}/ssh" \ --with-logger="%{_bindir}/logger" \ --with-du="%{_bindir}/du" %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" %{__install} -Dp -m0644 rsnapshot.conf.default %{buildroot}%{_sysconfdir}/rsnapshot.conf %post VERSION="$(%{_bindir}/rsnapshot check-config-version &>/dev/null)" if [ $1 -gt 0 ]; then %logmsg "Error upgrading %{_sysconfdir}/rsnapshot.conf." fi VERSION="$(%{_bindir}/rsnapshot check-config-version &>/dev/null)" if [ "$VERSION" == "unknown" ]; then %{_bindir}/rsnapshot upgrade-config-file exit $? fi if [ "$VERSION" != "1.2" ]; then %logmsg "Error upgrading %{_sysconfdir}/rsnapshot.conf. Config format unknown!" fi %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO %doc rsnapshot.conf.default utils/ %doc %{_mandir}/man1/rsnapshot.1* %doc %{_mandir}/man1/rsnapshot-diff.1* %config %{_sysconfdir}/rsnapshot.conf %exclude %{_sysconfdir}/rsnapshot.conf.default %{_bindir}/rsnapshot %{_bindir}/rsnapshot-diff %changelog * Sun Sep 14 2008 Dag Wieers <dag@wieers.com> - 1.3.1-1 - 7981/dag - Updated to release 1.3.1. * Wed Jan 10 2007 Dag Wieers <dag@wieers.com> - 1.3.0-1 - Updated to release 1.3.0. * Fri Jun 02 2006 Dag Wieers <dag@wieers.com> - 1.2.9-1 - Updated to release 1.2.9. * Sat Sep 03 2005 Dag Wieers <dag@wieers.com> - 1.2.3-1 - Updated to release 1.2.3. * Sun Aug 21 2005 Dag Wieers <dag@wieers.com> - 1.2.2-1 - Updated to release 1.2.2. * Sat Aug 06 2005 Dag Wieers <dag@wieers.com> - 1.2.1-2 - Fixed bug in %post script. (John Hinton) * Sat May 07 2005 Dag Wieers <dag@wieers.com> - 1.2.1-1 - Initial package. (using DAR)