Name: backup-manager Version: 0.7.7 Release: 3%{?dist} Summary: A command line backup tool for GNU/Linux Group: Applications/System License: GPLv2 URL: http://www.backup-manager.org Source0: http://www.backup-manager.org/download/%{name}-%{version}.tar.gz Source1: %{name}.cron.daily BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: gettext Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: gettext Requires: which %description Backup Manager is a command line backup tool for GNU/Linux, designed to help you make daily archives of your file system. Written in bash and perl, it can make archives in lots of open formats (tar, gzip, bzip2, lzma, dar, zip) and provides lots of interesting features (such as network exports or CD/DVD automated-burning). The program is designed to be as easy to use as possible and is popular with desktop users and sysadmins. The whole backup process is defined in one full-documented configuration file which needs no more than 5 minutes to tune for your needs. It just works. %prep %setup -q # Clean Makefile sed -i -e "s@install --owner=root --group=root @install @" Makefile # FHS configuration sed -i -e "s@export BM_REPOSITORY_ROOT=\"/var/archives\"@export BM_REPOSITORY_ROOT=\"%{_var}/lib/%{name}\"@" %{name}.conf.tpl # Add a configuration option for daily cron sed -i -e "s@# Where to store the archives@# Specific RPM : Enabled daily cron\nexport BM_DAILY_CRON=\"false\"\n\n# Where to store the archives@" %{name}.conf.tpl # Convert to utf-8 for file in AUTHORS ChangeLog THANKS; do mv $file timestamp iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp touch -r timestamp $file done %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT \ PERL5DIR=$RPM_BUILD_ROOT%{perl_vendorlib} %find_lang %{name} # Copy configuration mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} install -m 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.conf.tpl \ $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf # cron.daily install -D -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/%{name}.cron # sanitize.sh is a non-executable-script chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/sanitize.sh %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS %{_bindir}/%{name}-purge %{_bindir}/%{name}-upload %{_sbindir}/%{name} %{perl_vendorlib}/BackupManager %{_datadir}/%{name} %{_mandir}/man8/%{name}* %config(noreplace) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/cron.daily/%{name}.cron %changelog # Thanks for RemiFedora and trashy on #fedora-devel-fr@freenode.net * Fri Oct 10 2008 Guillaume Kulakowski - 0.7.7-3 - Add a daily cron * Wed Aug 20 2008 Guillaume Kulakowski - 0.7.7-2 - Iconv correction - Configuration correction * Sun Aug 17 2008 Guillaume Kulakowski - 0.7.7-1 - Initial packaging