[packages/libreplaygain] - new

atler atler at pld-linux.org
Fri Nov 8 15:16:03 CET 2013


commit d9a99989b46a0f210b704e14fd2ff06aa0a982ca
Author: Jan Palus <jan.palus at gmail.com>
Date:   Fri Nov 8 15:15:47 2013 +0100

    - new

 libreplaygain-link.patch | 10 +++++++
 libreplaygain.spec       | 72 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)
---
diff --git a/libreplaygain.spec b/libreplaygain.spec
new file mode 100644
index 0000000..0b74fb5
--- /dev/null
+++ b/libreplaygain.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
+%define		rev	475
+Summary:	ReplayGain library
+Name:		libreplaygain
+Version:	0.0.1.r%{rev}
+Release:	1
+License:	GPL v2+
+Group:		Libraries
+Source0:	http://files.musepack.net/source/%{name}_r%{rev}.tar.gz
+# Source0-md5:	e27b3b1249b7fbae92d656d9e3d26633
+Patch0:		%{name}-link.patch
+URL:		http://www.musepack.net/
+BuildRequires:	cmake >= 2.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ReplayGain library.
+
+%package devel
+Summary:	Header files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name}.
+
+%package static
+Summary:	Static version of the %{name} library
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static version of the %{name} library.
+
+%prep
+%setup -q -n libreplaygain_r%{rev}
+%patch0 -p1
+
+%build
+%cmake
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}
+%{__cp} -r include/replaygain $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libreplaygain.so.*.*.*
+%ghost %{_libdir}/libreplaygain.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libreplaygain.so
+%{_includedir}/replaygain
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libreplaygain.a
+%endif
diff --git a/libreplaygain-link.patch b/libreplaygain-link.patch
new file mode 100644
index 0000000..0bce80e
--- /dev/null
+++ b/libreplaygain-link.patch
@@ -0,0 +1,10 @@
+diff -urN libreplaygain_r475.orig/src/CMakeLists.txt libreplaygain_r475/src/CMakeLists.txt
+--- libreplaygain_r475.orig/src/CMakeLists.txt	2009-07-31 14:03:57.000000000 +0200
++++ libreplaygain_r475/src/CMakeLists.txt	2013-11-02 14:07:14.672377798 +0100
+@@ -5,5 +5,6 @@
+ 
+ add_library(replaygain-shared SHARED gain_analysis)
+ set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1)
++target_link_libraries(replaygain-shared m)
+ 
+ install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libreplaygain.git/commitdiff/d9a99989b46a0f210b704e14fd2ff06aa0a982ca



More information about the pld-cvs-commit mailing list