Adam Jackson fa53a6
%define ver	10
cvsdist 4a4477
cvsdist 4a4477
Name: cdparanoia
Adam Jackson fa53a6
Version: 10.0
Adam Jackson fa53a6
Release: 2%{?dist}
cvsdist 4a4477
License: GPL
cvsdist 4a4477
Group: Applications/Multimedia
Adam Jackson fa53a6
Source: http://downloads.xiph.org/releases/%{name}/%{name}-III-%{version}.src.tgz
cvsdist 531444
Patch0: cdparanoia-III-alpha9.8.nostrip.patch
cvsdist edd851
Patch1: cdparanoia-III-alpha9.8.labels.patch
cvsdist edd851
Patch2: cdparanoia-III-alpha9.8.O_EXCL.patch
Peter Jones c88503
Patch3: cdparanoia-III-alpha9.8.cflags.patch
Peter Jones c88503
Patch4: cdparanoia-III-alpha9.8.sgio.patch
Peter Jones c88503
Patch5: cdparanoia-III-alpha9.8.verbose.patch
Peter Jones c88503
Patch6: cdparanoia-III-alpha9.8.louder.patch
Peter Jones c88503
Patch7: cdparanoia-III-alpha9.8.verbosity3.patch
Peter Jones c88503
Patch8: cdparanoia-III-alpha9.8.env.patch
Peter Jones feeaf7
Patch9: cdparanoia-III-alpha9.8.smalldma.patch
Florian La Roche 3ea212
Patch10: cdparanoia-III-alpha9.8.lm.patch
Adam Jackson 8cfe21
Patch11: cdparanoia-III-alpha9.8.scsi-setspeed.patch
Adam Jackson ea8295
Patch12: cdparanoia-III-alpha9.8-headers.patch
cvsdist 4a4477
Url: http://www.xiph.org/paranoia/index.html
cvsdist 4a4477
BuildRoot: %{_tmppath}/cdparanoia-%{version}-root
cvsdist f3b1e8
Requires: cdparanoia-libs = %{version}-%{release}
cvsdist f3b1e8
Obsoletes: cdparanoia-III
cvsdist f3b1e8
Summary: A Compact Disc Digital Audio (CDDA) extraction tool (or ripper).
cvsdist 4a4477
cvsdist f3b1e8
%description 
cvsdist 4a4477
Cdparanoia (Paranoia III) reads digital audio directly from a CD, then
cvsdist 4a4477
writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear
cvsdist 4a4477
PCM format.  Cdparanoia doesn't contain any extra features (like the ones
cvsdist 4a4477
included in the cdda2wav sampling utility).  Instead, cdparanoia's strength
cvsdist 4a4477
lies in its ability to handle a variety of hardware, including inexpensive
cvsdist 4a4477
drives prone to misalignment, frame jitter and loss of streaming during
cvsdist 4a4477
atomic reads.  Cdparanoia is also good at reading and repairing data from
cvsdist 4a4477
damaged CDs.
cvsdist 4a4477
cvsdist f3b1e8
%package -n cdparanoia-devel
cvsdist 4a4477
Summary: Development tools for libcdda_paranoia (Paranoia III).
cvsdist 4a4477
Group: Development/Libraries
cvsdist f3b1e8
Requires: cdparanoia-libs = %{version}-%{release}
cvsdist 4a4477
cvsdist f3b1e8
%description -n cdparanoia-devel
cvsdist c1b280
The cdparanoia-devel package contains the static libraries and header
cvsdist 4a4477
files needed for developing applications to read CD Digital Audio disks.
cvsdist 4a4477
cvsdist f3b1e8
%package -n cdparanoia-libs
cvsdist f3b1e8
Summary: Libraries for libcdda_paranoia (Paranoia III).
cvsdist f3b1e8
Group: Development/Libraries
cvsdist f3b1e8
cvsdist f3b1e8
%description -n cdparanoia-libs
cvsdist f3b1e8
The cdparanoia-libs package contains the dynamic libraries needed for
cvsdist f3b1e8
applications which read CD Digital Audio disks.
cvsdist f3b1e8
cvsdist 4a4477
%prep
Adam Jackson fa53a6
%setup -q -n %{name}-III-%{version}
Adam Jackson fa53a6
#patch4 -p1 -b .sgio
Adam Jackson fa53a6
#patch0 -p1 -b .nostrip
Adam Jackson fa53a6
#patch1 -p1 -b .labels
Adam Jackson fa53a6
#patch2 -p1 -b .O_EXCL
Adam Jackson fa53a6
#patch3 -p1 -b .cflags
Adam Jackson fa53a6
#patch5 -p1 -b .verbose
Adam Jackson fa53a6
#patch6 -p1 -b .louder
Adam Jackson fa53a6
#patch7 -p1 -b .verbosity3
Adam Jackson fa53a6
#patch8 -p1 -b .env
Adam Jackson fa53a6
#patch9 -p1 -b .smalldma
Adam Jackson fa53a6
#patch10 -p1 -b .lm
Adam Jackson 8cfe21
%patch11 -p1 -b .setspeed
Adam Jackson ea8295
%patch12 -p1 -b .headers
cvsdist 4a4477
cvsdist 4a4477
%build
cvsdist 4a4477
rm -rf $RPM_BUILD_ROOT
Adam Jackson ea8295
export OPT="${CFLAGS:-%optflags} -O0 -Wno-pointer-sign -Wno-unused -Werror-implicit-function-declaration"
cvsdist f3b1e8
%configure --includedir=%{_includedir}/cdda
Peter Jones c88503
make OPT="$OPT"
cvsdist 4a4477
cvsdist 4a4477
%install
cvsdist 4a4477
rm -rf $RPM_BUILD_ROOT
cvsdist 4a4477
cvsdist 4a4477
install -d $RPM_BUILD_ROOT%{_bindir}
cvsdist f3b1e8
install -d $RPM_BUILD_ROOT%{_includedir}/cdda
cvsdist 4a4477
install -d $RPM_BUILD_ROOT%{_libdir}
cvsdist 4a4477
install -d $RPM_BUILD_ROOT%{_mandir}/man1
cvsdist 87672f
install -m 0755 cdparanoia $RPM_BUILD_ROOT%{_bindir}
cvsdist 4a4477
install -m 0644 cdparanoia.1 $RPM_BUILD_ROOT%{_mandir}/man1/ 
cvsdist f3b1e8
install -m 0644 utils.h paranoia/cdda_paranoia.h interface/cdda_interface.h \
cvsdist f3b1e8
	$RPM_BUILD_ROOT%{_includedir}/cdda
Adam Jackson fa53a6
install -m 0755 paranoia/libcdda_paranoia.so.0.10.0 \
Adam Jackson fa53a6
	interface/libcdda_interface.so.0.10.0 \
cvsdist 4a4477
	$RPM_BUILD_ROOT%{_libdir}
cvsdist f3b1e8
install -m 0755 paranoia/libcdda_paranoia.a interface/libcdda_interface.a \
cvsdist 4a4477
	$RPM_BUILD_ROOT%{_libdir}
cvsdist 4a4477
cvsdist 899039
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
cvsdist 899039
cvsdist f3b1e8
pushd $RPM_BUILD_ROOT%{_libdir}
Adam Jackson fa53a6
ln -s libcdda_paranoia.so.0.10.0 libcdda_paranoia.so
Adam Jackson fa53a6
ln -s libcdda_interface.so.0.10.0 libcdda_interface.so
cvsdist f3b1e8
popd
cvsdist f3b1e8
cvsdist f3b1e8
%post -n cdparanoia-libs
cvsdist f3b1e8
/sbin/ldconfig
cvsdist 4a4477
cvsdist f3b1e8
%postun -n cdparanoia-libs
cvsdist f3b1e8
if [ "$1" -ge "1" ]; then
cvsdist f3b1e8
  /sbin/ldconfig
cvsdist f3b1e8
fi
cvsdist 4a4477
cvsdist 4a4477
%clean
Peter Jones 8094a2
[ "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"
cvsdist 4a4477
cvsdist f3b1e8
%files -n cdparanoia
cvsdist 4a4477
%defattr(-,root,root)
Adam Jackson fa53a6
%doc README
cvsdist 4a4477
%{_bindir}/*
cvsdist 4a4477
%{_mandir}/man1/*
cvsdist 4a4477
cvsdist f3b1e8
%files -n cdparanoia-libs
cvsdist 4a4477
%defattr(-,root,root)
cvsdist f3b1e8
%{_libdir}/*.so*
cvsdist f3b1e8
cvsdist f3b1e8
%files -n cdparanoia-devel
cvsdist f3b1e8
%defattr(-,root,root)
cvsdist 74f94f
%{_includedir}/cdda
cvsdist 4a4477
%{_libdir}/*.a
cvsdist 4a4477
cvsdist 4a4477
%changelog
Adam Jackson fa53a6
* Thu Jun 19 2008 Adam Jackson <ajax@redhat.com> 10.0-2
Adam Jackson fa53a6
- cdparanoia 10.
Adam Jackson fa53a6
Adam Jackson ea8295
* Thu Mar 20 2008 Adam Jackson <ajax@redhat.com> alpha9.8-30
Adam Jackson ea8295
- Add -Werror-implicit-function-declarations.
Adam Jackson ea8295
- cdparanoia-III-alpha9.8-headers.patch: Fix the resulting errors.
Adam Jackson ea8295
Adam Jackson 8cfe21
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
Adam Jackson 8cfe21
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
Adam Jackson 8cfe21
  SCSI CD drives. (#431178)
Adam Jackson 8cfe21
Jesse Keating cac5c2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - alpha9.8-28.2
Jesse Keating cac5c2
- Autorebuild for GCC 4.3
Jesse Keating cac5c2
Jesse Keating 486491
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.2
Jesse Keating 486491
- rebuild
Jesse Keating 486491
Jesse Keating 6180af
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.1
Jesse Keating 6180af
- bump again for double-long bug on ppc(64)
Jesse Keating 6180af
Ray Strode 0c1b8b
* Wed Feb 08 2006 Monty Montgomery <cmontgom@redhat.com> - alpha9.8-27
Ray Strode 0c1b8b
- rebuilt 
Ray Strode 0c1b8b
Jesse Keating 348d66
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-26.2
Jesse Keating 348d66
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating 348d66
Jesse Keating cd12ea
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating cd12ea
- rebuilt
Jesse Keating cd12ea
Florian La Roche 3ea212
* Sat Oct 15 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 3ea212
- make sure shared libs are linked against respective other libs
Florian La Roche 3ea212
Peter Jones 77b5b4
* Wed Mar 16 2005 Peter Jones <pjones@redhat.com> alpha9.8-25
Peter Jones 77b5b4
- gcc4 rebuild and CFLAGS change
Peter Jones 77b5b4
Peter Jones a7fb3e
* Wed Feb 9 2005 Peter Jones <pjones@redhat.com> alpha9.8-24.2
Peter Jones 8094a2
- Rebuild for new toolchain
Peter Jones 8094a2
Peter Jones feeaf7
* Wed Oct 6 2004 Peter Jones <pjones@redhat.com> alpha9.8-24
Peter Jones feeaf7
- workaround for sgio read size issues in newer kernels.
Peter Jones feeaf7
Peter Jones bf30c3
* Fri Oct 1 2004 Peter Jones <pjones@redhat.com> alpha9.8-23
Peter Jones bf30c3
- "This time, with a meaningful changelog" release.  Just like -22.
Peter Jones bf30c3
- new SG_IO code in rawhide.  This means ripping will no longer use the 
Peter Jones bf30c3
  "cooked ioctl" mode that it has since we moved to 2.6, instead utilizing
Peter Jones bf30c3
  the real scsi-based command set to talk to most drives.  This should
Peter Jones bf30c3
  result in better error correction handling, and usage of much more
Peter Jones bf30c3
  commonly used kernel features.
Peter Jones bf30c3
- environment variable "CDDA_TRANSPORT" added.  If you set this to "cooked",
Peter Jones bf30c3
  cdparanoia will try to use the "cooked ioctl" mode instead of SCSI/SG_IO
Peter Jones bf30c3
  based modes first, and then fall back to SG_IO.
Peter Jones bf30c3
- It'd be good if this got some testing.  A prior version of the SG_IO code
Peter Jones bf30c3
  was known to fail on some USB drives.  This version should mitigate that
Peter Jones bf30c3
  quite a bit, but I lack the hardware to test it for sure.
Peter Jones bf30c3
  
Peter Jones c88503
* Wed Jul 7 2004 Peter Jones <pjones@redhat.com> alpha9.8-21sgio1
Peter Jones c88503
- a new set of sgio patches
Peter Jones c88503
cvsdist 571c0b
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 571c0b
- rebuilt
cvsdist 571c0b
cvsdist 74f94f
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 74f94f
- rebuilt
cvsdist 74f94f
cvsdist 74f94f
* Tue Feb 17 2004 Peter Jones <pjones@redhat.com> alpha9.8-20
cvsdist 74f94f
- take ownership of %{_includedir}/cdda
cvsdist 74f94f
cvsdist 74f94f
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 74f94f
- rebuilt
cvsdist 74f94f
cvsdist edd851
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist edd851
- rebuilt
cvsdist edd851
cvsdist edd851
* Tue May 20 2003 Peter Jones <pjones@redhat.com> alpha9.8-17
cvsdist edd851
- typo fix (g_fd -> fd)
cvsdist edd851
- add errno output
cvsdist edd851
cvsdist edd851
* Tue May 06 2003 Peter Jones <pjones@redhat.com> alpha9.8-16
cvsdist edd851
- fix warnings on switches
cvsdist edd851
- use O_EXCL
cvsdist edd851
cvsdist 899039
* Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 899039
- add symlinks to shared libs
cvsdist 899039
cvsdist 899039
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 899039
- rebuilt
cvsdist 899039
cvsdist 899039
* Wed Dec 25 2002 Tim Powers <timp@redhat.com> alpha9.8-13
cvsdist 899039
- fix %%install references in the changelog so that it will rebuild properly
cvsdist 899039
cvsdist 899039
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> alpha9.8-12
cvsdist 899039
- rebuild on all arches
cvsdist 899039
cvsdist a68275
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist a68275
- automated rebuild
cvsdist a68275
cvsdist 531444
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 531444
- automated rebuild
cvsdist 531444
cvsdist 87672f
* Wed Apr  3 2002 Peter Jones <pjones@redhat.com> alpha9.8-8
cvsdist 87672f
- don't strip, let rpm do that
cvsdist 87672f
cvsdist 8e46ae
* Mon Feb 25 2002 Tim Powers <timp@redhat.com> alpha9.8-7
cvsdist 8e46ae
- fix broken Obsoletes of cdparanoia-devel
cvsdist 8e46ae
cvsdist f3b1e8
* Thu Dec  6 2001 Peter Jones <pjones@redhat.com> alpha9.8-6
cvsdist f3b1e8
- move includes to %{_includedir}/cdda/
cvsdist 899039
- add utils.h to %%install
cvsdist 899039
- clean up %%install some.
cvsdist f3b1e8
cvsdist f3b1e8
* Sun Nov  4 2001 Peter Jones <pjones@redhat.com> alpha9.8-5
cvsdist f3b1e8
- make a -libs package which contains the .so files
cvsdist f3b1e8
- make the cdparanoia dependancy towards that, not -devel
cvsdist f3b1e8
cvsdist f3b1e8
* Thu Aug  2 2001 Peter Jones <pjones@redhat.com>
cvsdist f3b1e8
- bump the release not to conflict with on in the RH build tree :/
cvsdist f3b1e8
- reverse devel dependency
cvsdist f3b1e8
cvsdist f3b1e8
* Wed Aug  1 2001 Peter Jones <pjones@redhat.com>
cvsdist f3b1e8
- fix %post and %postun to only run ldconfig for devel packages
cvsdist f3b1e8
cvsdist 07c4b3
* Wed Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 07c4b3
- devel now depends on package
cvsdist 07c4b3
cvsdist cde8ab
* Wed Mar 28 2001 Peter Jones <pjones@redhat.com>
cvsdist cde8ab
- 9.8 release.
cvsdist cde8ab
cvsdist c1b280
* Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de>
cvsdist c1b280
- fix spelling error in description
cvsdist c1b280
cvsdist c1b280
* Thu Dec  7 2000 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist c1b280
- rebuild for new tree
cvsdist c1b280
cvsdist 4a4477
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 4a4477
- use %%{_tmppath}
cvsdist 4a4477
cvsdist 4a4477
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 4a4477
- automatic rebuild
cvsdist 4a4477
cvsdist 4a4477
* Wed Jun 06 2000 Preston Brown <pbrown@redhat.com>
cvsdist 4a4477
- revert name change
cvsdist 4a4477
- use new rpm macro paths
cvsdist 4a4477
cvsdist 4a4477
* Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 4a4477
- Switched spec file from the one used in Red Hat Linux 6.2, which
cvsdist 4a4477
  also changes the name
cvsdist 4a4477
- gzip man page
cvsdist 4a4477
cvsdist 4a4477
* Thu Dec 23 1999 Peter Jones <pjones@redhat.com>
cvsdist 4a4477
- update package to provide cdparanoia-alpha9.7-2.*.rpm and 
cvsdist 4a4477
  cdparanoia-devel-alpha9.7-2.*.rpm.  Also, URLs point at xiph.org
cvsdist 4a4477
  like they should.
cvsdist 4a4477
cvsdist 4a4477
* Wed Dec 22 1999 Peter Jones <pjones@redhat.com>
cvsdist 4a4477
- updated package for alpha9.7, based on input from:
cvsdist 4a4477
  Monty <xiphmont@xiph.org> 
cvsdist 4a4477
  David Philippi <david@torangan.saar.de>
cvsdist 4a4477
cvsdist 4a4477
* Mon Apr 12 1999 Michael Maher <mike@redhat.com>
cvsdist 4a4477
- updated pacakge
cvsdist 4a4477
cvsdist 4a4477
* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
cvsdist 4a4477
- updated package
cvsdist 4a4477
cvsdist 4a4477
* Mon Jun 29 1998 Michael Maher <mike@redhat.com>
cvsdist 4a4477
- built package