ocaml-labltk/ocaml-labltk.spec

97 lines
2.6 KiB
RPMSpec

Name: ocaml-labltk
Version: 8.06.9
Release: 1mamba
Summary: An OCaml interface to the Tcl/Tk GUI framework
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://labltk.forge.ocamlcore.org/
Source: https://github.com/garrigue/labltk.git/%{version}/labltk-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libtcl-devel
BuildRequires: libtk-devel
BuildRequires: ocaml-runtime
## AUTOBUILDREQ-END
BuildRequires: ocaml >= 4.11.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
LablTk is an OCaml interface to the Tcl/Tk GUI framework.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n labltk-%{version}
%build
./configure \
-tkdefs "-fPIC"
make all opt
%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_libdir}/ocaml/labltk
install -d -m 755 %{buildroot}%{_libdir}/ocaml/stublibs
make \
BINDIR=%{buildroot}%{_bindir} \
INSTALLDIR=%{buildroot}%{_libdir}/ocaml/labltk \
STUBLIBDIR=%{buildroot}%{_libdir}/ocaml/stublibs \
install
rm -f %{buildroot}%{_libdir}/ocaml/labltk/*.ml
## Make and install a META file.
#cat > %{buildroot}%{_libdir}/ocaml/labltk/META<<EOF
#version="%{version}"
#directory="+labltk"
#archive(byte) = "labltk.cma"
#archive(native) = "labltk.cmxa"
#EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/labltk
%dir %{_libdir}/ocaml/labltk
%{_libdir}/ocaml/labltk/*.cmi
%{_libdir}/ocaml/labltk/*.cma
%{_libdir}/ocaml/labltk/tkthread.cmo
%{_libdir}/ocaml/stublibs/dlllabltk.so
%files devel
%defattr(-,root,root)
%{_bindir}/ocamlbrowser
%{_libdir}/ocaml/labltk/*.a
%{_libdir}/ocaml/labltk/*.cmx
%{_libdir}/ocaml/labltk/*.cmxa
%{_libdir}/ocaml/labltk/*.mli
%{_libdir}/ocaml/labltk/labltktop
%{_libdir}/ocaml/labltk/pp
%{_libdir}/ocaml/labltk/tkcompiler
%doc README.md README.mlTk
%changelog
* Thu Jan 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.06.9-1mamba
- update to 8.06.9
* Sat Jan 04 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 8.06.7-1mamba
- update to 8.06.7
* Fri Apr 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 8.06.5-1mamba
- package created using the webbuild interface