libcdio-paranoia-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Name: libcdio-paranoia
  2. Version: 10.2+0.90+1
  3. Release: 1%{?_dist_release}
  4. Summary: CD paranoia on top of libcdio
  5. Group: System Environment/Libraries
  6. License: GPLv2+ and LGPLv2+
  7. URL: http://www.gnu.org/software/libcdio/
  8. Source0: http://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-%{version}.tar.gz
  9. Patch0: libcdio-paranoia-manpage.patch
  10. BuildRequires: pkgconfig
  11. BuildRequires: gettext-devel
  12. BuildRequires: chrpath
  13. BuildRequires: libcdio-devel
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. This CDDA reader distribution ('libcdio-cdparanoia') reads audio from the
  18. CDROM directly as data, with no analog step between, and writes the
  19. data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM.
  20. Split off from libcdio to allow more flexible licensing and to be compatible
  21. with cdparanoia-III-10.2's license. And also, libcdio is just too large.
  22. %package devel
  23. Summary: Header files and libraries for %{name}
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. This package contains header files and libraries for %{name}.
  28. %prep
  29. %setup -q
  30. %patch0 -p1
  31. # fix pkgconfig files
  32. sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_paranoia.pc.in
  33. sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_cdda.pc.in
  34. f=doc/ja/cd-paranoia.1.in
  35. iconv -f euc-jp -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f
  36. iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS
  37. %build
  38. %configure \
  39. --disable-dependency-tracking \
  40. --disable-static \
  41. --disable-rpath
  42. make %{?_smp_mflags}
  43. %install
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  46. mv $RPM_BUILD_ROOT%{_mandir}/{jp,ja}
  47. # copy include files to an additional directory for backward compatibility
  48. # this is where most software still expects those files
  49. cp -a $RPM_BUILD_ROOT%{_includedir}/cdio/paranoia/*.h $RPM_BUILD_ROOT%{_includedir}/cdio/
  50. # remove rpath
  51. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
  52. chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.*
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS COPYING NEWS README THANKS COPYING-GPL COPYING-LGPL
  58. %{_bindir}/*
  59. %{_libdir}/*.so.*
  60. %{_mandir}/man1/*
  61. %lang(ja) %{_mandir}/ja/man1/*
  62. %files devel
  63. %defattr(-,root,root,-)
  64. %doc doc/FAQ.txt doc/overlapdef.txt
  65. %{_includedir}/cdio/*
  66. %{_libdir}/*.so
  67. %{_libdir}/pkgconfig/*.pc
  68. %changelog
  69. * Sun Jul 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 10.2+0.90+1-1
  70. - initial build for Vine Linux
  71. * Mon Dec 16 2013 Adrian Reber <adrian@lisas.de> - 10.2+0.90+1-2
  72. - Rebuilt for new libcdio-0.92
  73. * Tue Aug 20 2013 Adrian Reber <adrian@lisas.de> - 10.2+0.90+1-1
  74. - updated to 10.2+0.90+1
  75. - removed all patches previously taken from git
  76. * Wed Jul 31 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 10.2+0.90-8
  77. - long name in manual page caused 'whatis' to misbehave
  78. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2+0.90-7
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  80. * Fri Jan 11 2013 Adrian Reber <adrian@lisas.de> - 10.2+0.90-6
  81. - remove sed changes on non-installed file
  82. - fix -devel subpackage Require
  83. * Sat Dec 22 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-5
  84. - provide include files also in the paranoia directory (like in upstream's git)
  85. * Thu Nov 22 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-4
  86. - fix pkgconfig files to point to right include directory
  87. * Mon Nov 05 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-3
  88. - included upstreamed patches which are changing the license
  89. headers to be LGPLv2+ for the library parts and GPLv2+ for the
  90. binaries
  91. * Tue Oct 30 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-2
  92. - added missing files from git: COPYING-GPL and COPYING-LGPL
  93. - added patch from git for missing pkgconfig requires
  94. and fixed FSF address
  95. * Mon Oct 29 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-1
  96. - initial release