2019-06-26 08:10:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package libreplaygain
|
|
|
|
#
|
2019-07-04 13:53:03 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-07-07 22:00:45 +02:00
|
|
|
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
|
2019-06-26 08:10:05 +02: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-07-04 13:53:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2019-06-26 08:10:05 +02:00
|
|
|
|
|
|
|
%define so_ver 1
|
|
|
|
|
|
|
|
Name: libreplaygain
|
2019-07-07 22:00:45 +02:00
|
|
|
Summary: Library for analyzing sound and recommending volume change
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-06-26 08:10:05 +02:00
|
|
|
Version: r475
|
|
|
|
Release: 0
|
2019-07-07 22:00:45 +02:00
|
|
|
URL: https://www.musepack.net/
|
2019-07-04 13:53:03 +02:00
|
|
|
Source0: https://files.musepack.net/source/%{name}_%{version}.tar.gz
|
|
|
|
Patch0: libreplaygain-math.patch
|
2019-06-26 08:10:05 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
%description
|
2019-07-07 22:00:45 +02:00
|
|
|
libreplaygain is a library that analyzes input samples and gives the
|
|
|
|
recommended volume change.
|
2019-06-26 08:10:05 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libreplaygain
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libreplaygain%{so_ver} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package includes development files for libreplaygain.
|
|
|
|
|
|
|
|
%package -n libreplaygain%{so_ver}
|
2019-07-07 22:00:45 +02:00
|
|
|
Summary: Library for analyzing sound and recommending volume change
|
2019-06-26 08:10:05 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libreplaygain%{so_ver}
|
2019-07-07 22:00:45 +02:00
|
|
|
libreplaygain is a library that analyzes input samples and gives the
|
|
|
|
recommended volume change.
|
2019-06-26 08:10:05 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}_%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Fix rpmlint error "spurious-executable-perm"
|
|
|
|
chmod 644 include/replaygain/*.h
|
|
|
|
|
|
|
|
# Make the package use rpm optflags
|
|
|
|
sed -i "s/set(CMAKE_C_FLAGS.*$//" CMakeLists.txt
|
|
|
|
|
|
|
|
%cmake
|
2019-07-04 13:53:03 +02:00
|
|
|
%cmake_build
|
2019-06-26 08:10:05 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
cp -a include/replaygain/ %{buildroot}%{_includedir}
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%post -n libreplaygain%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libreplaygain%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/replaygain/
|
|
|
|
%{_libdir}/libreplaygain.so
|
|
|
|
|
|
|
|
%files -n libreplaygain%{so_ver}
|
|
|
|
%{_libdir}/libreplaygain.so.%{so_ver}*
|
|
|
|
|
|
|
|
%changelog
|