libcdaudio/libcdaudio.spec

80 lines
2.1 KiB
RPMSpec

Name: libcdaudio
Version: 0.99.12p2
Release: 2mamba
Summary: Control operation of a CD-ROM when playing audio CDs
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://libcdaudio.sourceforge.net/
Source: http://downloads.sourceforge.net/project/libcdaudio/libcdaudio/%{version}/libcdaudio-%{version}.tar.gz
Patch0: libcdaudio-0.99.12-buffovfl.patch
Patch1: libcdaudio-0.99.12p2-libdir.patch
Patch2: libcdaudio-0.99-CAN-2005-0706.patch
License: GPL, LGPL
BuildRequires: gcc-c++
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libcdaudio is a portable library for controlling audio CDs. It
is also able to manage transfers of information with the
CDDB (http://www.freedb.org/) and CDIndex systems.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libcdaudio - Control operation of a CD-ROM when playing audio CDs.
This package contains libraries and header files need for development.
%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%build
%configure \
--enable-dependency-tracking \
--disable-static \
--enable-threads
make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_libdir}/*.la
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libcdaudio.so.*
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%files devel
%defattr(-,root,root)
%{_bindir}/libcdaudio-config
%{_includedir}/cdaudio.h
%{_libdir}/libcdaudio.so
%{_libdir}/pkgconfig/libcdaudio.pc
%{_datadir}/aclocal/libcdaudio.m4
%changelog
* Fri Jan 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.12p2-2mamba
- rebuilt in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 0.99.12p2-1mamba
- package created by autospec