diff --git a/README.md b/README.md index d6e89aa..b6ca55e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocamlnet +Internet protocols (http, cgi, email etc.) and helper data structures (mail messages, character sets, etc.). + diff --git a/ocamlnet.spec b/ocamlnet.spec new file mode 100644 index 0000000..66ba2f8 --- /dev/null +++ b/ocamlnet.spec @@ -0,0 +1,81 @@ +Name: ocamlnet +Version: 4.1.9 +Release: 1mamba +Summary: Internet protocols (http, cgi, email etc.) and helper data structures (mail messages, character sets, etc.) +Group: System/Libraries/OCaml +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://projects.camlcity.org/projects/ocamlnet.html +Source: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz +License: zlib/png, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgnutls-devel +BuildRequires: libgssglue-devel +BuildRequires: libnettle-devel +BuildRequires: ocaml +BuildRequires: ocaml-pcre-devel +BuildRequires: ocaml-runtime +## AUTOBUILDREQ-END +BuildRequires: dune +BuildRequires: ocaml +BuildRequires: ocaml-findlib + +%description +%{summary}. + +%package devel +Group: Development/Libraries/OCaml +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and signature files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +./configure \ + -enable-gnutls \ + -enable-gssapi \ + -enable-pcre \ + -bindir %{_bindir} + +make all opt + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +export OCAMLFIND_DESTDIR="%{buildroot}/$(ocamlfind printconf destdir)" +install -dm755 "$OCAMLFIND_DESTDIR/stublibs" +env DESTDIR="%{buildroot}" make install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/netplex-admin +%{_bindir}/ocamlrpcgen +%dir %{_libdir}/ocaml/* +%{_libdir}/ocaml/*/* +%exclude %{_libdir}/ocaml/*/*.a +%exclude %{_libdir}/ocaml/*/*.cmx +%exclude %{_libdir}/ocaml/*/*.cmxa +%exclude %{_libdir}/ocaml/*/*.mli +%{_libdir}/ocaml/stublibs/*.so* +%doc LICENSE* + +%files devel +%defattr(-,root,root) +%{_libdir}/ocaml/*/*.a +%{_libdir}/ocaml/*/*.cmx +%{_libdir}/ocaml/*/*.cmxa +%{_libdir}/ocaml/*/*.mli + +%changelog +* Sun Feb 06 2022 Silvan Calarco 4.1.9-1mamba +- package created using the webbuild interface