# $Id: dar.spec,v 1.3 2008/04/09 13:51:46 slords Exp $ # # Specfile for DAR, the disk archiver # # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=210790 # # Static build is disabled by default by fedora policy, but also because the # latest versions of glibc don't seem to compile proper static binaries. Use # "--with static" to enable the static subpackage %define with_static %{?_with_static: 1} %{?!_with_static: 0} # # Basic descriptive tags for this package: # Name: dar Version: 2.3.8 Release: 1%{?dist} Summary: Software for making/restoring incremental CD/DVD backups URL: http://dar.linux.free.fr/ License: GPL Group: Applications/Archiving ################################################################################ Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: README.Fedora BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ################################################################################ BuildRequires: bzip2-devel BuildRequires: openssl-devel # Recommended, but no package yet in Epel. #Requires: par2cmdline ################################################################################ %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 libdar Group: System Environment/Libraries Summary: Library providing support for the DAR API %description -n libdar Common library code for DAR. ################################################################################ %package -n libdar-devel Group: Development/Libraries Summary: Development files for libdar Requires: libdar = %{version}-%{release} %description -n libdar-devel This package contains the header files and libraries for developing programs that use the DAR API (libdar). ################################################################################ # The following two subpackages are only built when enabled via "--with static" ################################################################################ %if %{with_static} %package -n dar-static Group: Applications/System Summary: Statically linked version of dar %description -n dar-static Statically linked version of dar that can be installed onto backup disks for easier file retrieval. %package -n libdar-static-devel Group: Development/Libraries Summary: Statically linked dar library files %description -nlibdar-static-devel Statically linked version of dar libraries that can be installed onto backup disks for easier file retrieval. %endif ################################################################################ %prep %setup -q ################################################################################ %build # Options %if %{with_static} STATIC="" %else STATIC="--disable-dar-static --disable-static" %endif %configure --disable-build-html $STATIC make %{?_smp_mflags} ################################################################################ %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} # Remove the libtool archive files rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig # Delete the sample files that we can't seem to disable rm -rf $RPM_BUILD_ROOT/%{_datadir}/dar/ # Remove the doc makefiles so they don't get installed along with the other files. rm -f doc/Makefile* rm -f doc/*/Makefile* # Rename the documentation directory so it makes more sense after installation. mv doc html # Sample scripts should not be executable chmod 0644 html/samples/* # Install the fedora readme cp -a %{SOURCE1} . ################################################################################ %clean rm -rf $RPM_BUILD_ROOT ################################################################################ %post -n libdar -p /sbin/ldconfig %postun -n libdar -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc html/ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO README.Fedora %{_bindir}/dar %{_bindir}/dar_cp %{_bindir}/dar_manager %{_bindir}/dar_slave %{_bindir}/dar_xform %{_mandir}/man1/* ################################################################################ %files -n libdar %defattr(-,root,root,-) %{_libdir}/*.so.* ################################################################################ %files -n libdar-devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so ################################################################################ %if %{with_static} %files -n dar-static %defattr(-,root,root,-) %{_bindir}/dar_static ################################################################################ %files -n libdar-static-devel %defattr(-,root,root,-) %{_libdir}/*.a ################################################################################ %endif %changelog * Sat Oct 11 2008 Shad L. Lords > 2.3.8-1 - Update to 2.3.8 * Fri Nov 30 2007 Shad L. Lords > 2.3.6-1 - Update to 2.3.6 * Mon Sep 17 2007 Shad L. Lords > 2.3.5-1 - Update to 2.3.5 * Sun Jul 22 2007 Chris Petersen 2.3.4-2 - Coment par2cmdline requirement. It's not really necessary, and not in Epel * Tue Jul 03 2007 Chris Petersen 2.3.4-1 - Update to 2.3.4 * Mon May 28 2007 Chris Petersen 2.3.3-1 - Update to 2.3.3 - Remove man.dar.patch, which was added upstream * Wed Nov 15 2006 Chris Petersen 2.3.1-4 - Change the main summary -- this is no longer a "collection of scripts" * Tue Nov 14 2006 Chris Petersen 2.3.1-3 - Fix/standardize Requires/Provides for libdar and libdar-devel - Remove redundant zlib-devel (covered by openssl-devel) - Update README.Fedora with my name/date, as requested in the ticket - Add a patch to fix a funky character in man/dar.1 * Fri Nov 04 2006 Chris Petersen 2.3.1-2 - Add README.Fedora explaining why we do not include static binaries (upstream's request) - Add libdar-static-devel subpackage to hold the *.a files - Disable static subpackages by default, enabled via "--with static" for those who want to compile them * Thu May 11 2006 Chris Petersen 2.3.1-1 - Initial package, compiled from half a dozen third party packages