# # 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} %define devtoolset %{nil} %if 0%{?rhel} %if 0%{?rhel} <= 6 # checking for c++11 support... no # checking for c++ support with -std=c++11 option set... no # configure: error: C++ compiler lack support for c++11 standard %define devtoolset 6 %endif %endif # # Basic descriptive tags for this package: # Name: dar Version: 2.5.10 Release: 5%{?dist} Summary: Software for making/restoring incremental CD/DVD backups Group: Applications/Archiving License: GPLv2+ URL: http://dar.linux.free.fr/ ################################################################################ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: README.Fedora BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ################################################################################ BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: openssl-devel BuildRequires: libattr-devel BuildRequires: e2fsprogs-devel BuildRequires: lzo-devel BuildRequires: libgcrypt-devel Requires: par2cmdline %if 0%{?devtoolset} BuildRequires: devtoolset-%{devtoolset}-gcc BuildRequires: devtoolset-%{devtoolset}-gcc-c++ # Better safe than sorry... BuildRequires: devtoolset-%{devtoolset} BuildRequires: devtoolset-%{devtoolset}-build BuildRequires: devtoolset-%{devtoolset}-libstdc++-devel BuildRequires: devtoolset-%{devtoolset}-libasan-devel BuildRequires: devtoolset-%{devtoolset}-runtime %if %{?devtoolset} >= 6 BuildRequires: devtoolset-%{devtoolset}-make %endif Requires: devtoolset-%{devtoolset} Requires: devtoolset-%{devtoolset}-runtime %else BuildRequires: gcc-c++ %endif ################################################################################ %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 -n libdar-static-devel Statically linked version of dar libraries that can be installed onto backup disks for easier file retrieval. %endif ################################################################################ %prep %setup -q ################################################################################ %build %if 0%{?devtoolset} export CC="/opt/rh/devtoolset-%{devtoolset}/root%{_bindir}/gcc" export CPP="/opt/rh/devtoolset-%{devtoolset}/root%{_bindir}/cpp" export CXX="/opt/rh/devtoolset-%{devtoolset}/root%{_bindir}/c++" source /opt/rh/devtoolset-%{devtoolset}/enable %endif # Options %if %{with_static} STATIC="" %else STATIC="--disable-dar-static --disable-static" %endif %configure --disable-build-html ${STATIC} # Remove Rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' "libtool" sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' "libtool" %{__make} %{?_smp_mflags} ################################################################################ %install rm -rf "${RPM_BUILD_ROOT}" make install DESTDIR="${RPM_BUILD_ROOT}" #mkdir -p "${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/" %find_lang "%{name}" # Remove the libtool archive files rm -f "${RPM_BUILD_ROOT}%{_libdir}"/*.la # 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/ AUTHORS ChangeLog COPYING NEWS README THANKS TODO README.Fedora %{_bindir}/dar %{_bindir}/dar_cp %{_bindir}/dar_manager %{_bindir}/dar_slave %{_bindir}/dar_split %{_bindir}/dar_xform %config(noreplace) %{_sysconfdir}/darrc %{_mandir}/man1/* ################################################################################ %files -n libdar %defattr(-,root,root,-) %{_libdir}/*.so.* ################################################################################ %files -n libdar-devel %defattr(-,root,root,-) %{_includedir}/dar/ %{_libdir}/*.so %{_libdir}/pkgconfig/* ################################################################################ %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 * Thu Nov 02 2017 Tomasz Tomasik - 2.5.10-5 - Fix for EL6 - Rebuilt for EL7 * Thu Nov 02 2017 Tomasz Tomasik - 2.5.10-4 - Add a few changes to the SPEC file - Rebuilt for EL7 * Wed Aug 02 2017 Fedora Release Engineering - 2.5.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.5.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Apr 10 2017 Luis Bazan - 2.5.10-1 - new upstream version * Fri Feb 10 2017 Fedora Release Engineering - 2.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jun 05 2016 Luis Bazan - 2.5.5-1 - new upstream version * Mon Mar 07 2016 Luis Bazan - 2.5.3-1 - new upstream version * Wed Feb 03 2016 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Dec 07 2015 Luis Bazan - 2.5.2-1 - new upstream version * Fri Sep 11 2015 Luis Bazán - 2.4.18-1 - New upstream version * Wed Jun 17 2015 Fedora Release Engineering - 2.4.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 2.4.17-2 - Rebuilt for GCC 5 C++11 ABI change * Sun Mar 8 2015 Luis Bazan - 2.4.17-1 - New upstream version * Mon Nov 3 2014 Luis Bazan - 2.4.15-3 - add files pkgconfig * Fri Oct 24 2014 Luis Bazan - 2.4.15-2 - add pkgconfig BZ #1077403 * Wed Sep 10 2014 Luis Bazan - 2.4.15-1 - new upstream version * Sat Aug 16 2014 Fedora Release Engineering - 2.4.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Aug 09 2014 Luis Bazan - 2.4.14-1 - new upstream version * Sat Jun 07 2014 Fedora Release Engineering - 2.4.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 22 2014 Tomáš Mráz - 2.4.12-4 - Rebuild for new libgcrypt * Wed Feb 05 2014 Luis Bazan - 2.4.12-3 - add config noreplace * Wed Feb 05 2014 Luis Bazan - 2.4.12-2 - fix changelog * Tue Feb 04 2014 Luis Bazan - 2.4.12-1 - new upstream version * Tue Feb 04 2014 Luis Bazan - 2.4.11-2 - Fix BZ# 1060412 * Tue Oct 29 2013 Luis Bazan - 2.4.11-1 - New Upstream version * Sat Aug 03 2013 Fedora Release Engineering - 2.4.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu May 30 2013 Luis Bazan - 2.4.10-2 - thanks echevemaster for help in this packages - add requires needed to compile * Wed May 22 2013 Luis Bazan - 2.4.10-1 - New Upstream version * Wed Feb 13 2013 Fedora Release Engineering - 2.3.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 27 2012 Fedora Release Engineering - 2.3.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 2.3.8-9 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering - 2.3.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Oct 26 2011 Fedora Release Engineering - 2.3.8-7 - Rebuilt for glibc bug#747377 * Tue Feb 08 2011 Fedora Release Engineering - 2.3.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Aug 21 2009 Tomas Mraz - 2.3.8-5 - rebuilt with new openssl * Fri Jul 24 2009 Fedora Release Engineering - 2.3.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 2.3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 15 2009 Tomas Mraz 2.3.8-2 - rebuild with new openssl * Mon Aug 04 2008 Marcin Garski 2.3.8-1 - Update to 2.3.8 (#434519, #438953) - Own dar's include directory - Remove Rpath - Update BR's * Tue Jul 15 2008 Tom "spot" Callaway 2.3.6-5 - fix license tag * Wed Feb 20 2008 Fedora Release Engineering - 2.3.6-4 - Autorebuild for GCC 4.3 * Wed Dec 05 2007 Chris Petersen 2.3.6-3 - Add openssl requirement * Sun Nov 18 2007 Chris Petersen 2.3.6-2 - failed "make tag" * Sun Nov 18 2007 Chris Petersen 2.3.6-1 - Update to 2.3.6 * Tue Aug 28 2007 Fedora Release Engineering - 2.3.4-2 - Rebuild for selinux ppc32 issue. * 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 * Sat 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