!1 Initial packaging
From: @zhang__3125 Reviewed-by: @dwl301 Signed-off-by: @dwl301
This commit is contained in:
commit
2f27393e55
BIN
0.30.2.tar.gz
Normal file
BIN
0.30.2.tar.gz
Normal file
Binary file not shown.
66
cmark.spec
Normal file
66
cmark.spec
Normal file
@ -0,0 +1,66 @@
|
||||
%bcond_with tests
|
||||
|
||||
Name: cmark
|
||||
Version: 0.30.2
|
||||
Release: 1
|
||||
Summary: CommonMark parsing and rendering library and program in C
|
||||
License: BSD and MIT
|
||||
URL: https://github.com/commonmark/cmark
|
||||
Source0: https://github.com/commonmark/cmark/archive/refs/tags/0.30.2.tar.gz
|
||||
|
||||
BuildRequires: cmake gcc-c++ pkgconfig
|
||||
|
||||
%description
|
||||
`cmark` is the C reference implementation of CommonMark,
|
||||
a rationalized version of Markdown syntax with a spec.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for cmark library
|
||||
|
||||
%description devel
|
||||
This package provides the development files for cmark.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
rm -rf CMakeCache.txt
|
||||
mkdir -p build
|
||||
pushd build
|
||||
%cmake -DCMARK_TESTS=OFF -DCMARK_STATIC=OFF %{?_without_tests:-DCMARK_TESTS=OFF} ..
|
||||
%make_build
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd build
|
||||
%make_install
|
||||
popd
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%cmake_build --target test
|
||||
%endif
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{_bindir}/cmark
|
||||
%{_libdir}/libcmark.so.%{version}
|
||||
%{_mandir}/man1/cmark.1*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/cmark.h
|
||||
%{_includedir}/cmark_export.h
|
||||
%{_includedir}/cmark_version.h
|
||||
%{_libdir}/libcmark.so
|
||||
%{_libdir}/pkgconfig/libcmark.pc
|
||||
%{_mandir}/man3/cmark.3*
|
||||
%dir %{_libdir}/cmake/cmark
|
||||
%{_libdir}/cmake/cmark/cmark*.cmake
|
||||
|
||||
%changelog
|
||||
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.30.2-1
|
||||
- initial packaging
|
||||
4
cmark.yaml
Normal file
4
cmark.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: https://github.com/commonmark/cmark.git
|
||||
tag_prefix: ^
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user