1
0
forked from pool/libreplaygain

Accepting request 711394 from home:mgorse:branches:multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/711394
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libreplaygain?expand=0&rev=1
This commit is contained in:
Takashi Iwai 2019-06-26 06:10:05 +00:00 committed by Git OBS Bridge
commit 77a35d2163
6 changed files with 139 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

10
libreplaygain-math.patch Normal file
View File

@ -0,0 +1,10 @@
diff -urp libreplaygain_r475.orig/src/CMakeLists.txt libreplaygain_r475/src/CMakeLists.txt
--- libreplaygain_r475.orig/src/CMakeLists.txt 2009-07-31 07:03:57.000000000 -0500
+++ libreplaygain_r475/src/CMakeLists.txt 2019-06-21 14:38:53.507794158 -0500
@@ -5,5 +5,6 @@ set_target_properties(replaygain-static
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 -lm)
install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")

19
libreplaygain.changes Normal file
View File

@ -0,0 +1,19 @@
-------------------------------------------------------------------
Fri Jun 21 19:40:34 UTC 2019 - mgorse@suse.com
- Add libreplaygain-math.patch: link with -lm.
- Use cmake macros.
- Move source modifications from %prep to %build. Makes 'quilt
setup' more robust.
- Remove some unneeded comments from %install.
- Remove %defattr.. No longer needed.
-------------------------------------------------------------------
Sun Mar 10 23:04:14 UTC 2013 - asterios.dramis@gmail.com
- Correct version number to r475.
-------------------------------------------------------------------
Sun Mar 10 18:13:10 UTC 2013 - asterios.dramis@gmail.com
- Initial rpm release (version 20110810_r475).

83
libreplaygain.spec Normal file
View File

@ -0,0 +1,83 @@
#
# spec file for package libreplaygain
#
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
#
# 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

BIN
libreplaygain_r475.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.