File cedar-backup2.spec of Package cedar-backup2

# norootforbuild

Name:				 cedar-backup2
Version:			 2.19.6
Release:			 0
Summary:			 System Backup Tool for Local and Remote Machines
# http://prdownloads.sourceforge.net/cedar-backup/CedarBackup2-%{version}.tar.gz
Source:			 CedarBackup2-%{version}.tar.bz2
Source99:		 %{name}-rpmlintrc
URL:				 http://cedar-backup.sourceforge.net/
Group:			 Productivity/Archiving/Backup
License:			 GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot:		 %{_tmppath}/build-%{name}-%{version}
BuildRequires:	 python python-devel python-xml
Requires:		 python-xml
%if 0%{?suse_version} >= 1120
BuildArch:		 noarch
%endif

%description
Cedar Backup is a software package designed to manage system backups for a pool
of local and remote machines. Cedar Backup understands how to back up
filesystem data as well as MySQL and PostgreSQL databases and Subversion
repositories. It can also be easily extended to support other kinds of data
sources.

Cedar Backup is focused around weekly backups to a single CD or DVD disc, with
the expectation that the disc will be changed or overwritten at the beginning
of each week. If your hardware is new enough (and almost all hardware is
today), Cedar Backup can write multisession discs, allowing you to add
incremental data to a disc on a daily basis.

Besides offering command-line utilities to manage the backup process, Cedar
Backup provides a well-organized library of backup-related functionality,
written in the Python programming language.

%prep
%setup -q -n "CedarBackup2-%{version}"

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
	 --prefix="%{_prefix}" \
	 --root="%{buildroot}" \
	 --record-rpm=rpmfiles.lst

for f in doc/*.1; do
	 b=$(basename "$f")
	 %__install -D -m0644 "$f" "%{buildroot}%{_mandir}/man1/$b"
done

%check
%__python util/test.py

%clean
%__rm -rf "%{buildroot}"

%files -f rpmfiles.lst
%defattr(-,root,root)
%doc Changelog CREDITS LICENSE README
%doc doc/*.sample
%doc doc/manual
%doc %{_mandir}/man1/*.1%{ext_man}

%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by