dar-vl.spec 5.9 KB

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