diff --git a/README.md b/README.md index 47373c6..0eb59e7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-re +Pure OCaml regular expressions, with support for Perl and POSIX-style strings. + diff --git a/ocaml-re.spec b/ocaml-re.spec new file mode 100644 index 0000000..4ec91a6 --- /dev/null +++ b/ocaml-re.spec @@ -0,0 +1,45 @@ +Name: ocaml-re +Version: 1.9.0 +Release: 1mamba +Summary: Pure OCaml regular expressions, with support for Perl and POSIX-style strings +Group: System/Libraries/OCaml +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ocaml/ocaml-re +## GITSOURCE https://github.com/ocaml/ocaml-re.git 1.9.0 +Source: https://github.com/ocaml/ocaml-re.git/%{version}/ocaml-re-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: dune +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Pure OCaml regular expressions, with support for Perl and POSIX-style strings. + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +dune install \ + --destdir=%{buildroot} \ + --libdir=%{_libdir}/ocaml + +rm -rf %{buildroot}%{_prefix}/doc + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/re +%{_libdir}/ocaml/re/* + +%changelog +* Sun May 05 2019 Silvan Calarco 1.9.0-1mamba +- package created using the webbuild interface