diff --git a/.cvsignore b/.cvsignore index e69de29..fce2751 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +zita-resampler-0.1.1.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..576eeee --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +zita-resampler-0_1_1-2_fc12:F-11:zita-resampler-0.1.1-2.fc12.src.rpm:1272958926 diff --git a/sources b/sources index e69de29..14a99f8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cbf0da8b7ace593082a5f01eed828109 zita-resampler-0.1.1.tar.bz2 diff --git a/zita-resampler.spec b/zita-resampler.spec new file mode 100644 index 0000000..c84cdf2 --- /dev/null +++ b/zita-resampler.spec @@ -0,0 +1,87 @@ +Summary: Fast, high-quality sample rate conversion library +Name: zita-resampler +Version: 0.1.1 +Release: 2%{?dist} +License: GPLv2+ +Group: System Environment/Libraries +URL: http://www.kokkinizita.net/linuxaudio/zita-resampler/resampler.html +Source0: http://www.kokkinizita.net/linuxaudio/downloads/zita-resampler-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libsndfile-devel + +%description +zita-resampler is a C++ library for resampling audio signals. It is +designed to be used within a real-time processing context, to be fast, +and to provide high-quality sample rate conversion. + +The library operates on signals represented in single-precision +floating point format. For multichannel operation both the input and +output signals are assumed to be stored as interleaved samples. + +The API allows a trade-off between quality and CPU load. For the +latter a range of approximately 1:6 is available. Even at the highest +quality setting zita-resampler will be faster than most similar +libraries, e.g. libsamplerate. + +%package devel +Summary: Development libraries and headers for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains the headers and development libraries for %{name}. + +%prep +%setup -q + +# To make sure to have the correct Fedora specific flags: +sed -i 's|-O2|%{optflags} -I../libs|' libs/Makefile +sed -i 's|-O3|%{optflags} -I../libs|' apps/Makefile + +%build +export LDFLAGS="-L../libs" +make %{?_smp_mflags} -C libs +# In order to build apps, we need to create the symlink +# Note that this is originally done at "make install" stage +ln -sf libzita-resampler.so.%{version} libs/libzita-resampler.so +make %{?_smp_mflags} -C apps + +%install +rm -rf %{buildroot} +make PREFIX=%{buildroot}%{_prefix} LIBDIR=%{_lib} -C libs install + +# The application name is too generic. Just rename: +mkdir -p %{buildroot}%{_bindir} +install -pm 755 apps/resample %{buildroot}%{_bindir}/zita-resample + + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING +%{_libdir}/lib%{name}.so.* +%{_bindir}/zita-resample + +%files devel +%defattr(-,root,root,-) +%doc docs/* +%{_includedir}/%{name}.h +%{_libdir}/lib%{name}.so + +%changelog +* Sat Apr 10 2010 Orcan Ogetbil - 0.1.1-2 +- Fix libdir on non-*x86* systems + +* Sat Apr 10 2010 Orcan Ogetbil - 0.1.1-1 +- Update to 0.1.1 +- Prepare package for Fedora (specfile from PlanetCCRMA) + +* Wed Oct 29 2008 Fernando Lopez-Lezcano 0.1.0-1 +- initial release