This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libgdither/libgdither.spec

75 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: libgdither
Version: 0.6
Release: 2mamba
Summary: A library for applying dithering to PCM audio sources
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://plugin.org.uk/libgdither/
Source: http://plugin.org.uk/libgdither/libgdither-%{version}.tar.gz
Patch0: libgdither-0.6-default.patch
Patch1: libgdither-0.6-gavl.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: libfftw-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Libgdither is a GPL'd library library for performing audio dithering on PCM samples. The dithering process should be carried out before reducing the bit width of PCM audio data (eg. float to 16 bit int conversions) to preserve audio quality.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Libgdither - A library for applying dithering to PCM audio sources.
This package contains libraries and header files need for development.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
export INIT_CFLAGS="%{optflags}"
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
LIBDIR=%{_libdir}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
sed -i -e 's|/usr/local|%{_prefix}|g' %{buildroot}%{_libdir}/pkgconfig/libgdither.pc
sed -i -e 's|%{_prefix}/lib|%{_libdir}|' %{buildroot}%{_libdir}/pkgconfig/libgdither.pc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libgdither.so.*
%doc COPYING README
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libgdither
%{_includedir}/libgdither/*.h
%{_libdir}/libgdither.so
%{_exec_prefix}/lib/pkgconfig/libgdither.pc
%changelog
* Fri Jan 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6-2mamba
- rebuilt in devel
* Thu Mar 10 2011 gil <puntogil@libero.it> 0.6-1mamba
- package created by autospec