[packages/libebur128] - updated to 1.2.6
qboosh
qboosh at pld-linux.org
Sat Jul 9 15:22:57 CEST 2022
commit 74a6cf306998d477fa7d220a5cad082cf97ba066
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 9 15:24:41 2022 +0200
- updated to 1.2.6
libebur128.spec | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/libebur128.spec b/libebur128.spec
index 124afd8..2136f2b 100644
--- a/libebur128.spec
+++ b/libebur128.spec
@@ -5,13 +5,13 @@
Summary: EBU R 128 standard for loudness normalisation
Summary(pl.UTF-8): Standard normalizacji głośności EBU R 128
Name: libebur128
-Version: 1.2.4
+Version: 1.2.6
Release: 1
License: MIT
Group: Libraries
+#Source0Download: https://github.com/jiixyj/libebur128/releases
Source0: https://github.com/jiixyj/libebur128/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: d6131f7e3bbf0cd7301fb5d9f8a30cc1
-#Patch0: %{name}-what.patch
+# Source0-md5: d38c5f86f5dccb37b5818b853ad49f32
URL: https://github.com/jiixyj/libebur128
BuildRequires: cmake >= 2.8.12
BuildRequires: rpmbuild(macros) >= 1.605
@@ -53,11 +53,22 @@ Statyczna biblioteka ebur128.
%setup -q
%build
+%if %{with static_libs}
+install -d build-static
+cd build-static
+%cmake .. \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib}
+
+%{__make}
+cd ..
+%endif
+
install -d build
cd build
# .pc file expects relative CMAKE_INSTALL_LIBDIR
%cmake .. \
- %{!?with_static_libs:-DBUILD_STATIC_LIBS=OFF} \
+ -DBUILD_STATIC_LIBS=OFF \
-DCMAKE_INSTALL_LIBDIR=%{_lib}
%{__make}
@@ -65,6 +76,11 @@ cd build
%install
rm -rf $RPM_BUILD_ROOT
+%if %{with static_libs}
+%{__make} -C build-static install \
+ DESTDIR=$RPM_BUILD_ROOT
+%endif
+
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libebur128.git/commitdiff/74a6cf306998d477fa7d220a5cad082cf97ba066
More information about the pld-cvs-commit
mailing list