diff options
author | Remi Collet <remi@remirepo.net> | 2024-12-02 09:59:58 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-12-02 09:59:58 +0100 |
commit | 5a5bb5e10675261cfaddd99d9b9e654e87ab2f1e (patch) | |
tree | e12ee17a29b58643f058570b38d13e733986c14b |
import Fedora spec
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | md4c.spec | 70 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01f0400 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +clog +package-*.xml +*.tgz +*.tar.bz2 +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/md4c.spec b/md4c.spec new file mode 100644 index 0000000..6f265c6 --- /dev/null +++ b/md4c.spec @@ -0,0 +1,70 @@ +Version: 0.5.1 +Name: md4c +Release: 1%{?dist} +Summary: Markdown for C + +License: MIT +URL: https://github.com/mity/md4c +Source0: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +# Needed for tests +BuildRequires: python3 + +%description +MD4C is Markdown parser implementation in C. + +%package devel +Summary: Development files for md4c +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The md4c-devel package contains libraries and header files for +developing applications that use md4c. + +%prep +%autosetup -n %{name}-release-%{version} + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +cd %__cmake_builddir +bash %{_builddir}/%{name}-release-%{version}/scripts/run-tests.sh + +%files +%doc README.md +%doc CHANGELOG.md +%license LICENSE.md +%{_bindir}/md2html +%{_libdir}/libmd4c-html.so.0* +%{_libdir}/libmd4c.so.0* +%{_mandir}/man1/md2html.1* + +%files devel +%{_includedir}/md4c.h +%{_includedir}/md4c-html.h +%{_libdir}/libmd4c-html.so +%{_libdir}/libmd4c.so +%dir %{_libdir}/cmake/md4c +%{_libdir}/cmake/md4c/*.cmake +%{_libdir}/pkgconfig/md4c.pc +%{_libdir}/pkgconfig/md4c-html.pc + +%changelog +* Mon Jan 29 2024 Benson Muite <benson_muite@emailplus.org> - 0.5.1-1 +- Upgrade to latest release + +* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 29 2023 Benson Muite <benson_muite@emailplus.org> - 0.4.8-1 +- Initial packaging |