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