[packages/cmark] - updated to 0.31.0
qboosh
qboosh at pld-linux.org
Sun Apr 28 21:08:51 CEST 2024
commit e1d21e8c190f140cb6066407db35bf5d4e6d58db
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 28 20:56:37 2024 +0200
- updated to 0.31.0
cmark.spec | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/cmark.spec b/cmark.spec
index e6e2ba1..b71d6f2 100644
--- a/cmark.spec
+++ b/cmark.spec
@@ -5,13 +5,13 @@
Summary: CommonMark parsing and rendering program
Summary(pl.UTF-8): Program do analizy i renderowania formatowania CommonMark
Name: cmark
-Version: 0.30.3
+Version: 0.31.0
Release: 1
License: BSD and MIT
Group: Applications/Text
#Source0Download: https://github.com/CommonMark/cmark/releases
Source0: https://github.com/CommonMark/cmark/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b99102dd8f3e9af42940efe79c2e973e
+# Source0-md5: 0f18ad50f77cc20e048316857f187da2
URL: https://github.com/CommonMark/cmark
BuildRequires: cmake >= 3.7
Requires: %{name}-lib = %{version}-%{release}
@@ -66,16 +66,33 @@ Statyczna biblioteka %{name}.
%setup -q
%build
-mkdir build
-cd build
+%if %{with static_libs}
+install -d build-static
+cd build-static
%cmake .. \
- %{!?with_static_libs:-DCMARK_STATIC=OFF}
+ -DBUILD_SHARED_LIBS=OFF
+
+%{__make}
+cd ..
+%endif
+
+install -d build
+cd build
+%cmake ..
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+%if %{with static_libs}
+%{__make} -C build-static install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# ensure executable comes from shared build
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/cmark
+%endif
+
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cmark.git/commitdiff/e1d21e8c190f140cb6066407db35bf5d4e6d58db
More information about the pld-cvs-commit
mailing list