dar-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. Name: dar
  2. Summary: Disk ARchive: Backup directory tree and files
  3. Summary(ja): ディスクアーカイブ: ディレクトリツリーとファイルをバックアップ
  4. Version: 2.3.10
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Archiving
  7. License: GPLv2+
  8. URL: http://dar.linux.free.fr/
  9. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: zlib-devel
  12. BuildRequires: bzip2-devel
  13. BuildRequires: openssl-devel
  14. BuildRequires: libattr-devel
  15. BuildRequires: e2fsprogs-devel
  16. Requires: par2cmdline
  17. %description
  18. DAR is a command line tool to backup a directory tree and files. DAR is
  19. able to make differential backups, split them over a set of disks or files
  20. of a given size, use compression, filter files or subtrees to be saved or
  21. not saved, directly access and restore given files. DAR is also able
  22. to handle extented attributes, and can make remote backups through an
  23. ssh session for example. Finally, DAR handles save and restore of hard
  24. and symbolic links.
  25. %package -n libdar
  26. Summary: Library providing support for the DAR API
  27. Group: System Environment/Libraries
  28. %description -n libdar
  29. Common library code for DAR.
  30. %package -n libdar-devel
  31. Summary: Development files for libdar
  32. Group: Development/Libraries
  33. Requires: libdar = %{version}-%{release}
  34. %description -n libdar-devel
  35. This package contains the header files and libraries for developing
  36. programs that use the DAR API (libdar).
  37. %prep
  38. %setup -q
  39. %build
  40. %configure --disable-build-html --disable-dar-static --disable-static
  41. # Remove Rpath
  42. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  43. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf $RPM_BUILD_ROOT html
  47. make install DESTDIR=$RPM_BUILD_ROOT
  48. # Remove the libtool archive files
  49. #rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/
  50. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  51. # Delete the sample files that we can't seem to disable
  52. rm -rf $RPM_BUILD_ROOT/%{_datadir}/dar/
  53. # Rename the documentation directory so it makes more sense after installation.
  54. cp -a doc html
  55. # Remove the doc makefiles so they don't get installed along with the other files.
  56. rm -f html/Makefile*
  57. rm -f html/*/Makefile*
  58. # Sample scripts should not be executable
  59. chmod 0644 html/samples/*
  60. %find_lang %{name}
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post -n libdar -p /sbin/ldconfig
  64. %postun -n libdar -p /sbin/ldconfig
  65. %files -f %{name}.lang
  66. %defattr(-,root,root,-)
  67. %doc html/ AUTHORS ChangeLog COPYING LICENSING_EXCEPTION_FOR_OPENSSL
  68. %doc NEWS README THANKS TODO
  69. %{_bindir}/dar
  70. %{_bindir}/dar_cp
  71. %{_bindir}/dar_manager
  72. %{_bindir}/dar_slave
  73. %{_bindir}/dar_xform
  74. %{_mandir}/man1/*
  75. %files -n libdar
  76. %defattr(-,root,root,-)
  77. %{_libdir}/*.so.*
  78. %files -n libdar-devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/dar/
  81. %{_libdir}/*.so
  82. %{_libdir}/pkgconfig/*.pc
  83. %changelog
  84. * Sun Oct 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.10-1
  85. - Initial build for VineLinux
  86. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.3.8-5
  87. - rebuilt with new openssl
  88. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-4
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  90. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-3
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  92. * Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 2.3.8-2
  93. - rebuild with new openssl
  94. * Mon Aug 04 2008 Marcin Garski <mgarski[AT]post.pl> 2.3.8-1
  95. - Update to 2.3.8 (#434519, #438953)
  96. - Own dar's include directory
  97. - Remove Rpath
  98. - Update BR's
  99. * Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.3.6-5
  100. - fix license tag
  101. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3.6-4
  102. - Autorebuild for GCC 4.3
  103. * Wed Dec 05 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-3
  104. - Add openssl requirement
  105. * Sun Nov 18 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-2
  106. - failed "make tag"
  107. * Sun Nov 18 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-1
  108. - Update to 2.3.6
  109. * Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.3.4-2
  110. - Rebuild for selinux ppc32 issue.
  111. * Tue Jul 03 2007 Chris Petersen <rpm@forevermore.net> 2.3.4-1
  112. - Update to 2.3.4
  113. * Mon May 28 2007 Chris Petersen <rpm@forevermore.net> 2.3.3-1
  114. - Update to 2.3.3
  115. - Remove man.dar.patch, which was added upstream
  116. * Wed Nov 15 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-4
  117. - Change the main summary -- this is no longer a "collection of scripts"
  118. * Tue Nov 14 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-3
  119. - Fix/standardize Requires/Provides for libdar and libdar-devel
  120. - Remove redundant zlib-devel (covered by openssl-devel)
  121. - Update README.Fedora with my name/date, as requested in the ticket
  122. - Add a patch to fix a funky character in man/dar.1
  123. * Fri Nov 04 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-2
  124. - Add README.Fedora explaining why we do not include static binaries (upstream's request)
  125. - Add libdar-static-devel subpackage to hold the *.a files
  126. - Disable static subpackages by default, enabled via "--with static" for those who want to compile them
  127. * Thu May 11 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-1
  128. - Initial package, compiled from half a dozen third party packages