cdparanoia-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. Summary: A Compact Disc Digital Audio (CDDA) extraction tool (or ripper).
  2. Name: cdparanoia
  3. Version: 10.2
  4. Release: 1%{?_dist_release}
  5. License: GPLv2 and LGPLv2
  6. Group: Applications/Multimedia
  7. Source: http://www.xiph.org/paranoia/download/%{name}-III-%{version}.src.tgz
  8. Patch0: cdparanoia-fPIC.patch
  9. # Patch from upstream to fix cdda_interface.h C++ incompatibility ("private")
  10. # https://trac.xiph.org/changeset/15338
  11. # https://bugzilla.redhat.com/show_bug.cgi?id=463009
  12. Patch1: cdparanoia-10.2-#463009.patch
  13. #Patch1: cdparanoia-gcc4-build.patch
  14. URL: http://www.xiph.org/paranoia/index.html
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. Cdparanoia (Paranoia III) reads digital audio directly from a CD, then
  18. writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear
  19. PCM format. Cdparanoia doesn't contain any extra features (like the ones
  20. included in the cdda2wav sampling utility). Instead, cdparanoia's strength
  21. lies in its ability to handle a variety of hardware, including inexpensive
  22. drives prone to misalignment, frame jitter and loss of streaming during
  23. atomic reads. Cdparanoia is also good at reading and repairing data from
  24. damaged CDs.
  25. %package devel
  26. Summary: Development tools for libcdda_paranoia (Paranoia III).
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}
  29. License: LGPLv2
  30. %description devel
  31. The cdparanoia-devel package contains the static libraries and header
  32. files needed for developing applications to read CD Digital Audio disks.
  33. %prep
  34. %setup -q -n %{name}-III-%{version}
  35. %patch1 -p3 -b .#463009
  36. #patch0 -p1 -b .fPIC
  37. #patch1 -p1
  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. %{_mandir}/man1/*
  73. %{_mandir}/ja/man1/*
  74. %{_libdir}/lib*.so*
  75. %files devel
  76. %defattr(-,root,root)
  77. %{_includedir}/cdda
  78. %{_libdir}/*.a
  79. %changelog
  80. * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.2-1
  81. - new upstream release
  82. - added Requires: cdparanoia to devel package
  83. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> alpha9.8-9vl5
  84. - applied new versioning policy
  85. * Tue Jul 3 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> alpha9.8-8vl6
  86. - add Patch1
  87. * Tue Oct 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> alpha9.8-8vl5
  88. - added fPIC.patch fix a problem on x86_64 archtecture
  89. * Fri Dec 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> alpha9.8-8vl4
  90. - rebuild with new toolchain
  91. * Sun Mar 16 2003 IWAI Masaharu <iwai@alib.jp> alpha9.8-8vl3
  92. - rebuild with new toolchain
  93. * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  94. - alpha9.8-8vl2
  95. - rebuild on VineSeed
  96. * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  97. - alpha9.8-8vl1
  98. - included japanese manual
  99. * Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de>
  100. - fix spelling error in description
  101. * Thu Dec 7 2000 Crutcher Dunnavant <crutcher@redhat.com>
  102. - rebuild for new tree
  103. * Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
  104. - use %%{_tmppath}
  105. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  106. - automatic rebuild
  107. * Wed Jun 06 2000 Preston Brown <pbrown@redhat.com>
  108. - revert name change
  109. - use new rpm macro paths
  110. * Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
  111. - Switched spec file from the one used in Red Hat Linux 6.2, which
  112. also changes the name
  113. - gzip man page
  114. * Thu Dec 23 1999 Peter Jones <pjones@redhat.com>
  115. - update package to provide cdparanoia-alpha9.7-2.*.rpm and
  116. cdparanoia-devel-alpha9.7-2.*.rpm. Also, URLs point at xiph.org
  117. like they should.
  118. * Wed Dec 22 1999 Peter Jones <pjones@redhat.com>
  119. - updated package for alpha9.7, based on input from:
  120. Monty <xiphmont@xiph.org>
  121. David Philippi <david@torangan.saar.de>
  122. * Mon Apr 12 1999 Michael Maher <mike@redhat.com>
  123. - updated pacakge
  124. * Tue Oct 06 1998 Michael Maher <mike@redhat.com>
  125. - updated package
  126. * Mon Jun 29 1998 Michael Maher <mike@redhat.com>
  127. - built package