3 %bcond_without static_libs # static library
5 Summary: CommonMark parsing and rendering program
6 Summary(pl.UTF-8): Program do analizy i renderowania formatowania CommonMark
11 Group: Applications/Text
12 #Source0Download: https://github.com/CommonMark/cmark/releases
13 Source0: https://github.com/CommonMark/cmark/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: d3f527fe8451dd9b58974b52c27302a8
15 URL: https://github.com/CommonMark/cmark
16 BuildRequires: cmake >= 3.7
17 Requires: %{name}-lib = %{version}-%{release}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Cmark is the C reference implementation of CommonMark, a rationalized
22 version of Markdown syntax with a spec.
24 %description -l pl.UTF-8
25 CMark to wzorcowa implementacja w C formatu CommonMark -
26 zracjonalizowanej wersji składni Markdown, posiadającej specyfikację.
29 Summary: CommonMark parsing and rendering library
30 Summary(pl.UTF-8): Biblioteka do analizy i renderowania formatowania CommonMark
34 Cmark is the C reference implementation of CommonMark, a rationalized
35 version of Markdown syntax with a spec.
37 %description lib -l pl.UTF-8
38 CMark to wzorcowa implementacja w C formatu CommonMark -
39 zracjonalizowanej wersji składni Markdown, posiadającej specyfikację.
42 Summary: Header files for %{name} library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
44 Group: Development/Libraries
45 Requires: %{name}-lib = %{version}-%{release}
48 Header files for %{name} library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki %{name}.
54 Summary: Static %{name} library
55 Summary(pl.UTF-8): Statyczna biblioteka %{name}
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static %{name} library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka %{name}.
72 %{!?with_static_libs:-DCMARK_STATIC=OFF}
77 rm -rf $RPM_BUILD_ROOT
79 %{__make} -C build install \
80 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/cmark
91 %{_mandir}/man1/cmark.1*
94 %defattr(644,root,root,755)
95 %doc COPYING README.md changelog.txt
96 %attr(755,root,root) %{_libdir}/libcmark.so.%{version}
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libcmark.so
101 %{_includedir}/cmark*.h
102 %{_pkgconfigdir}/libcmark.pc
103 %{_libdir}/cmake/cmark
104 %{_mandir}/man3/cmark.3*
106 %if %{with static_libs}
108 %defattr(644,root,root,755)
109 %{_libdir}/libcmark.a