Group :: Development/ML
RPM: ocaml-postgresql
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define libname postgresql
Name: ocaml-%libname
Version: 5.0.0
Release: alt1
Summary: PostgreSQL Bindings for OCaml
Group: Development/ML
License: LGPLv2.1 with OCaml-LGPL-linking-exception
Url: https://github.com/mmottl/postgresql-ocaml
Source0: %name-%version.tar
BuildRequires: ocaml-dune-configurator-devel
BuildRequires: ocaml-base-devel
BuildRequires: ocaml-stdio-devel
BuildRequires: postgresql-devel
BuildRequires: chrpath
%description
OCAML Postgresql offers library functions for accessing PostgreSQL databases.
%package devel
Summary: Development files for %name
Group: Development/ML
Requires: %name = %EVR
%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%setup
%build
%dune_build -p %libname
%install
%dune_install
rm -rf %buildroot/usr/share/doc
chrpath -d %buildroot%_libdir/ocaml/stublibs/dllpostgresql_stubs.so
%check
%dune_check
%files -f ocaml-files.runtime
%doc README.md LICENSE.md CHANGES.md
%files devel -f ocaml-files.devel
%changelog
…
Full changelog you can see here
Name: ocaml-%libname
Version: 5.0.0
Release: alt1
Summary: PostgreSQL Bindings for OCaml
Group: Development/ML
License: LGPLv2.1 with OCaml-LGPL-linking-exception
Url: https://github.com/mmottl/postgresql-ocaml
Source0: %name-%version.tar
BuildRequires: ocaml-dune-configurator-devel
BuildRequires: ocaml-base-devel
BuildRequires: ocaml-stdio-devel
BuildRequires: postgresql-devel
BuildRequires: chrpath
%description
OCAML Postgresql offers library functions for accessing PostgreSQL databases.
%package devel
Summary: Development files for %name
Group: Development/ML
Requires: %name = %EVR
%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%setup
%build
%dune_build -p %libname
%install
%dune_install
rm -rf %buildroot/usr/share/doc
chrpath -d %buildroot%_libdir/ocaml/stublibs/dllpostgresql_stubs.so
%check
%dune_check
%files -f ocaml-files.runtime
%doc README.md LICENSE.md CHANGES.md
%files devel -f ocaml-files.devel
%changelog
…
Full changelog you can see here