%define major 5 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define staticname %mklibname %{name} -d -s Summary: Shell command to back up directory trees and files Name: dar Version: 2.4.2 Release: %mkrel 3 URL: http://dar.linux.free.fr/ License: GPLv2+ Group: Archiving/Backup BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Source0: http://nchc.dl.sourceforge.net/sourceforge/dar/%{name}-%{version}.tar.gz Patch0: dar-2.4.2-gcc47.patch BuildRequires: zlib-devel BuildRequires: gcc-c++ BuildRequires: bzip2-devel BuildRequires: libstdc++-static-devel BuildRequires: libattr-devel BuildRequires: libacl-devel BuildRequires: glibc-static-devel BuildRequires: openssl-static-devel BuildRequires: doxygen %description DAR is a command line tool to backup a directory tree and files. DAR is able to make differential backups, split them over a set of disks or files of a given size, use compression, filter files or subtrees to be saved or not saved, directly access and restore given files. DAR is also able to handle extented attributes, and can make remote backups through an ssh session for example. Finally, DAR handles save and restore of hard and symbolic links. %package -n %{libname} Group: System/Libraries Summary: Shared library for %{name} Provides: lib%{name} = %{version}-%{release} %description -n %{libname} DAR is a command line tool to backup a directory tree and files. DAR is able to make differential backups, split them over a set of disks or files of a given size, use compression, filter files or subtrees to be saved or not saved, directly access and restore given files. DAR is also able to handle extented attributes, and can make remote backups through an ssh session for example. Finally, DAR handles save and restore of hard and symbolic links. %package -n %{develname} Group: Development/Other Summary: Development headers for %{name} Requires: %libname = %{version} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} DAR is a command line tool to backup a directory tree and files. DAR is able to make differential backups, split them over a set of disks or files of a given size, use compression, filter files or subtrees to be saved or not saved, directly access and restore given files. DAR is also able to handle extented attributes, and can make remote backups through an ssh session for example. Finally, DAR handles save and restore of hard and symbolic links. %package -n %{staticname} Group: Development/Other Summary: Static development headers for %{name} Requires: %{libname} = %{version} Provides: %{name}-static-devel = %{version}-%{release} %description -n %{staticname} DAR is a command line tool to backup a directory tree and files. DAR is able to make differential backups, split them over a set of disks or files of a given size, use compression, filter files or subtrees to be saved or not saved, directly access and restore given files. DAR is also able to handle extented attributes, and can make remote backups through an ssh session for example. Finally, DAR handles save and restore of hard and symbolic links. %prep %setup -q %apply_patches %build %configure2_5x --disable-upx %make %install %makeinstall_std # fix-up docs install -m 644 doc/samples/README README.samples %find_lang %{name} # mv dar_static to /sbin , just in case :-) install -d %{buildroot}/sbin install %{buildroot}%{_bindir}/dar_static %{buildroot}/sbin/ rm -f %{buildroot}%{_bindir}/dar_static %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO %doc README.samples doc/samples/cdbackup.sh doc/samples/darrc_sample doc/samples/sample1.txt %doc doc/mini-howto/dar-differential-backup-mini-howto.*.html %{_bindir}/* /sbin/* %{_mandir}/man1/* %{_datadir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}rc %files -n %{libname} %{_libdir}/*.so.%{major}* %files -n %{develname} %{_includedir}/%{name} %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/lib%{name}.pc %files -n %{staticname} %{_libdir}/*.a %changelog * Fri Jan 11 2013 umeabot <umeabot> 2.4.2-3.mga3 + Revision: 348608 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 25 2012 wally <wally> 2.4.2-2.mga3 + Revision: 335023 - add patch to fix build with gcc 4.7 - clean .spec a bit * Sun Oct 09 2011 bcornec <bcornec> 2.4.2-1.mga2 + Revision: 153387 - Adds sha1 file - Working dar package for Mageia - Adds a first version of dar.spec from Mandriva - Created package structure for dar.