Files

81 lines
2.1 KiB
RPMSpec

Name: md4c
Version: 0.5.3
Release: 1mamba
Summary: Markdown parser implementation in C
Group: Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan@openmamba.org>
URL: https://github.com/mity/md4c
Source: https://github.com/mity/md4c.git/release-%{version}/md4c-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
MD4C is a Markdown parser implementation in C with the following features:
- Fast
- SAX-like interface
- Compliant to CommonMark specification
%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}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/md2html
%{_mandir}/man1/md2html.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmd4c-html.so.*
%{_libdir}/libmd4c.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/md4c-html.h
%{_includedir}/md4c.h
%{_libdir}/libmd4c-html.so
%{_libdir}/libmd4c.so
%{_libdir}/pkgconfig/md4c-html.pc
%{_libdir}/pkgconfig/md4c.pc
%dir %{_libdir}/cmake/md4c
%{_libdir}/cmake/md4c/md4cConfig*.cmake
%doc README.md
%changelog
* Mon Apr 20 2026 Automatic Build System <autodist@openmamba.org> 0.5.3-1mamba
- automatic version update by autodist
* Mon Jan 05 2026 Silvan Calarco <silvan@openmamba.org> 0.5.2-1mamba
- package created using the webbuild interface