163c95
Summary: Compact Disc Digital Audio (CDDA) extraction tool (or ripper)
163c95
Name: cdparanoia
163c95
Version: 10.2
163c95
Release: 17%{?dist}
163c95
# the app is GPLv2, everything else is LGPLv2
163c95
License: GPLv2 and LGPLv2
163c95
Group: Applications/Multimedia
163c95
URL: http://www.xiph.org/paranoia/index.html
163c95
Source: http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-%{version}.src.tgz
163c95
# Patch from upstream to fix cdda_interface.h C++ incompatibility ("private")
163c95
# https://trac.xiph.org/changeset/15338
163c95
# https://bugzilla.redhat.com/show_bug.cgi?id=463009
163c95
Patch0: cdparanoia-10.2-#463009.patch
163c95
# #466659
163c95
Patch1: cdparanoia-10.2-endian.patch
163c95
Patch2: cdparanoia-10.2-install.patch
163c95
Patch3: cdparanoia-use-proper-gnu-config-files.patch
163c95
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
163c95
Requires: cdparanoia-libs = %{version}-%{release}
163c95
Obsoletes: cdparanoia-III <= alpha9.8
163c95
163c95
%description 
163c95
Cdparanoia (Paranoia III) reads digital audio directly from a CD, then
163c95
writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear
163c95
PCM format.  Cdparanoia doesn't contain any extra features (like the ones
163c95
included in the cdda2wav sampling utility).  Instead, cdparanoia's strength
163c95
lies in its ability to handle a variety of hardware, including inexpensive
163c95
drives prone to misalignment, frame jitter and loss of streaming during
163c95
atomic reads.  Cdparanoia is also good at reading and repairing data from
163c95
damaged CDs.
163c95
163c95
%package static
163c95
Summary: Development tools for libcdda_paranoia (Paranoia III)
163c95
Group: Development/Libraries
163c95
Requires: cdparanoia-devel = %{version}-%{release}
163c95
License: LGPLv2
163c95
163c95
%description static
163c95
The cdparanoia-devel package contains the static libraries needed for
163c95
developing applications to read CD Digital Audio disks.
163c95
163c95
%package libs
163c95
Summary: Libraries for libcdda_paranoia (Paranoia III)
163c95
Group: Applications/Multimedia
163c95
License: LGPLv2
163c95
163c95
%description libs
163c95
The cdparanoia-libs package contains the dynamic libraries needed for
163c95
applications which read CD Digital Audio disks.
163c95
163c95
%package devel
163c95
Summary: Development tools for libcdda_paranoia (Paranoia III)
163c95
Group: Development/Libraries
163c95
Requires: cdparanoia-libs = %{version}-%{release}
163c95
License: LGPLv2
163c95
163c95
%description devel
163c95
The cdparanoia-devel package contains the libraries and header files needed
163c95
for developing applications to read CD Digital Audio disks.
163c95
163c95
%prep
163c95
%setup -q -n cdparanoia-III-%{version}
163c95
%patch0 -p3 -b .#463009
163c95
%patch1 -p1 -b .endian
163c95
%patch2 -p1 -b .install
163c95
%patch3 -p1 -b .use-proper-gnu-config-files.patch
163c95
163c95
%build
163c95
mv configure.guess config.guess
163c95
mv configure.sub config.sub
163c95
%configure --includedir=%{_includedir}/cdda
163c95
# Using -O0 is mandatory, the build fails otherwise...
163c95
# Also remove many warnings which we are aware of
163c95
# Lastly, don't use _smp_mflags since it also makes the build fail
163c95
make OPT="$RPM_OPT_FLAGS -O0 -Wno-pointer-sign -Wno-unused"
163c95
163c95
163c95
%install
163c95
rm -rf $RPM_BUILD_ROOT
163c95
163c95
make install DESTDIR=$RPM_BUILD_ROOT
163c95
163c95
%clean
163c95
rm -rf $RPM_BUILD_ROOT
163c95
163c95
%post libs -p /sbin/ldconfig
163c95
163c95
%postun libs -p /sbin/ldconfig
163c95
163c95
%files
163c95
%defattr(-,root,root)
163c95
%doc COPYING* README
163c95
%{_bindir}/cdparanoia
163c95
%{_mandir}/man1/cdparanoia.1*
163c95
163c95
%files libs
163c95
%defattr(-,root,root)
163c95
%{_libdir}/*.so.*
163c95
163c95
%files devel
163c95
%defattr(-,root,root)
163c95
%{_includedir}/cdda/
163c95
%{_libdir}/*.so
163c95
163c95
%files static
163c95
%defattr(-,root,root)
163c95
%{_libdir}/*.a
163c95
163c95
%changelog
163c95
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 10.2-17
163c95
- Mass rebuild 2014-01-24
163c95
163c95
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 10.2-16
163c95
- Mass rebuild 2013-12-27
163c95
163c95
* Wed Oct 23 2013 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 10.2-15
163c95
- Patched configure to use config.{guess,sub} files so %configure macro can
163c95
  replace them with proper version. With this change it builds fine for AArch64
163c95
  architecture.
163c95
  Resolves: rhbz#1023783
163c95
163c95
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-14
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
163c95
163c95
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-13
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
163c95
163c95
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-12
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
163c95
163c95
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-11
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
163c95
163c95
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-10
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
163c95
163c95
* Fri Feb 05 2010 Adam Jackson <ajax@redhat.com> 10.2-9
163c95
- Fix packaging typo from -7
163c95
163c95
* Wed Feb 03 2010 Peter Jones <pjones@redhat.com> - 10.2-8
163c95
- Incorporate changes from Matthias Saou:
163c95
- Include install patch, to avoid all of the ugly manual installation.
163c95
- Cosmetic fixes (libs group, scriplets, don't mix %%name with hardcode...).
163c95
163c95
* Tue Feb 02 2010 Adam Jackson <ajax@redhat.com> 10.2-7
163c95
- Move static libs to -static subpackage, make it require -devel
163c95
163c95
* Tue Dec  8 2009 Matthias Saou <http://freshrpms.net/> 10.2-6
163c95
- Fix all of the problems detected during the review which aren't acceptable
163c95
  according to the current policies and guidelines (part of #225638).
163c95
- Don't prefix summaries with "A" nor suffix them with a dot.
163c95
- Move .so symlink to the devel sub-package (#203620).
163c95
- Add highest known version to the cdparanoia-III obsoletes.
163c95
- Remove incorrect buildroot removal from %%build.
163c95
- Use acceptable %%clean section.
163c95
- Provide cdparanoia-static in the devel sub-package since the *.a is there.
163c95
- Use single-command scriplet syntax for /sbin/ldconfig calls.
163c95
- Escape all macros in changelog.
163c95
- Include license file since it is present with the sources.
163c95
163c95
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-5
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
163c95
163c95
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-4
163c95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
163c95
163c95
* Tue Feb 10 2009 Adam Jackson <ajax@redhat.com>
163c95
- Merge review cleanups (not finished, #225638)
163c95
163c95
* Tue Feb 10 2009 Adam Jackson <ajax@redhat.com> 10.2-3
163c95
- cdparanoia-10.2-endian.patch: Backport a crash fix for host/drive
163c95
  endianness mismatch. (#466659)
163c95
163c95
* Tue Sep 30 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 10.2-2
163c95
- fix cdda_interface.h C++ incompatibility (patch from upstream) (#463009)
163c95
163c95
* Thu Sep 11 2008 Adam Jackson <ajax@redhat.com> 10.2-1
163c95
- cdparanoia 10.2
163c95
163c95
* Wed Aug 13 2008 Adam Jackson <ajax@redhat.com> 10.1-1
163c95
- Update to 10.1, just changes the license back.
163c95
163c95
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 10.0-3
163c95
- fix license tag
163c95
- fix headers, setspeed patch to apply with fuzz=0
163c95
163c95
* Thu Jun 19 2008 Adam Jackson <ajax@redhat.com> 10.0-2
163c95
- cdparanoia 10.
163c95
163c95
* Thu Mar 20 2008 Adam Jackson <ajax@redhat.com> alpha9.8-30
163c95
- Add -Werror-implicit-function-declarations.
163c95
- cdparanoia-III-alpha9.8-headers.patch: Fix the resulting errors.
163c95
163c95
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
163c95
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
163c95
  SCSI CD drives. (#431178)
163c95
163c95
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - alpha9.8-28.2
163c95
- Autorebuild for GCC 4.3
163c95
163c95
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.2
163c95
- rebuild
163c95
163c95
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.1
163c95
- bump again for double-long bug on ppc(64)
163c95
163c95
* Wed Feb 08 2006 Monty Montgomery <cmontgom@redhat.com> - alpha9.8-27
163c95
- rebuilt 
163c95
163c95
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-26.2
163c95
- rebuilt for new gcc4.1 snapshot and glibc changes
163c95
163c95
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
163c95
- rebuilt
163c95
163c95
* Sat Oct 15 2005 Florian La Roche <laroche@redhat.com>
163c95
- make sure shared libs are linked against respective other libs
163c95
163c95
* Wed Mar 16 2005 Peter Jones <pjones@redhat.com> alpha9.8-25
163c95
- gcc4 rebuild and CFLAGS change
163c95
163c95
* Wed Feb 9 2005 Peter Jones <pjones@redhat.com> alpha9.8-24.2
163c95
- Rebuild for new toolchain
163c95
163c95
* Wed Oct 6 2004 Peter Jones <pjones@redhat.com> alpha9.8-24
163c95
- workaround for sgio read size issues in newer kernels.
163c95
163c95
* Fri Oct 1 2004 Peter Jones <pjones@redhat.com> alpha9.8-23
163c95
- "This time, with a meaningful changelog" release.  Just like -22.
163c95
- new SG_IO code in rawhide.  This means ripping will no longer use the 
163c95
  "cooked ioctl" mode that it has since we moved to 2.6, instead utilizing
163c95
  the real scsi-based command set to talk to most drives.  This should
163c95
  result in better error correction handling, and usage of much more
163c95
  commonly used kernel features.
163c95
- environment variable "CDDA_TRANSPORT" added.  If you set this to "cooked",
163c95
  cdparanoia will try to use the "cooked ioctl" mode instead of SCSI/SG_IO
163c95
  based modes first, and then fall back to SG_IO.
163c95
- It'd be good if this got some testing.  A prior version of the SG_IO code
163c95
  was known to fail on some USB drives.  This version should mitigate that
163c95
  quite a bit, but I lack the hardware to test it for sure.
163c95
  
163c95
* Wed Jul 7 2004 Peter Jones <pjones@redhat.com> alpha9.8-21sgio1
163c95
- a new set of sgio patches
163c95
163c95
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
163c95
- rebuilt
163c95
163c95
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
163c95
- rebuilt
163c95
163c95
* Tue Feb 17 2004 Peter Jones <pjones@redhat.com> alpha9.8-20
163c95
- take ownership of %%{_includedir}/cdda
163c95
163c95
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
163c95
- rebuilt
163c95
163c95
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
163c95
- rebuilt
163c95
163c95
* Tue May 20 2003 Peter Jones <pjones@redhat.com> alpha9.8-17
163c95
- typo fix (g_fd -> fd)
163c95
- add errno output
163c95
163c95
* Tue May 06 2003 Peter Jones <pjones@redhat.com> alpha9.8-16
163c95
- fix warnings on switches
163c95
- use O_EXCL
163c95
163c95
* Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
163c95
- add symlinks to shared libs
163c95
163c95
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
163c95
- rebuilt
163c95
163c95
* Wed Dec 25 2002 Tim Powers <timp@redhat.com> alpha9.8-13
163c95
- fix %%install references in the changelog so that it will rebuild properly
163c95
163c95
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> alpha9.8-12
163c95
- rebuild on all arches
163c95
163c95
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
163c95
- automated rebuild
163c95
163c95
* Thu May 23 2002 Tim Powers <timp@redhat.com>
163c95
- automated rebuild
163c95
163c95
* Wed Apr  3 2002 Peter Jones <pjones@redhat.com> alpha9.8-8
163c95
- don't strip, let rpm do that
163c95
163c95
* Mon Feb 25 2002 Tim Powers <timp@redhat.com> alpha9.8-7
163c95
- fix broken Obsoletes of cdparanoia-devel
163c95
163c95
* Thu Dec  6 2001 Peter Jones <pjones@redhat.com> alpha9.8-6
163c95
- move includes to %%{_includedir}/cdda/
163c95
- add utils.h to %%install
163c95
- clean up %%install some.
163c95
163c95
* Sun Nov  4 2001 Peter Jones <pjones@redhat.com> alpha9.8-5
163c95
- make a -libs package which contains the .so files
163c95
- make the cdparanoia dependancy towards that, not -devel
163c95
163c95
* Thu Aug  2 2001 Peter Jones <pjones@redhat.com>
163c95
- bump the release not to conflict with on in the RH build tree :/
163c95
- reverse devel dependency
163c95
163c95
* Wed Aug  1 2001 Peter Jones <pjones@redhat.com>
163c95
- fix %%post and %%postun to only run ldconfig for devel packages
163c95
163c95
* Wed Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
163c95
- devel now depends on package
163c95
163c95
* Wed Mar 28 2001 Peter Jones <pjones@redhat.com>
163c95
- 9.8 release.
163c95
163c95
* Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de>
163c95
- fix spelling error in description
163c95
163c95
* Thu Dec  7 2000 Crutcher Dunnavant <crutcher@redhat.com>
163c95
- rebuild for new tree
163c95
163c95
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
163c95
- use %%{_tmppath}
163c95
163c95
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
163c95
- automatic rebuild
163c95
163c95
* Wed Jun 06 2000 Preston Brown <pbrown@redhat.com>
163c95
- revert name change
163c95
- use new rpm macro paths
163c95
163c95
* Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
163c95
- Switched spec file from the one used in Red Hat Linux 6.2, which
163c95
  also changes the name
163c95
- gzip man page
163c95
163c95
* Thu Dec 23 1999 Peter Jones <pjones@redhat.com>
163c95
- update package to provide cdparanoia-alpha9.7-2.*.rpm and 
163c95
  cdparanoia-devel-alpha9.7-2.*.rpm.  Also, URLs point at xiph.org
163c95
  like they should.
163c95
163c95
* Wed Dec 22 1999 Peter Jones <pjones@redhat.com>
163c95
- updated package for alpha9.7, based on input from:
163c95
  Monty <xiphmont@xiph.org> 
163c95
  David Philippi <david@torangan.saar.de>
163c95
163c95
* Mon Apr 12 1999 Michael Maher <mike@redhat.com>
163c95
- updated pacakge
163c95
163c95
* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
163c95
- updated package
163c95
163c95
* Mon Jun 29 1998 Michael Maher <mike@redhat.com>
163c95
- built package