Blame SPECS/libcdio-paranoia.spec

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