dar-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. %bcond_with static
  2. Name: dar
  3. Summary: Disk ARchive: Backup directory tree and files
  4. Summary(ja): ディスクアーカイブ: ディレクトリツリーとファイルをバックアップ
  5. Version: 2.7.7
  6. Release: 1%{?_dist_release}
  7. Group: accessories
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: GPLv2+
  11. URL: http://dar.linux.free.fr/
  12. Source0: https://github.com/Edrusb/DAR/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: curl-devel
  15. BuildRequires: e2fsprogs-devel
  16. BuildRequires: libattr-devel
  17. BuildRequires: libgcrypt-devel
  18. BuildRequires: lzo-devel
  19. BuildRequires: openssl-devel
  20. BuildRequires: zlib-devel
  21. BuildRequires: bzip2-devel
  22. BuildRequires: xz-devel
  23. %if %{with static}
  24. BuildRequires: glibc-static
  25. BuildRequires: libstdc++-static
  26. %endif
  27. Requires: par2cmdline
  28. %description
  29. DAR is a command line tool to backup a directory tree and files. DAR is
  30. able to make differential backups, split them over a set of disks or files
  31. of a given size, use compression, filter files or subtrees to be saved or
  32. not saved, directly access and restore given files. DAR is also able
  33. to handle extented attributes, and can make remote backups through an
  34. ssh session for example. Finally, DAR handles save and restore of hard
  35. and symbolic links.
  36. %package -n libdar
  37. Summary: Library providing support for the DAR API
  38. Summary(ja): DAR API をサポートするライブラリ
  39. Group: system
  40. %description -n libdar
  41. Common library code for DAR.
  42. %package -n libdar-devel
  43. Summary: Development files for libdar
  44. Summary(ja): libdar の開発用ファイル
  45. Group: programming
  46. Requires: libdar = %{version}-%{release}
  47. %description -n libdar-devel
  48. This package contains the header files and libraries for developing
  49. programs that use the DAR API (libdar).
  50. %package static
  51. Summary: Statically linked version of dar
  52. Group: accessories
  53. %description static
  54. Statically linked version of dar that can be installed onto backup disks for
  55. easier file retrieval.
  56. %debug_package
  57. %prep
  58. %setup -q -n DAR-%{version}
  59. %build
  60. %if %{with static}
  61. STATIC=""
  62. %else
  63. STATIC="--disable-dar-static --disable-static"
  64. %endif
  65. sh misc/init
  66. %configure --disable-build-html --enable-mode=64 $STATIC
  67. # Remove Rpath
  68. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  69. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  70. make %{?_smp_mflags}
  71. %install
  72. rm -rf $RPM_BUILD_ROOT html
  73. make install DESTDIR=$RPM_BUILD_ROOT
  74. # Remove the libtool archive files
  75. #rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/
  76. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  77. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
  78. # Delete the sample files that we can't seem to disable
  79. rm -rf $RPM_BUILD_ROOT/%{_datadir}/dar/
  80. # Rename the documentation directory so it makes more sense after installation.
  81. cp -a doc html
  82. # Remove the doc makefiles so they don't get installed along with the other files.
  83. rm -f html/Makefile*
  84. rm -f html/*/Makefile*
  85. # Sample scripts should not be executable
  86. chmod 0644 html/samples/*
  87. %find_lang %{name}
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT
  90. %files -f %{name}.lang
  91. %defattr(-,root,root,-)
  92. %license COPYING
  93. %doc html/ ABOUT-NLS AUTHORS ChangeLog INSTALL
  94. %doc NEWS README THANKS TODO
  95. %{_bindir}/dar
  96. %{_bindir}/dar_cp
  97. %{_bindir}/dar_manager
  98. %{_bindir}/dar_slave
  99. %{_bindir}/dar_split
  100. %{_bindir}/dar_xform
  101. %{_mandir}/man1/*
  102. %config(noreplace) %{_sysconfdir}/darrc
  103. %files -n libdar
  104. %defattr(-,root,root,-)
  105. %{_libdir}/*.so.*
  106. %files -n libdar-devel
  107. %defattr(-,root,root,-)
  108. %{_includedir}/dar/
  109. %{_libdir}/*.so
  110. %{_libdir}/pkgconfig/*.pc
  111. %if %{with static}
  112. %files static
  113. %defattr(-,root,root,-)
  114. %{_bindir}/dar_static
  115. %endif
  116. %changelog
  117. * Tue Nov 29 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.7.7-1
  118. - new upstream release.
  119. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.6.13-1
  120. - new upstream release.
  121. - dropped scriptlets.
  122. * Sat Oct 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.6.6-1
  123. - new upstream release.
  124. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.5-1
  125. - new upstream release.
  126. * Mon Apr 4 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.3-1
  127. - new upstream release.
  128. - enabled xz compression.
  129. * Tue Nov 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.4.15-1
  130. - new upstream release
  131. - built with libgcrypt 1.6.0
  132. * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.4.11-2
  133. - rebuilt with current environment.
  134. * Thu Oct 24 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.4.11-1
  135. - new upstream release.
  136. - enabled lzo2 and strong encryption.
  137. * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3.10-2
  138. - rebuild with openssl-1.0.0c
  139. * Sun Oct 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.10-1
  140. - Initial build for VineLinux
  141. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.3.8-5
  142. - rebuilt with new openssl
  143. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-4
  144. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  145. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-3
  146. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  147. * Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 2.3.8-2
  148. - rebuild with new openssl
  149. * Mon Aug 04 2008 Marcin Garski <mgarski[AT]post.pl> 2.3.8-1
  150. - Update to 2.3.8 (#434519, #438953)
  151. - Own dar's include directory
  152. - Remove Rpath
  153. - Update BR's
  154. * Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.3.6-5
  155. - fix license tag
  156. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3.6-4
  157. - Autorebuild for GCC 4.3
  158. * Wed Dec 05 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-3
  159. - Add openssl requirement
  160. * Sun Nov 18 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-2
  161. - failed "make tag"
  162. * Sun Nov 18 2007 Chris Petersen <rpm@forevermore.net> 2.3.6-1
  163. - Update to 2.3.6
  164. * Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.3.4-2
  165. - Rebuild for selinux ppc32 issue.
  166. * Tue Jul 03 2007 Chris Petersen <rpm@forevermore.net> 2.3.4-1
  167. - Update to 2.3.4
  168. * Mon May 28 2007 Chris Petersen <rpm@forevermore.net> 2.3.3-1
  169. - Update to 2.3.3
  170. - Remove man.dar.patch, which was added upstream
  171. * Wed Nov 15 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-4
  172. - Change the main summary -- this is no longer a "collection of scripts"
  173. * Tue Nov 14 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-3
  174. - Fix/standardize Requires/Provides for libdar and libdar-devel
  175. - Remove redundant zlib-devel (covered by openssl-devel)
  176. - Update README.Fedora with my name/date, as requested in the ticket
  177. - Add a patch to fix a funky character in man/dar.1
  178. * Sat Nov 04 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-2
  179. - Add README.Fedora explaining why we do not include static binaries (upstream's request)
  180. - Add libdar-static-devel subpackage to hold the *.a files
  181. - Disable static subpackages by default, enabled via "--with static" for those who want to compile them
  182. * Thu May 11 2006 Chris Petersen <rpm@forevermore.net> 2.3.1-1
  183. - Initial package, compiled from half a dozen third party packages