libgdither/libgdither.spec

88 lines
2.2 KiB
RPMSpec
Raw Normal View History

2009-03-24 18:26:02 +00:00
Name: libgdither
Version: 0.6
Release: 2%{?dist}
2009-03-24 18:26:02 +00:00
Summary: Library for applying dithering to PCM audio sources
Group: System Environment/Libraries
License: GPLv2+
URL: http://plugin.org.uk/libgdither/README
Source0: http://plugin.org.uk/libgdither/libgdither-%{version}.tar.gz
Patch0: libgdither-0.6-default.patch
Patch1: libgdither-0.6-gavl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fftw-devel >= 3.0.0
%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
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b .default
%patch1 -p1 -b .gavl_fix
%build
export INIT_CFLAGS="${RPM_OPT_FLAGS}"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
sed -i -e 's|/usr/local|%{_prefix}|g' \
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgdither.pc
sed -i -e 's|%{_prefix}/lib|%{_libdir}|' \
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgdither.pc
%check
make test CFLAGS="${RPM_OPT_FLAGS} -Werror --std=c99 -I%{_builddir}/%{?buildsubdir}"
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING README
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/libgdither/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgdither.pc
%changelog
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-03-24 18:26:02 +00:00
* Fri Jun 27 2008 kwizart < kwizart at gmail.com > - 0.6-1
- Backport patch from gavl
* Mon Jun 16 2008 kwizart < kwizart at gmail.com > - 0.6-0
- Initial package