# # spec file for package libreplaygain # # Copyright (c) 2013 Asterios Dramis . # # 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. %define so_ver 1 Name: libreplaygain Version: r475 Release: 0 License: LGPL-2.1+ Summary: Analyze Input Samples and Give the Recommended dB Change Url: http://www.musepack.net/ Group: System/Libraries Source0: http://files.musepack.net/source/%{name}_%{version}.tar.gz Patch0: libreplaygain-math.patch BuildRequires: cmake BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libreplaygain is a library that analyzes input samples and give the recommended dB change. %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} Summary: Analyze Input Samples and Give the Recommended dB Change Group: System/Libraries %description -n libreplaygain%{so_ver} libreplaygain is a library that analyzes input samples and give the recommended dB change. %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 make %{?_smp_mflags} VERBOSE=1 %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