2007-07-07 12:32:26 +00:00
|
|
|
%define debug_package %{nil}
|
2006-12-02 16:11:20 +00:00
|
|
|
|
2007-07-07 12:32:26 +00:00
|
|
|
Name: ocaml-lablgtk
|
2008-04-23 08:48:51 +00:00
|
|
|
Version: 2.10.1
|
2008-09-18 11:49:58 +00:00
|
|
|
Release: 4%{?dist}
|
2005-04-06 22:12:20 +00:00
|
|
|
|
2005-03-03 22:41:31 +00:00
|
|
|
Summary: Objective Caml interface to gtk+
|
2004-11-08 04:40:06 +00:00
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
2008-08-11 20:51:30 +00:00
|
|
|
License: LGPLv2 with exceptions
|
2004-11-08 04:40:06 +00:00
|
|
|
URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
|
2007-11-07 17:34:04 +00:00
|
|
|
Source: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-%{version}.tar.gz
|
2004-11-08 04:40:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-07-07 12:32:26 +00:00
|
|
|
|
|
|
|
Obsoletes: lablgtk <= 2.6.0-7
|
|
|
|
Provides: lablgtk = 2.6.0-7
|
|
|
|
|
|
|
|
BuildRequires: ncurses-devel
|
2005-12-31 23:45:56 +00:00
|
|
|
BuildRequires: gnome-panel-devel
|
2007-07-07 12:32:26 +00:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: gtkglarea2-devel
|
2005-12-31 23:45:56 +00:00
|
|
|
BuildRequires: gtkspell-devel
|
2006-01-01 00:43:24 +00:00
|
|
|
BuildRequires: libXmu-devel
|
2007-07-07 12:32:26 +00:00
|
|
|
BuildRequires: libglade2-devel
|
|
|
|
BuildRequires: libgnomecanvas-devel
|
|
|
|
BuildRequires: libgnomeui-devel
|
|
|
|
BuildRequires: librsvg2-devel
|
2008-02-13 00:34:06 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.1
|
2007-07-07 12:32:26 +00:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2008-02-13 00:34:06 +00:00
|
|
|
BuildRequires: ocaml-lablgl-devel >= 1.03
|
2007-07-07 12:32:26 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: zlib-devel
|
2008-09-18 11:49:58 +00:00
|
|
|
BuildRequires: gtksourceview-devel
|
2005-12-31 23:45:56 +00:00
|
|
|
|
2007-07-07 12:32:26 +00:00
|
|
|
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
2005-12-31 23:45:56 +00:00
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
|
|
|
|
%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+.
|
|
|
|
|
2006-05-10 17:53:15 +00:00
|
|
|
|
2005-12-31 23:45:56 +00:00
|
|
|
%package doc
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: Documentation for LablGTK
|
2007-07-07 12:32:26 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2005-12-31 23:45:56 +00:00
|
|
|
|
|
|
|
%description doc
|
2007-07-07 12:32:26 +00:00
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
2005-12-31 23:45:56 +00:00
|
|
|
|
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
%prep
|
2007-11-07 17:34:04 +00:00
|
|
|
%setup -q -n lablgtk-%{version}
|
2005-09-10 19:27:23 +00:00
|
|
|
# version information in META file is wrong
|
2007-07-07 12:32:26 +00:00
|
|
|
perl -pi -e 's|version="1.3.1"|version="%{version}"|' META
|
2005-12-31 23:45:56 +00:00
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
|
|
|
|
%build
|
2005-12-31 23:45:56 +00:00
|
|
|
%configure --with-gl --enable-debug
|
2004-11-08 04:40:06 +00:00
|
|
|
perl -pi -e "s|-O|$RPM_OPT_FLAGS|" src/Makefile
|
2005-02-12 11:03:42 +00:00
|
|
|
make world
|
2007-11-07 17:34:04 +00:00
|
|
|
make doc CAMLP4O="camlp4o -I %{_libdir}/ocaml/camlp4/Camlp4Parsers"
|
2005-12-31 23:45:56 +00:00
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-07-07 12:32:26 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
2005-09-10 19:27:23 +00:00
|
|
|
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
|
2004-11-08 04:40:06 +00:00
|
|
|
|
2007-07-07 12:32:26 +00:00
|
|
|
# Remove unnecessary *.ml files (ones which have a *.mli).
|
|
|
|
pushd $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2
|
|
|
|
for f in *.ml; do \
|
|
|
|
b=`basename $f .ml`; \
|
|
|
|
if [ -f "$b.mli" ]; then \
|
|
|
|
rm $f; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Remove .cvsignore files from examples directory.
|
|
|
|
find examples -name .cvsignore -exec rm {} \;
|
|
|
|
|
2006-05-10 17:53:15 +00:00
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2005-12-31 23:45:56 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-11-08 04:40:06 +00:00
|
|
|
%doc README COPYING CHANGES
|
2007-07-07 12:32:26 +00:00
|
|
|
%dir %{_libdir}/ocaml/lablgtk2
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.cmi
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.cma
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_bindir}/gdk-pixbuf-mlsource
|
|
|
|
%{_bindir}/lablgladecc2
|
|
|
|
%{_bindir}/lablgtk2
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README COPYING CHANGES
|
|
|
|
%dir %{_libdir}/ocaml/lablgtk2
|
|
|
|
%{_libdir}/ocaml/lablgtk2/META
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.a
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.cmxa
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.cmx
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.mli
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.ml
|
|
|
|
%{_libdir}/ocaml/lablgtk2/*.h
|
|
|
|
%{_libdir}/ocaml/lablgtk2/gtkInit.cmo
|
|
|
|
%{_libdir}/ocaml/lablgtk2/gtkInit.o
|
|
|
|
%{_libdir}/ocaml/lablgtk2/gtkThInit.cmo
|
|
|
|
%{_libdir}/ocaml/lablgtk2/gtkThread.cmo
|
|
|
|
%{_libdir}/ocaml/lablgtk2/gtkThread.o
|
|
|
|
%{_libdir}/ocaml/lablgtk2/propcc
|
|
|
|
%{_libdir}/ocaml/lablgtk2/varcc
|
2004-11-08 04:40:06 +00:00
|
|
|
|
2006-05-10 17:53:15 +00:00
|
|
|
|
2005-12-31 23:45:56 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2007-07-07 12:32:26 +00:00
|
|
|
%doc examples doc/html
|
2005-12-31 23:45:56 +00:00
|
|
|
|
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
%changelog
|
2008-09-18 11:49:58 +00:00
|
|
|
* Thu Sep 18 2008 Richard W.M. Jones <rjones@redhat.com> - 2.10.1-4
|
|
|
|
- Add missing BR for gtksourceview-devel (rhbz#462651).
|
|
|
|
|
2008-08-11 20:51:30 +00:00
|
|
|
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.10.1-3
|
|
|
|
- fix license tag
|
|
|
|
|
2008-04-23 16:16:52 +00:00
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 2.10.1-2
|
|
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
|
2008-04-23 08:48:51 +00:00
|
|
|
* Mon Apr 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.10.1-0
|
|
|
|
- New upstream release 2.10.1.
|
|
|
|
|
2008-03-01 08:59:28 +00:00
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 2.10.0-3
|
|
|
|
- Rebuild for ppc64.
|
|
|
|
|
2008-02-13 00:34:06 +00:00
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 2.10.0-2
|
|
|
|
- Rebuild for OCaml 3.10.1.
|
|
|
|
|
2007-11-07 17:34:04 +00:00
|
|
|
* Wed Nov 7 2007 Richard W.M. Jones <rjones@redhat.com> - 2.10.0-1
|
|
|
|
- New upstream release 2.10.0.
|
|
|
|
- Fix path to Camlp4Parsers in 'make doc' rule.
|
|
|
|
|
2007-09-07 11:31:42 +00:00
|
|
|
* Fri Sep 7 2007 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-10.20060908cvs
|
|
|
|
- rebuild
|
|
|
|
|
2007-08-30 09:49:34 +00:00
|
|
|
* Thu Aug 30 2007 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-9.20060908cvs
|
|
|
|
- rebuild
|
|
|
|
|
2007-07-07 12:32:26 +00:00
|
|
|
* Sat Jul 7 2007 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-8.20060908cvs
|
|
|
|
- update to cvs version
|
|
|
|
- renamed package from lablgtk to ocaml-lablgtk
|
|
|
|
|
2006-12-02 16:11:20 +00:00
|
|
|
* Sat Dec 2 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-7
|
|
|
|
- Rebuild for ocaml 3.09.3
|
|
|
|
|
2006-08-29 09:59:00 +00:00
|
|
|
* Tue Aug 29 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-6
|
|
|
|
- added BR: ncurses-devel
|
|
|
|
|
2006-08-29 08:57:30 +00:00
|
|
|
* Tue Aug 29 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-5
|
|
|
|
- Rebuild for FE6
|
|
|
|
|
2006-05-10 17:53:15 +00:00
|
|
|
* Wed May 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-4
|
|
|
|
- rebuilt for ocaml 3.09.2
|
|
|
|
- removed unnecessary ldconfig
|
|
|
|
|
2006-02-26 18:56:40 +00:00
|
|
|
* Sun Feb 26 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-3
|
2006-02-26 18:54:20 +00:00
|
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
|
2005-12-31 23:45:56 +00:00
|
|
|
* Sun Jan 1 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.6.0-1
|
|
|
|
- new version 2.6.0
|
|
|
|
|
2005-09-10 19:27:23 +00:00
|
|
|
* Sat Sep 10 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-6
|
|
|
|
- include META file
|
|
|
|
|
2005-05-26 18:38:34 +00:00
|
|
|
* 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.
|
|
|
|
|
2005-05-22 22:57:27 +00:00
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.4.0-4
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2005-04-06 22:12:20 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-12 11:03:42 +00:00
|
|
|
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-2
|
|
|
|
- Remove %{_smp_mflags} as it breaks the build
|
|
|
|
|
2005-02-11 23:55:06 +00:00
|
|
|
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-1
|
|
|
|
- New Version 2.4.0
|
|
|
|
|
2004-11-13 22:10:52 +00:00
|
|
|
* 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!)
|
|
|
|
|
2004-11-08 04:40:06 +00:00
|
|
|
* 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
|