Name: cmark Version: 0.22.0 Release: 1%{?dist} Summary: CommonMark parsing and rendering License: BSD URL: https://github.com/jgm/cmark # dowmloaded from https://github.com/jgm/cmark/archive/0.22.0.tar.gz Source0: cmark-0.22.0.tar.gz Patch1: cmark-0.22.0-lib64.patch BuildRequires: cmake %description `cmark` is the C reference implementation of CommonMark, a rationalized version of Markdown syntax with a spec. It provides a shared library (`libcmark`) with functions for parsing CommonMark documents to an abstract syntax tree (AST), manipulating the AST, and rendering the document to HTML, groff man, LaTeX, CommonMark, or an XML representation of the AST. It also provides a command-line program (`cmark`) for parsing and rendering CommonMark documents. %package devel Summary: libcmark development files %description devel This package provides the development files for libcmark. %package lib Summary: CommonMark parsing and rendering library %description lib This package provides libcmark. %prep %setup -q %build mkdir build cd build %cmake .. make %{?_smp_mflags} %install cd build make install DESTDIR=%{buildroot} # workaround cmake brokeness if [ "%{_lib}" = "lib64" ]; then mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} fi %check cd build ctest -V %{?_smp_mflags} %files %license COPYING %{_bindir}/cmark %{_mandir}/man1/cmark.1.gz %files lib %{_libdir}/libcmark.so.%{version} %files devel %{_includedir}/cmark.h %{_includedir}/cmark_export.h %{_includedir}/cmark_version.h %{_libdir}/libcmark.so %{_libdir}/pkgconfig/libcmark.pc %{_mandir}/man3/cmark.3.gz %changelog * Fri Sep 25 2015 Jens Petersen - 0.22.0-1 - initial packaging - force lib64 - run tests