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