From 540303671235a9c7c15a7d7ddd9d1b6d3d2015a1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:27:28 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.30.2-1mamba;Sun Jul 10 2022] --- README.md | 2 ++ cmark.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 cmark.spec diff --git a/README.md b/README.md index ce63f51..6a263c5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cmark +CommonMark parsing and rendering library and program in C. + diff --git a/cmark.spec b/cmark.spec new file mode 100644 index 0000000..ecda86f --- /dev/null +++ b/cmark.spec @@ -0,0 +1,80 @@ +Name: cmark +Version: 0.30.2 +Release: 1mamba +Summary: CommonMark parsing and rendering library and program in C +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/commonmark/cmark +Source: https://github.com/commonmark/cmark.git/%{version}/cmark-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +CommonMark parsing and rendering library and program in C. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/cmark +%{_mandir}/man1/cmark.1* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libcmark.so.* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/cmark*.h +%{_libdir}/libcmark.a +%{_libdir}/libcmark.so +%{_libdir}/pkgconfig/libcmark.pc +%dir %{_libdir}/cmake/cmark +%{_libdir}/cmake/cmark/cmark-*.cmake +%{_mandir}/man3/cmark.3* +%doc README.md + +%changelog +* Sun Jul 10 2022 Silvan Calarco 0.30.2-1mamba +- package created using the webbuild interface