diff --git a/README.md b/README.md index 47d3fb0..19ec5ae 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-labltk +LablTk is an OCaml interface to the Tcl/Tk GUI framework. + diff --git a/ocaml-labltk.spec b/ocaml-labltk.spec new file mode 100644 index 0000000..8b1571d --- /dev/null +++ b/ocaml-labltk.spec @@ -0,0 +1,87 @@ +Name: ocaml-labltk +Version: 8.06.5 +Release: 1mamba +Summary: An OCaml interface to the Tcl/Tk GUI framework +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://labltk.forge.ocamlcore.org/ +Source: https://forge.ocamlcore.org/frs/download.php/1764/labltk-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libtcl-devel +BuildRequires: libtk-devel +## AUTOBUILDREQ-END +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 + +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< 8.06.5-1mamba +- package created using the webbuild interface