File storeBackup.spec of Package storeBackup

#
# spec file for package storeBackup (Version 1.19)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           storeBackup
Url:            http://sourceforge.net/projects/storebackup/
Version:        1.19
Release:        102
Summary:        storeBackup is a Disk-to-Disk Backup Tool for Linux
Source0:        storeBackup-%{version}.tar.bz2
Source1:        storeBackup-%{version}.config.default
Source2:        storeBackup-README.SUSE
Patch0:         storeBackup-%{version}.diff
License:        GPL v2 or later
Group:          Productivity/Archiving/Backup
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       sh-utils bzip2 textutils fileutils e2fsprogs
Recommends:     cron

%description 
storeBackup is a disk-to-disk backup tool for Linux. It should also run
on other Unix-like machines. You can directly browse through the
backed-up files (locally, via NFS, via SAMBA, or whatever). This gives
the users the ability to restore files easily and fast. The user only
has to copy (and possibly uncompress) the file. There is also a tool
for easily restoring (sub) trees for the administrator. Every single
backup from a specific time can be deleted without affecting the other
existing backups.



Authors:
--------
    Dr. Heinz-Josef Claes <hjclaes@web.de>

%prep -n storeBackup
%setup -n storeBackup
%patch0 -p 1

%build
# make

%install
#
install	-m755	-d	${RPM_BUILD_ROOT}				\
			${RPM_BUILD_ROOT}/usr/lib/%{name}		\
			${RPM_BUILD_ROOT}%{_bindir}			\
			${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}	\
			${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily	\
			${RPM_BUILD_ROOT}%{_sysconfdir}/storebackup.d
#
cp -a %{S:1}							./storebackup.config.default
cp -a %{S:2}							./README.SUSE
cp -aRpv bin/ lib/						${RPM_BUILD_ROOT}/usr/lib/%{name}
cp -a cron-storebackup						${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/storebackup
ln -sf /usr/lib/storeBackup/bin/storeBackup.pl			${RPM_BUILD_ROOT}%{_bindir}/storeBackup.pl
ln -sf /usr/lib/storeBackup/bin/storeBackup.pl			${RPM_BUILD_ROOT}%{_bindir}/storeBackup
ln -sf /usr/lib/storeBackup/bin/storeBackupConvertBackup.pl	${RPM_BUILD_ROOT}%{_bindir}/storeBackupConvertBackup.pl
ln -sf /usr/lib/storeBackup/bin/storeBackupRecover.pl		${RPM_BUILD_ROOT}%{_bindir}/storeBackupRecover.pl
ln -sf /usr/lib/storeBackup/bin/storeBackupVersions.pl		${RPM_BUILD_ROOT}%{_bindir}/storeBackupVersions.pl
ln -sf /usr/lib/storeBackup/bin/storeBackupls.pl		${RPM_BUILD_ROOT}%{_bindir}/storeBackupls.pl
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/storebackup.d/storebackup.config

%files
%defattr(-, root, root)
%doc ChangeLog LICENSE README.1ST _ATTENTION_ EXAMPLES README ROADMAP storebackup.config.default README.SUSE
/usr/lib/storeBackup
%attr(755, root, root) %dir %{_sysconfdir}/storebackup.d/
%attr(644, root, root) %ghost %config(noreplace,missingok) %{_sysconfdir}/storebackup.d/storebackup.config
%attr(755, root, root) %{_bindir}/*
%attr(755, root, root) %{_sysconfdir}/cron.daily/storebackup

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Thu Apr 10 2008 crrodriguez@suse.de
- soft 'Recommends' cron, otherwise included automated backup
  script will not work
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 mge@suse.de
- applied patches by lenz@grimmer.com (Tue Dec 13 2005):
  [#132857]: Fixed directory permissions
  * re-added the config file to the file list
  with the proper permissions, marked as ghost
  * use more macros
* Tue Sep 06 2005 mge@suse.de
- update to 1.19 includes fixes to several smaller issues,
  and mainly these bugs:
  [#73908]:  Insecure tempfile-names
  [#73910]:  too generous permissions of backup-root
- also #100101:  Installing storeBackup causes cron job
  failure emails
  is fixed
* Fri Mar 18 2005 mge@suse.de
- this patch is (nearly) 1.19, but not final
- fixes #65788 - /etc/storebackup.d/storebackup.config should
  not be executable
- fixes #65422 - storebackup symlink attack
* Thu Aug 12 2004 mge@suse.de
- update to 1.18.4
* Mon Mar 22 2004 mge@suse.de
- update to 1.16.1: storeBackup.pl
  * better explanations in the configuration file
  and for command line options
  * better error messages
  * option --print did not work for some values
  * fixed a bug in the module for reading the
  configuration file with keepWeekday
  * when printing to a log file and to stdout
  simultaneously, a possible error message with exit
  is now also printed to stdout
  * option verbose now has the same effekt as debug=1
* Mon Mar 01 2004 mge@suse.de
- update to 1.16
* Mon Feb 23 2004 hmacht@suse.de
- building as non-root
* Mon Sep 01 2003 mge@suse.de
- update to 1.14
* Thu Aug 07 2003 mge@suse.de
- update to 1.13
* Wed Jul 30 2003 mge@suse.de
- initial checkin 1.12.2
openSUSE Build Service is sponsored by