cdparanoia-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. Name: cdparanoia
  2. Summary: A Compact Disc Digital Audio (CDDA) extraction tool (or ripper).
  3. Summary(ja): 音楽 CD (CDDA) 用の抽出ツール
  4. Version: 10.2
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Multimedia
  7. License: GPLv2 and LGPLv2
  8. URL: http://www.xiph.org/paranoia/index.html
  9. Source: http://www.xiph.org/paranoia/download/%{name}-III-%{version}.src.tgz
  10. Patch0: cdparanoia-fPIC.patch
  11. # Patch from upstream to fix cdda_interface.h C++ incompatibility ("private")
  12. # https://trac.xiph.org/changeset/15338
  13. # https://bugzilla.redhat.com/show_bug.cgi?id=463009
  14. Patch1: cdparanoia-10.2-#463009.patch
  15. #Patch1: cdparanoia-gcc4-build.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. %description
  18. Cdparanoia (Paranoia III) reads digital audio directly from a CD, then
  19. writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear
  20. PCM format. Cdparanoia doesn't contain any extra features (like the ones
  21. included in the cdda2wav sampling utility). Instead, cdparanoia's strength
  22. lies in its ability to handle a variety of hardware, including inexpensive
  23. drives prone to misalignment, frame jitter and loss of streaming during
  24. atomic reads. Cdparanoia is also good at reading and repairing data from
  25. damaged CDs.
  26. %package devel
  27. Summary: Development tools for libcdda_paranoia (Paranoia III).
  28. Summary(ja): libcdda_paranoia (Paranoia III) の開発用ファイル
  29. Group: Development/Libraries
  30. License: LGPLv2
  31. Requires: %{name} = %{version}
  32. %description devel
  33. The cdparanoia-devel package contains the static libraries and header
  34. files needed for developing applications to read CD Digital Audio disks.
  35. %prep
  36. %setup -q -n %{name}-III-%{version}
  37. %patch1 -p3 -b .#463009
  38. %build
  39. export OPT="${CFLAGS:-%optflags} -O0 -Wno-pointer-sign -Wno-unused -Werror-implicit-function-declaration"
  40. %configure --includedir=%{_includedir}/cdda
  41. make OPT="$OPT"
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. install -d $RPM_BUILD_ROOT%{_bindir}
  45. install -d $RPM_BUILD_ROOT%{_includedir}/cdda
  46. install -d $RPM_BUILD_ROOT%{_libdir}
  47. install -d $RPM_BUILD_ROOT%{_mandir}/man1
  48. install -m 0755 cdparanoia $RPM_BUILD_ROOT%{_bindir}
  49. install -m 0644 cdparanoia.1 $RPM_BUILD_ROOT%{_mandir}/man1/
  50. install -m 0644 utils.h paranoia/cdda_paranoia.h interface/cdda_interface.h \
  51. $RPM_BUILD_ROOT%{_includedir}/cdda
  52. install -m 0755 paranoia/libcdda_paranoia.so.0.10.? \
  53. interface/libcdda_interface.so.0.10.? \
  54. $RPM_BUILD_ROOT%{_libdir}
  55. install -m 0755 paranoia/libcdda_paranoia.a interface/libcdda_interface.a \
  56. $RPM_BUILD_ROOT%{_libdir}
  57. install -d $RPM_BUILD_ROOT%{_mandir}/ja/man1
  58. install -m 0644 cdparanoia.1.jp $RPM_BUILD_ROOT%{_mandir}/ja/man1/cdparanoia.1
  59. /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
  60. pushd $RPM_BUILD_ROOT%{_libdir}
  61. ln -s libcdda_paranoia.so.0.10.? libcdda_paranoia.so
  62. ln -s libcdda_interface.so.0.10.? libcdda_interface.so
  63. popd
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %clean
  67. [ "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"
  68. %files
  69. %defattr(-,root,root)
  70. %doc README COPYING-GPL COPYING-LGPL
  71. %{_bindir}/*
  72. %{_libdir}/lib*.so.*
  73. %{_mandir}/man1/*
  74. %{_mandir}/ja/man1/*
  75. %files devel
  76. %defattr(-,root,root)
  77. %{_includedir}/cdda
  78. %{_libdir}/lib*.so
  79. %{_libdir}/*.a
  80. %changelog
  81. * Sun Apr 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.2-2
  82. - rebuilt with new toolchain
  83. - added Japanese summary
  84. * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.2-1
  85. - new upstream release
  86. - added Requires: cdparanoia to devel package
  87. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> alpha9.8-9vl5
  88. - applied new versioning policy
  89. * Tue Jul 3 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> alpha9.8-8vl6
  90. - add Patch1
  91. * Tue Oct 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> alpha9.8-8vl5
  92. - added fPIC.patch fix a problem on x86_64 archtecture
  93. * Fri Dec 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> alpha9.8-8vl4
  94. - rebuild with new toolchain
  95. * Sun Mar 16 2003 IWAI Masaharu <iwai@alib.jp> alpha9.8-8vl3
  96. - rebuild with new toolchain
  97. * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  98. - alpha9.8-8vl2
  99. - rebuild on VineSeed
  100. * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  101. - alpha9.8-8vl1
  102. - included japanese manual
  103. * Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de>
  104. - fix spelling error in description
  105. * Thu Dec 7 2000 Crutcher Dunnavant <crutcher@redhat.com>
  106. - rebuild for new tree
  107. * Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
  108. - use %%{_tmppath}
  109. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  110. - automatic rebuild
  111. * Wed Jun 06 2000 Preston Brown <pbrown@redhat.com>
  112. - revert name change
  113. - use new rpm macro paths
  114. * Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
  115. - Switched spec file from the one used in Red Hat Linux 6.2, which
  116. also changes the name
  117. - gzip man page
  118. * Thu Dec 23 1999 Peter Jones <pjones@redhat.com>
  119. - update package to provide cdparanoia-alpha9.7-2.*.rpm and
  120. cdparanoia-devel-alpha9.7-2.*.rpm. Also, URLs point at xiph.org
  121. like they should.
  122. * Wed Dec 22 1999 Peter Jones <pjones@redhat.com>
  123. - updated package for alpha9.7, based on input from:
  124. Monty <xiphmont@xiph.org>
  125. David Philippi <david@torangan.saar.de>
  126. * Mon Apr 12 1999 Michael Maher <mike@redhat.com>
  127. - updated pacakge
  128. * Tue Oct 06 1998 Michael Maher <mike@redhat.com>
  129. - updated package
  130. * Mon Jun 29 1998 Michael Maher <mike@redhat.com>
  131. - built package