cdrkit-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. Summary: A collection of CD/DVD utilities
  2. Summary(ja): CD/DVD ユーティリティ集
  3. Name: cdrkit
  4. Version: 1.1.11
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/System
  8. URL: http://cdrkit.org/
  9. Source: http://cdrkit.org/releases/cdrkit-%{version}.tar.gz
  10. Patch1: cdrkit-1.1.8-werror.patch
  11. Patch2: cdrkit-1.1.9-efi-boot.patch
  12. Patch4: cdrkit-1.1.9-no_mp3.patch
  13. Patch5: cdrkit-1.1.9-buffer_overflow.patch
  14. #Patch6: cdrkit-1.1.9-rr_joliet.patch
  15. Patch6: cdrkit-1.1.10-build-fix.patch
  16. Patch7: cdrkit-1.1.11-manpagefix.patch
  17. Patch8: cdrkit-1.1.11-rootstat.patch
  18. Patch9: cdrkit-1.1.11-usalinst.patch
  19. Patch10: cdrkit-1.1.11-readsegfault.patch
  20. BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. %description
  23. cdrkit is a collection of CD/DVD utilities.
  24. %package -n wodim
  25. Summary: A command line CD/DVD recording program
  26. Summary(ja): コマンドラインの CD/DVD 書き込みプログラム
  27. Group: Applications/Archiving
  28. Obsoletes: dvdrecord < 0.1.5.1
  29. Provides: dvdrecord = 0.1.5.1
  30. Obsoletes: cdrecord < 2.01.01.1
  31. Provides: cdrecord = 2.01.01.1
  32. Obsoletes: cdrtools-cdrecord < 2.01.01.1
  33. Provides: cdrtools-cdrecord = 2.01.01.1
  34. Requires(preun): alternatives chkconfig coreutils
  35. Requires(post): alternatives chkconfig coreutils
  36. %description -n wodim
  37. Wodim is an application for creating audio and data CDs. Wodim
  38. works with many different brands of CD recorders, fully supports
  39. multi-sessions and provides human-readable error messages.
  40. %package -n genisoimage
  41. Summary: Creates an image of an ISO9660 file system
  42. Summary(ja): ISO9660 ファイルシステムのイメージを作成するツール
  43. Group: Applications/System
  44. Obsoletes: mkisofs < 2.01.01.1
  45. Provides: mkisofs = 2.01.01.1
  46. Obsoletes: cdrtools-mkisofs < 2.01.01.1
  47. Provides: cdrtools-mkisofs = 2.01.01.1
  48. Obsoletes: mkhybrid, cdrecord-mkhybrid, cdrecord-mkisofs
  49. Requires(preun): alternatives chkconfig coreutils
  50. Requires(post): alternatives chkconfig coreutils
  51. %description -n genisoimage
  52. The genisoimage program is used as a pre-mastering program; i.e., it
  53. generates the ISO9660 file system. Genisoimage takes a snapshot of
  54. a given directory tree and generates a binary image of the tree
  55. which will correspond to an ISO9660 filesystem when written to
  56. a block device. Genisoimage is used for writing CD-ROMs, and includes
  57. support for creating bootable El Torito CD-ROMs.
  58. Install the genisoimage package if you need a program for writing
  59. CD-ROMs.
  60. %package -n dirsplit
  61. Summary: Utility to split directories
  62. Summary(ja): ディレクトリを分割するユーティリティ
  63. Group: Applications/System
  64. Requires: perl
  65. Requires: genisoimage = %{version}-%{release}
  66. %description -n dirsplit
  67. This utility is used to split directories into chunks before burning.
  68. Chunk size is usually set to fit to a CD/DVD.
  69. %package -n icedax
  70. Group: Applications/Multimedia
  71. Summary: A utility for sampling/copying .wav files from digital audio CDs
  72. Summary(ja): デジタルオーディオCDから.wavファイルをサンプリング/コピーするためのユーティリティ
  73. Obsoletes: cdda2wav < 2.01.01.1
  74. Provides: cdda2wav = 2.01.01.1
  75. Obsoletes: cdrtools-cdda2wav < 2.01.01.1
  76. Provides: cdrtools-cdda2wav = 2.01.01.1
  77. Requires(preun): alternatives chkconfig coreutils
  78. Requires(post): alternatives chkconfig coreutils
  79. Requires: vorbis-tools
  80. %description -n icedax
  81. Icedax is a sampling utility for CD-ROM drives that are capable of
  82. providing a CD's audio data in digital form to your host. Audio data
  83. read from the CD can be saved as .wav or .sun format sound files.
  84. Recording formats include stereo/mono, 8/12/16 bits and different
  85. rates. Icedax can also be used as a CD player.
  86. %package -n libusal-devel
  87. Summary: Development files for libusal
  88. Summary(ja): libusal の開発ファイル
  89. Group: Development/Libraries
  90. Provides: libusal-static = %{version}-%{release}
  91. %description -n libusal-devel
  92. The libusal-devel package contains libraries and header files
  93. for developing applications that use libusal.
  94. %prep
  95. %setup -q
  96. %patch1 -p1 -b .werror
  97. %patch2 -p1 -b .efi
  98. %patch4 -p1 -b .no_mp3
  99. %patch5 -p1 -b .buffer_overflow
  100. #%patch6 -p1 -b .rr_joliet
  101. %patch6 -p1 -b .build-fix
  102. %patch7 -p1 -b .manpagefix
  103. %patch8 -p1 -b .rootstat
  104. %patch9 -p1 -b .usalinst
  105. %patch10 -p1 -b .readsegfault
  106. find . -type f -print0 | xargs -0 perl -pi -e 's#/usr/local/bin/perl#/usr/bin/perl#g'
  107. find doc -type f -print0 | xargs -0 chmod a-x
  108. %build
  109. mkdir fedora
  110. cd fedora
  111. export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing"
  112. export CXXFLAGS="$CFLAGS"
  113. export FFLAGS="$CFLAGS"
  114. %cmake CMAKE_VERBOSE=1 \
  115. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  116. -DBUILD_SHARED_LIBS:BOOL=ON \
  117. ..
  118. make VERBOSE=1 %{?_smp_mflags}
  119. %install
  120. rm -rf $RPM_BUILD_ROOT
  121. cd fedora
  122. make install DESTDIR=$RPM_BUILD_ROOT
  123. perl -pi -e 's#^require v5.8.1;##g' $RPM_BUILD_ROOT%{_bindir}/dirsplit
  124. ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkisofs
  125. ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkhybrid
  126. ln -s icedax $RPM_BUILD_ROOT%{_bindir}/cdda2wav
  127. ln -s wodim $RPM_BUILD_ROOT%{_bindir}/cdrecord
  128. ln -s wodim $RPM_BUILD_ROOT%{_bindir}/dvdrecord
  129. # missing man page. Do symlink like in debian
  130. ln -sf wodim.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/netscsid.1.gz
  131. # we don't need cdda2mp3 since we don't have any mp3 {en,de}coder
  132. rm $RPM_BUILD_ROOT%{_bindir}/cdda2mp3
  133. %clean
  134. rm -rf $RPM_BUILD_ROOT
  135. %post -n wodim
  136. link=`readlink %{_bindir}/cdrecord`
  137. if [ "$link" == "%{_bindir}/wodim" ] || [ "$link" == "" ]; then
  138. rm -f %{_bindir}/cdrecord
  139. fi
  140. link=`readlink %{_bindir}/dvdrecord`
  141. if [ "$link" == "wodim" ] || [ "$link" == "" ]; then
  142. rm -f %{_bindir}/dvdrecord
  143. fi
  144. /sbin/update-alternatives --install %{_bindir}/cdrecord cdrecord \
  145. %{_bindir}/wodim 50 \
  146. --slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman \
  147. %{_mandir}/man1/wodim.1.gz \
  148. --slave %{_bindir}/dvdrecord cdrecord-dvdrecord %{_bindir}/wodim \
  149. --slave %{_mandir}/man1/dvdrecord.1.gz cdrecord-dvdrecordman \
  150. %{_mandir}/man1/wodim.1.gz \
  151. --slave %{_bindir}/readcd cdrecord-readcd %{_bindir}/readom \
  152. --slave %{_mandir}/man1/readcd.1.gz cdrecord-readcdman \
  153. %{_mandir}/man1/readom.1.gz
  154. %preun -n wodim
  155. if [ $1 = 0 ]; then
  156. %{_sbindir}/alternatives --remove cdrecord %{_bindir}/wodim
  157. fi
  158. %post -n genisoimage
  159. link=`readlink %{_bindir}/mkisofs`
  160. if [ "$link" == "genisoimage" ] || [ "$link" == "" ]; then
  161. rm -f %{_bindir}/mkisofs
  162. fi
  163. /sbin/update-alternatives --install %{_bindir}/mkisofs mkisofs \
  164. %{_bindir}/genisoimage 50 \
  165. --slave %{_mandir}/man1/mkisofs.1.gz mkisofs-mkisofsman \
  166. %{_mandir}/man1/genisoimage.1.gz \
  167. --slave %{_bindir}/mkhybrid mkisofs-mkhybrid %{_bindir}/genisoimage
  168. %preun -n genisoimage
  169. if [ $1 = 0 ]; then
  170. /sbin/update-alternatives --remove mkisofs %{_bindir}/genisoimage
  171. fi
  172. %post -n icedax
  173. link=`readlink %{_bindir}/cdda2wav`
  174. if [ "$link" == "icedax" ] || [ "$link" == "" ]; then
  175. rm -f %{_bindir}/cdda2wav
  176. fi
  177. /sbin/update-alternatives --install %{_bindir}/cdda2wav cdda2wav \
  178. %{_bindir}/icedax 50 \
  179. --slave %{_mandir}/man1/cdda2wav.1.gz cdda2wav-cdda2wavman \
  180. %{_mandir}/man1/icedax.1.gz
  181. %preun -n icedax
  182. if [ $1 = 0 ]; then
  183. /sbin/update-alternatives --remove cdda2wav %{_bindir}/icedax
  184. fi
  185. %files -n wodim
  186. %defattr(-,root,root)
  187. %doc Changelog COPYING FAQ FORK START
  188. %doc doc/READMEs doc/wodim
  189. %{_bindir}/devdump
  190. %{_bindir}/wodim
  191. %ghost %{_bindir}/cdrecord
  192. %ghost %{_bindir}/dvdrecord
  193. %{_bindir}/readom
  194. %{_sbindir}/netscsid
  195. %{_mandir}/man1/devdump.*
  196. %{_mandir}/man1/wodim.*
  197. %{_mandir}/man1/netscsid.*
  198. %{_mandir}/man1/readom.*
  199. %files -n icedax
  200. %defattr(-,root,root)
  201. %doc doc/icedax COPYING
  202. %{_bindir}/icedax
  203. %ghost %{_bindir}/cdda2wav
  204. %{_bindir}/cdda2ogg
  205. %{_mandir}/man1/icedax.*
  206. %{_mandir}/man1/cdda2ogg.*
  207. %{_mandir}/man1/list_audio_tracks.*
  208. %files -n genisoimage
  209. %defattr(-,root,root)
  210. %doc doc/genisoimage COPYING
  211. %{_bindir}/genisoimage
  212. %ghost %{_bindir}/mkisofs
  213. %ghost %{_bindir}/mkhybrid
  214. %{_bindir}/isodebug
  215. %{_bindir}/isodump
  216. %{_bindir}/isoinfo
  217. %{_bindir}/isovfy
  218. %{_bindir}/pitchplay
  219. %{_bindir}/readmult
  220. %{_mandir}/man5/genisoimagerc.*
  221. %{_mandir}/man1/genisoimage.*
  222. %{_mandir}/man1/isodebug.*
  223. %{_mandir}/man1/isodump.*
  224. %{_mandir}/man1/isoinfo.*
  225. %{_mandir}/man1/isovfy.*
  226. %{_mandir}/man1/pitchplay.*
  227. %{_mandir}/man1/readmult.*
  228. %files -n dirsplit
  229. %defattr(-,root,root)
  230. %{_bindir}/dirsplit
  231. %{_mandir}/man1/dirsplit.*
  232. %files -n libusal-devel
  233. %defattr(-,root,root)
  234. %doc Changelog COPYING FAQ FORK START
  235. %{_libdir}/libusal.a
  236. %{_libdir}/librols.a
  237. %{_includedir}/usal
  238. %changelog
  239. * Fri Apr 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.11-1
  240. - initial build for Vine Linux
  241. * Thu Mar 17 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-6
  242. - Added Provides: libusal-static for libusal-devel subpackage
  243. (Resolves: #688347)
  244. * Mon Mar 07 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-5
  245. - Fix segmentation fault in readom
  246. (Resolves: #682591)
  247. * Thu Feb 17 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-4
  248. - Library libusal is installed in order to be used by other apps
  249. (Resolves: #588508)
  250. https://bugzilla.redhat.com/show_bug.cgi?id=588508
  251. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
  252. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  253. * Mon Jan 31 2011 Honza Horak <hhorak@redhat.com> 1.1.11-2
  254. - fixed man page missing arguments (Resolves: #647024)
  255. https://bugzilla.redhat.com/show_bug.cgi?id=647024
  256. - fixed erroneous "Unknown file type (unallocated)" warning
  257. (Resolves: #174667)
  258. https://bugzilla.redhat.com/show_bug.cgi?id=174667
  259. * Mon Oct 18 2010 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.11-1
  260. - new upstream version 1.1.11
  261. * Mon Jun 21 2010 Roman Rakus <rrakus@redhat.com> - 1.1.10-2
  262. - Added missing manpage for netscsid (symlink to wodim manpage)
  263. * Wed Jan 20 2010 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.10-1
  264. - new upstream version 1.1.10
  265. * Tue Aug 11 2009 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.9-10
  266. - fix #508449. fix string overflow breakage when using the -root
  267. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-9
  268. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  269. * Thu Jul 16 2009 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.9-8
  270. - fix buffer overflow
  271. * Fri Jul 10 2009 Adam Jackson <ajax@redhat.com> 1.1.9-7
  272. - Move dirsplit to a subpackage to isolate the perl dependency.
  273. * Tue Jun 15 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-6
  274. - rename functions as they conflict with glibc
  275. - Don't push cdda2mp3 because we don't have any mp3 coder
  276. Resolves: #505918
  277. * Tue Jun 02 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-5
  278. - Added Requires vorbis-tools in icedax (rhbz #503699)
  279. * Wed Feb 25 2009 Peter Jones <pjones@redhat.com> - 1.1.9-4
  280. - Add support for EFI boot images.
  281. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-3
  282. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  283. * Thu Feb 12 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-2
  284. - Use -fno-strict-aliasing to prevent strict_aliasing warnings/errors
  285. * Mon Oct 27 2008 Roman Rakus <rrakus@redhat.com> - 1.1.9-1
  286. - Bump to version 1.1.9
  287. * Tue May 27 2008 Roman Rakus <rrakus@redhat.com> - 1.1.8-1
  288. - Version 1.1.8 - old patches included
  289. - added bzip2-devel to build requirements
  290. - fixed #171510 - preserve directory permissions
  291. * Wed Feb 27 2008 Harald Hoyer <harald@redhat.com> 1.1.6-11
  292. - refined -Werror patch
  293. * Mon Feb 25 2008 Harald Hoyer <harald@redhat.com> 1.1.6-10
  294. - patched to compile with -Werror (rhbz#429385)
  295. * Thu Feb 21 2008 Harald Hoyer <harald@redhat.com> 1.1.6-9
  296. - fixed loop on error message for old dev syntax (rhbz#429386)
  297. * Thu Feb 21 2008 Harald Hoyer <harald@redhat.com> 1.1.6-8
  298. - added file-devel to build requirements
  299. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.6-7
  300. - Autorebuild for GCC 4.3
  301. * Tue Sep 25 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-6
  302. - fixed readcd man page symlink
  303. * Fri Sep 21 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-5
  304. - fixed rhbz#255001 - icedax --devices segfaults
  305. - fixed rhbz#249357 - Typo in wodim output
  306. * Fri Sep 21 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-4
  307. - play stupid tricks, to let alternatives make the links and
  308. rpm not removing them afterwards
  309. - removed bogus warning for "." and ".."
  310. * Thu Sep 20 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-3
  311. - fixed rhbz#248262
  312. - switched to alternatives
  313. * Fri Aug 17 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-2
  314. - changed license to GPLv2
  315. * Wed Jun 20 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-1
  316. - version 1.1.6
  317. - added readcd symlink
  318. * Mon Apr 23 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-4
  319. - bump obsoletes/provides
  320. * Tue Feb 27 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-3
  321. - applied specfile changes as in bug #224365
  322. * Wed Jan 24 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-1
  323. - version 1.1.2