libcdaudio/libcdaudio.spec

82 lines
2.2 KiB
RPMSpec

Name: libcdaudio
Version: 0.99.12p2
Release: 3mamba
Summary: Control operation of a CD-ROM when playing audio CDs
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://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
%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 needed for development.
%debug_package
%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
%files devel
%defattr(-,root,root)
%{_bindir}/libcdaudio-config
%{_includedir}/cdaudio.h
%{_libdir}/libcdaudio.so
%{_libdir}/pkgconfig/libcdaudio.pc
%{_datadir}/aclocal/libcdaudio.m4
%doc ChangeLog NEWS README TODO
%changelog
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.12p2-3mamba
- rebuilt with debug package and specfile fixes
* 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