[packages/libebml] - updated to 1.3.6; build system has been changed to cmake
qboosh
qboosh at pld-linux.org
Tue Feb 19 20:20:13 CET 2019
commit 0bc28d66915ff8f0ef7c6c781cd42d9ed08ff7a7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Feb 19 20:25:41 2019 +0100
- updated to 1.3.6; build system has been changed to cmake
libebml.spec | 42 +++++++++++++++++++++++++++++++++++-------
1 file changed, 35 insertions(+), 7 deletions(-)
---
diff --git a/libebml.spec b/libebml.spec
index 5f10418..cb2056d 100644
--- a/libebml.spec
+++ b/libebml.spec
@@ -1,13 +1,18 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: Extensible Binary Meta Language access library
Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
Name: libebml
-Version: 1.3.5
-Release: 2
+Version: 1.3.6
+Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: https://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.xz
-# Source0-md5: f1e8c8e4664abb9f51483ff95019eeed
+# Source0-md5: 3e2bc574bb22582c724ab659652fe0db
URL: https://www.matroska.org/
+BuildRequires: cmake >= 3.1.2
BuildRequires: libstdc++-devel
BuildRequires: rpmbuild(macros) >= 1.553
BuildRequires: xz
@@ -52,14 +57,35 @@ Statyczna wersja biblioteki rozszerzalnego metajęzyka binarnego.
%setup -q
%build
-%configure
+# .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
+%if %{with static_libs}
+install -d build-static
+cd build-static
+%cmake .. \
+ -DBUILD_SHARED_LIBS:BOOL=OFF \
+ -DCMAKE_INSTALL_INCLUDEDIR=include \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib}
+%{__make}
+cd ..
+%endif
+
+install -d build
+cd build
+%cmake .. \
+ -DCMAKE_INSTALL_INCLUDEDIR=include \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%if %{with static_libs}
+%{__make} -C build-static install \
+ DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%clean
@@ -70,17 +96,19 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog
+%doc ChangeLog README.md
%attr(755,root,root) %{_libdir}/libebml.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libebml.so.4
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libebml.so
-%{_libdir}/libebml.la
%{_includedir}/ebml
%{_pkgconfigdir}/libebml.pc
+%{_libdir}/cmake/ebml
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libebml.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libebml.git/commitdiff/0bc28d66915ff8f0ef7c6c781cd42d9ed08ff7a7
More information about the pld-cvs-commit
mailing list