package created using the webbuild interface [release 4.1.9-1mamba;Sun Feb 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 08:05:27 +01:00
parent 96e9283731
commit 284b8088dd
2 changed files with 83 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# ocamlnet
Internet protocols (http, cgi, email etc.) and helper data structures (mail messages, character sets, etc.).

81
ocamlnet.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 4.1.9-1mamba
- package created using the webbuild interface