159 lines
4.4 KiB
RPMSpec
159 lines
4.4 KiB
RPMSpec
Name: lablgtk
|
|
Version: 2.6.0
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Objective Caml interface to gtk+
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPL
|
|
URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
|
|
Source: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-2.6.0.tar.gz
|
|
#Patch0: lablgtk-gcc4.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: ocaml >= 3.09.1, camlp4 >= 3.09.1
|
|
# lablgtk can generate quite extensive documentation.
|
|
# Probably should enable this and create a subpackage for it.
|
|
BuildRequires: ocaml-ocamldoc
|
|
BuildRequires: lablgl >= 1.02
|
|
BuildRequires: gtkglarea2-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: libglade2-devel
|
|
BuildRequires: librsvg2-devel
|
|
BuildRequires: libgnomeui-devel
|
|
BuildRequires: libgnomecanvas-devel
|
|
BuildRequires: gnome-panel-devel
|
|
BuildRequires: gtkspell-devel
|
|
BuildRequires: libXmu-devel
|
|
|
|
Requires: ocaml >= 3.09.1
|
|
Requires: lablgl >= 1.02
|
|
|
|
|
|
%description
|
|
LablGTK is is an Objective Caml interface to gtk+.
|
|
|
|
It uses the rich type system of Objective Caml 3 to provide a strongly
|
|
typed, yet very comfortable, object-oriented interface to gtk+. This
|
|
is not that easy if you know the dynamic typing approach taken by
|
|
gtk+.
|
|
|
|
|
|
%package doc
|
|
Group: System Environment/Libraries
|
|
Summary: Documentation for LablGTK
|
|
Requires: lablgtk = %{version}-%{release}
|
|
|
|
%description doc
|
|
Documentation for LablGTK.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1 -b .gcc4
|
|
# version information in META file is wrong
|
|
perl -pi -e 's|version="1.3.1"|version="2.6.0"|' META
|
|
|
|
|
|
%build
|
|
%configure --with-gl --enable-debug
|
|
perl -pi -e "s|-O|$RPM_OPT_FLAGS|" src/Makefile
|
|
make world
|
|
make doc
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir} \
|
|
$RPM_BUILD_ROOT%{_libdir} \
|
|
$RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2 \
|
|
$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
|
make install \
|
|
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
|
|
LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
|
|
INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2 \
|
|
DLLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
|
cp META $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/*
|
|
%{_libdir}/ocaml/lablgtk2
|
|
%{_libdir}/ocaml/stublibs/*
|
|
%doc README COPYING CHANGES
|
|
%doc examples
|
|
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc doc/html
|
|
|
|
|
|
%changelog
|
|
* Tue Aug 29 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-5
|
|
- Rebuild for FE6
|
|
|
|
* Wed May 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-4
|
|
- rebuilt for ocaml 3.09.2
|
|
- removed unnecessary ldconfig
|
|
|
|
* Sun Feb 26 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-3
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
* Sun Jan 1 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-1
|
|
- new version 2.6.0
|
|
|
|
* Sat Sep 10 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-6
|
|
- include META file
|
|
|
|
* Sun May 22 2005 Toshio Kuratomi <toshio-iki-lounge.com> - 2.4.0-5
|
|
- Removed gnome-1.x BuildRequires
|
|
- Removed BuildRequires not explicitly mentioned in the configure script
|
|
(These are dragged in through dependencies.)
|
|
- Fix a gcc4 error about lvalue casting.
|
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.4.0-4
|
|
- rebuild on all arches
|
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
- rebuilt
|
|
|
|
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-2
|
|
- Remove %{_smp_mflags} as it breaks the build
|
|
|
|
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-1
|
|
- New Version 2.4.0
|
|
|
|
* Sat Nov 13 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:2.2.0-5
|
|
- BR gnome-panel-devel instead of gnome-panel (since FC2!)
|
|
|
|
* Wed Apr 28 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.4
|
|
- Compile with debug
|
|
|
|
* Tue Dec 2 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.3
|
|
- Make GL support optional using --with gl switch
|
|
|
|
* Fri Nov 28 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.2
|
|
- Added dependency on libcroco
|
|
- Honor RPM_OPT_FLAGS
|
|
|
|
* Fri Oct 31 2003 Gerard Milmeister <milmei@ifi.unizh.ch> - 0:2.2.0-0.fdr.1
|
|
- First Fedora release
|
|
|
|
* Mon Oct 13 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
|
|
- Update to 2.2.0.
|
|
|
|
* Sun Aug 17 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
|
|
- Provide ocaml-lablgtk (reported by bishop@platypus.bc.ca).
|
|
|
|
* Wed Apr 9 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
|
|
- Rebuilt for Red Hat 9.
|
|
|
|
* Tue Nov 26 2002 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
|
|
- Initial build
|