openmamba logo
GNU/Linux distribution
distribution community wiki forum bugs events products
software   community wiki forum bugs events products
packages cdparanoia.spec
      Pages: < 1 >  DOWNLOAD      
%define        fileversion  III-%(echo %version | cut -d. -f 2-3)

Name:          cdparanoia
Version:       3.10.2
Release:       3mamba
Epoch:         1
Summary:       Cdparanoia extracts audio from compact discs directly as data
Group:         System/Kernel and Hardware
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.xiph.org/paranoia/
Source:        http://downloads.xiph.org/releases/cdparanoia/cdparanoia-%{fileversion}.src.tgz
Patch0:        cdparanoia-3.10.2-gcc43.patch
Patch1:        cdparanoia-3.10.2-endian.patch
License:       GPL
Requires:      lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides:      cdparanoia-III
Obsoletes:     cdparanoia-III
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Cdparanoia extracts audio from compact discs directly as data, with no analog step between, and writes the data to a file or pipe in WAV, AIFC, AIFC or raw 16 bit linear PCM.

%package -n lib%{name}
Summary:       Library to read CD Digital Audio disks
Group:         System/Libraries

%description -n lib%{name}
Cdparanoia extracts audio from compact discs directly as data, with no analog step between, and writes the data to a file or pipe in WAV, AIFC, AIFC or raw 16 bit linear PCM.

This package contains shared libraries needed for applications which read CD Digital Audio disks.

%package -n lib%{name}-devel
Summary:       Static libraries and headers for lib%{name}
Group:         Development/Libraries
Requires:      lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides:      cdparanoia-III-devel
Obsoletes:     cdparanoia-III-devel

%description -n lib%{name}-devel
Cdparanoia extracts audio from compact discs directly as data, with no analog step between, and writes the data to a file or pipe in WAV, AIFC, AIFC or raw 16 bit linear PCM.

This package contains static libraries and header files need for development.

%prep
%setup -q -n %{name}-%{fileversion}
%patch0 -p1
%patch1 -p1

%build
%configure
%make -j1

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeoldinstall \
   BINDIR=%{buildroot}%{_bindir} \
   LIBDIR=%{buildroot}%{_libdir} \
   INCLUDEDIR=%{buildroot}%{_includedir} \
   MANDIR=%{buildroot}%{_mandir}

%post   -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/cdparanoia.*
%doc COPYING* README

%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/*.h

%changelog
* Thu Apr 08 2010 Stefano Cotta Ramusino <stefano.cotta@...> 3.10.2-3mamba
- changed package name to cdparanoia
- new package libcdparanoia

* Wed May 13 2009 gil <puntogil@...> 10.2-2mamba
- added patch to make compatible with gcc 4.3 ('private' becoming a reserved keyword)
- added patch to avoid big-endian crash

* Wed Apr 15 2009 gil <puntogil@...> 10.2-1mamba
- update to 10.2

* Tue Apr 08 2008 Silvan Calarco <silvan.calarco@...> 9.8-4mamba
- specfile updates

* Wed May 10 2006 Stefano Cotta Ramusino <stefano.cotta@...> 9.8-3qilnx
- specfile fixed and updated

* Thu Oct 28 2004 Silvan Calarco <silvan.calarco@...> 9.8-2qilnx
- rebuild with gcc 3.4 (patch added)

* Fri Jul 11 2003 Silvan Calarco <silvan.calarco@...> 9.8-1qilnx
- first build for cdparanoia-III