a16723
Name: libcdio-paranoia
a16723
Version: 10.2+0.90
a16723
Release: 11%{?dist}
a16723
Summary: CD paranoia on top of libcdio
a16723
Group: System Environment/Libraries
a16723
License: GPLv2+ and LGPLv2+
a16723
URL: http://www.gnu.org/software/libcdio/
a16723
Source0: http://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-%{version}.tar.gz
a16723
# Missing in tarball
a16723
Source1: https://raw.github.com/rocky/libcdio-paranoia/master/COPYING-GPL
a16723
# Missing in tarball
a16723
Source2: https://raw.github.com/rocky/libcdio-paranoia/master/COPYING-LGPL
a16723
# fixes from git
a16723
# wrong fsf address and missing pkgconfig requires
a16723
Patch0: most-of-4c30a84f7899ff63c9bbc39563099f98752c83d6.patch
a16723
# Patch1 and Patch2 fixes the license headers in the source files
a16723
Patch1: most-of-a500a7037729aaeaba9bfda9c007d598e8fa8adc.patch
a16723
Patch2: https://github.com/rocky/libcdio-paranoia/commit/5f8c33d04fcf7b4cede360e79cc3806e9139127f.patch
a16723
Patch3: libcdio-paranoia-manpage.patch
a16723
BuildRequires: pkgconfig 
a16723
BuildRequires: gettext-devel
a16723
BuildRequires: chrpath
a16723
BuildRequires: libcdio-devel
a16723
a16723
a16723
%description
a16723
This CDDA reader distribution ('libcdio-cdparanoia') reads audio from the
a16723
CDROM directly as data, with no analog step between, and writes the
a16723
data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM.
a16723
a16723
Split off from libcdio to allow more flexible licensing and to be compatible
a16723
with cdparanoia-III-10.2's license. And also, libcdio is just too large.
a16723
a16723
%package devel
a16723
Summary: Header files and libraries for %{name}
a16723
Group: Development/Libraries
a16723
Requires: %{name}%{?_isa} = %{version}-%{release}
a16723
a16723
%description devel
a16723
This package contains header files and libraries for %{name}.
a16723
a16723
a16723
%prep
a16723
%setup -q
a16723
%patch0 -p1
a16723
%patch1 -p1
a16723
%patch2 -p1
a16723
%patch3 -p1
a16723
a16723
# fix pkgconfig files
a16723
sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_paranoia.pc.in
a16723
sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_cdda.pc.in
a16723
a16723
f=doc/ja/cd-paranoia.1.in
a16723
iconv -f euc-jp -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f
a16723
iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS
a16723
a16723
cp %{SOURCE1} .
a16723
cp %{SOURCE2} .
a16723
a16723
%build
a16723
%configure \
a16723
	--disable-dependency-tracking \
a16723
	--disable-static \
a16723
	--disable-rpath
a16723
make %{?_smp_mflags}
a16723
a16723
%install
a16723
make install DESTDIR=$RPM_BUILD_ROOT
a16723
a16723
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
a16723
a16723
mv $RPM_BUILD_ROOT%{_mandir}/{jp,ja}
a16723
a16723
# copy include files to an additional directory
a16723
# this will probably be the location for future releases see:
a16723
# https://github.com/rocky/libcdio-paranoia/commit/b2807f3c7a4126b6078d96adbd37c3760b9f41ab
a16723
mkdir -p $RPM_BUILD_ROOT%{_includedir}/cdio/paranoia
a16723
cp -a $RPM_BUILD_ROOT%{_includedir}/cdio/*.h $RPM_BUILD_ROOT%{_includedir}/cdio/paranoia
a16723
a16723
# remove rpath
a16723
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
a16723
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.*
a16723
a16723
%post -p /sbin/ldconfig
a16723
a16723
%postun -p /sbin/ldconfig
a16723
a16723
%files
a16723
%defattr(-,root,root,-)
a16723
%doc AUTHORS COPYING NEWS README THANKS COPYING-GPL COPYING-LGPL
a16723
%{_bindir}/*
a16723
%{_libdir}/*.so.*
a16723
%{_mandir}/man1/*
a16723
%lang(ja) %{_mandir}/ja/man1/*
a16723
a16723
a16723
%files devel
a16723
%defattr(-,root,root,-)
a16723
%doc doc/FAQ.txt doc/overlapdef.txt
a16723
%{_includedir}/cdio/*
a16723
%{_libdir}/*.so
a16723
%{_libdir}/pkgconfig/*.pc
a16723
a16723
a16723
%changelog
a16723
* Fri Feb 21 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 10.2+0.90-11
a16723
- rebuilt for libcdio-0.92
a16723
- Resolves: rhbz#1065642
a16723
a16723
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 10.2+0.90-10
a16723
- Mass rebuild 2014-01-24
a16723
a16723
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 10.2+0.90-9
a16723
- Mass rebuild 2013-12-27
a16723
a16723
* Wed Jul 31 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 10.2+0.90-8
a16723
- long name in manual page caused 'whatis' to misbehave
a16723
a16723
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2+0.90-7
a16723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a16723
a16723
* Fri Jan 11 2013 Adrian Reber <adrian@lisas.de> - 10.2+0.90-6
a16723
- remove sed changes on non-installed file
a16723
- fix -devel subpackage Require
a16723
a16723
* Sat Dec 22 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-5
a16723
- provide include files also in the paranoia directory (like in upstream's git)
a16723
a16723
* Thu Nov 22 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-4
a16723
- fix pkgconfig files to point to right include directory
a16723
a16723
* Mon Nov 05 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-3
a16723
- included upstreamed patches which are changing the license
a16723
  headers to be LGPLv2+ for the library parts and GPLv2+ for the
a16723
  binaries
a16723
a16723
* Tue Oct 30 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-2
a16723
- added missing files from git: COPYING-GPL and COPYING-LGPL
a16723
- added patch from git for missing pkgconfig requires
a16723
  and fixed FSF address
a16723
a16723
* Mon Oct 29 2012 Adrian Reber <adrian@lisas.de> - 10.2+0.90-1
a16723
- initial release