%define name dar %define version 2.3.5 %define release %mkrel 1 %define major 4 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define staticname %mklibname %{name} -d -s Summary: DAR - Disk ARchive Name: %{name} Version: %{version} Release: %{release} URL: http://dar.linux.free.fr/ License: GPL Group: Archiving/Backup Source0: http://nchc.dl.sourceforge.net/sourceforge/dar/%{name}-%{version}.tar.gz 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 %build %configure --disable-upx %make %install rm -rf %{buildroot} # fix-up docs install -m 644 doc/samples/README README.samples %makeinstall_std %find_lang %{name} #chmod a+x $RPM_BUILD_ROOT%{_datadir}/dar/*.duc # 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 # install macro_tools.hpp in the -devel package, as kdar (incorrectly) # uses it. This hack should be removed when kdar is fixed not to #include # macro_tools.hpp in its src/kdar_part/kdarmanager/archivemanager.cpp # AdamW, 2007/06 install -m 644 src/libdar/macro_tools.hpp %{buildroot}%{_includedir}/%{name} perl -pi -e 's,../my_config.h,my_config.h,g' %{buildroot}%{_includedir}/%{name}/macro_tools.hpp %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %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} %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{develname} %defattr (-,root,root) %{_includedir}/%{name} %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/lib%{name}.pc %files -n %{staticname} %defattr (-,root,root) %{_libdir}/*.a %changelog * Mon Aug 27 2007 Funda Wang <fundawang@mandriva.org> 2.3.5-1mdv2008.0 + Revision: 71738 - New version 2.3.5 * Thu Jul 12 2007 Adam Williamson <awilliamson@mandriva.com> 2.3.4-1mdv2008.0 + Revision: 51677 - spec clean (from frederik himpe) - new release 2.3.4 (from frederik himpe) * Mon Jun 11 2007 Adam Williamson <awilliamson@mandriva.com> 2.3.3-2mdv2008.0 + Revision: 38087 - include macro_tools.hpp in libdar-devel for kdar * Sun Jun 10 2007 Adam Williamson <awilliamson@mandriva.com> 2.3.3-1mdv2008.0 + Revision: 37738 - move .pc file to devel package - clean and correct provides - clean descriptions - go with the new devel policy - correct major (4) - new release 2.3.3 * Mon Aug 14 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.3.1-2mdv2007.0 - Fix rpmlint warnings * Sat Jul 01 2006 Emmanuel Andry <eandry@mandriva.org> 2.3.1-1mdv2007.0 - New release 2.3.1 * Sun May 07 2006 Jerome Soyer <saispo@mandriva.org> 2.3.0-1mdk - New release 2.3.0 - Fix doc build * Wed Dec 07 2005 Lenny Cartier <lenny@mandriva.com> 2.2.5-1mdk - 2.2.5 * Mon Aug 22 2005 Frederic Crozat <fcrozat@mandriva.com> 2.2.2-3mdk - Rebuild with latest gcc * Sun Jun 05 2005 Frederic Crozat <fcrozat@mandriva.com> 2.2.2-2mdk - Set executable bit on par scripts * Sun Jun 05 2005 Frederic Crozat <fcrozat@mandriva.com> 2.2.2-1mdk - Release 2.2.2 * Sun May 08 2005 Frederic Crozat <fcrozat@mandriva.com> 2.2.1-2mdk - Fix buildrequires * Sun May 08 2005 Frederic Crozat <fcrozat@mandriva.com> 2.2.1-1mdk - Release 2.2.1 - clean specfile - build with EA support now * Tue Sep 28 2004 Svetoslav Slavtchev <svetljo@gmx.de> 2.1.5-2mdk - fix group and post/pre scripts * Tue Sep 28 2004 Svetoslav Slavtchev <svetljo@gmx.de> 2.1.5-1mdk - initial contrib package