package created using the webbuild interface [release 0.30.2-1mamba;Sun Jul 10 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 21:27:28 +01:00
parent 86e3ec4557
commit 5403036712
2 changed files with 82 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# cmark
CommonMark parsing and rendering library and program in C.

80
cmark.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.30.2-1mamba
- package created using the webbuild interface