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