package created using the webbuild interface [release 1.8.0-1mamba;Tue May 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 20:05:06 +01:00
parent f4592531ad
commit fc0742cbb9
2 changed files with 98 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# zita-resampler # zita-resampler
Libzita-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.

96
zita-resampler.spec Normal file
View File

@ -0,0 +1,96 @@
Name: zita-resampler
Version: 1.8.0
Release: 1mamba
Summary: A C++ library for resampling audio signals
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/digital-stage/zita-resampler
Source: https://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-resampler-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Libzita-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.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
# FS#36248 - strip march=native
sed -e '/native/d' \
-i {source,apps}/Makefile
# removing local call to ldconfig
sed -e '/ldconfig/d' -i source/Makefile
# fix use of BINDIR and MANDIR without preceeding DESTDIR
sed -e 's/\ $(BINDIR)/\ $(DESTDIR)$(BINDIR)/' \
-e 's/\ $(MANDIR)/\ $(DESTDIR)$(MANDIR)/' \
-i apps/Makefile
%ifnarch %{ix86} x86_64
sed -i "s|-DENABLE_SSE2||" source/Makefile
%endif
%build
# libs
make -C source
# create lib link for building apps
ln -sv lib%{name}.so.%{version} source/lib%{name}.so
# apps
make LDFLAGS+=" -L../source" CXXFLAGS+=" -I../source" -C apps
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C source PREFIX=%{_prefix} LIBDIR=%{_libdir}
%makeinstall -C apps PREFIX=%{_prefix}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/zresample
%{_bindir}/zretune
%{_mandir}/man1/zresample.1*
%{_mandir}/man1/zretune.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libzita-resampler.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/zita-resampler
%{_includedir}/zita-resampler/*.h
%{_libdir}/libzita-resampler.so
%changelog
* Tue May 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-1mamba
- package created using the webbuild interface