ocaml-cppo/ocaml-cppo.spec

54 lines
1.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: ocaml-cppo
Version: 1.6.7
Release: 1mamba
Summary: C-style preprocessor for OCaml
Group: System/Libraries/OCaml
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ocaml-community/cppo
Source: https://github.com/ocaml-community/cppo.git/v%{version}/cppo-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: ocaml-runtime
BuildRequires: ocamlbuild
## AUTOBUILDREQ-END
BuildRequires: ocaml
BuildRequires: dune
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
C-style preprocessor for OCaml.
%debug_package
%prep
%setup -q -n cppo-%{version}
%build
%make all
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -rf %{buildroot}%{_prefix}/doc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/cppo
%dir %{_libdir}/ocaml/cppo
%{_libdir}/ocaml/cppo/*
%dir %{_libdir}/ocaml/cppo_ocamlbuild
%{_libdir}/ocaml/cppo_ocamlbuild/*
%doc README.md
%changelog
* Sat Jan 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.7-1mamba
- package created using the webbuild interface