2015-04-29 03:09:46 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package soxr
|
|
|
|
|
#
|
2019-11-01 11:53:36 +00:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-29 03:09:46 +00:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-11-01 11:53:36 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-29 03:09:46 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define lname libsoxr0
|
|
|
|
|
%define lname_lsr libsoxr-lsr0
|
|
|
|
|
Name: soxr
|
2018-03-13 06:31:31 +00:00
|
|
|
|
Version: 0.1.3
|
2015-04-29 03:09:46 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: The SoX Resampler library
|
2019-11-01 11:53:36 +00:00
|
|
|
|
License: LGPL-2.1-or-later
|
2015-04-29 03:09:46 +00:00
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Url: http://soxr.sourceforge.net/
|
2015-04-29 07:24:58 +00:00
|
|
|
|
Source: http://downloads.sf.net/%{name}/%{name}-%{version}-Source.tar.xz#/%{name}-%{version}.tar.xz
|
2015-04-29 07:21:53 +00:00
|
|
|
|
Source1: baselibs.conf
|
2015-12-16 09:17:55 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-04-29 03:09:46 +00:00
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The SoX Resampler library performs one-dimensional sample-rate
|
|
|
|
|
conversion – it may be used, for example, to resample PCM-encoded
|
|
|
|
|
audio.
|
|
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
|
Summary: The SoX Resampler library
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
|
The SoX Resampler library performs one-dimensional sample-rate
|
|
|
|
|
conversion – it may be used, for example, to resample PCM-encoded
|
|
|
|
|
audio.
|
|
|
|
|
|
|
|
|
|
%package -n %{lname_lsr}
|
|
|
|
|
Summary: Compatibility layer with libsamplerate
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{lname_lsr}
|
|
|
|
|
soxr libsamplerate API compatibility layer (to some extent).
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files of soxr
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-02 19:22:39 +00:00
|
|
|
|
Requires: %{lname_lsr} = %{version}
|
2015-09-24 17:58:43 +00:00
|
|
|
|
Requires: %{lname} = %{version}
|
2015-04-29 03:09:46 +00:00
|
|
|
|
|
|
|
|
|
%description devel
|
2015-05-02 19:22:39 +00:00
|
|
|
|
The soxr development package includes the header files,
|
2015-04-29 03:09:46 +00:00
|
|
|
|
libraries, development tools necessary for compiling and linking
|
|
|
|
|
application which will use libsoxr/libsoxr-lsr.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}-Source
|
|
|
|
|
|
|
|
|
|
%build
|
2019-11-01 11:53:36 +00:00
|
|
|
|
|
|
|
|
|
%ifarch %arm
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
2015-04-29 03:09:46 +00:00
|
|
|
|
%cmake \
|
|
|
|
|
-DDOC_INSTALL_DIR=%{_docdir}/%{name}
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post -n %{lname_lsr} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n %{lname_lsr} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
|
%defattr(-,root,root)
|
2018-03-13 06:31:31 +00:00
|
|
|
|
%doc AUTHORS NEWS
|
|
|
|
|
%license COPYING.LGPL LICENCE
|
2015-04-29 03:09:46 +00:00
|
|
|
|
%{_libdir}/libsoxr.so.*
|
|
|
|
|
|
|
|
|
|
%files -n %{lname_lsr}
|
|
|
|
|
%defattr(-,root,root)
|
2018-03-13 06:31:31 +00:00
|
|
|
|
%license COPYING.LGPL LICENCE
|
2015-04-29 03:09:46 +00:00
|
|
|
|
%{_libdir}/libsoxr-lsr.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc %{_docdir}/%{name}/
|
|
|
|
|
%{_includedir}/soxr*.h
|
|
|
|
|
%{_libdir}/libsoxr*.so
|
|
|
|
|
%{_libdir}/pkgconfig/soxr*.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|