2009-12-07 15:00:58 +00:00
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
|
2012-01-06 18:04:19 +00:00
|
|
|
# Important note! There are at least two quite separate OCaml cairo
|
|
|
|
# projects. This one is: http://cairographics.org/cairo-ocaml/
|
|
|
|
# The other one is: http://forge.ocamlcore.org/projects/cairo/
|
|
|
|
|
2009-12-07 15:00:58 +00:00
|
|
|
# There are no source releases for ocaml-cairo > 1.0.0. To get the
|
|
|
|
# source matching this you have to do:
|
|
|
|
#
|
|
|
|
# git clone git://anongit.freedesktop.org/cairo-ocaml
|
|
|
|
# cd cairo-ocaml
|
|
|
|
# git archive --prefix=ocaml-cairo-%{version}/ %{commit} | \
|
|
|
|
# gzip > ../ocaml-cairo-1.2.0-git%{commit}.tar.gz
|
2012-01-06 18:04:19 +00:00
|
|
|
%global commit 08b40192975
|
2008-03-01 19:03:48 +00:00
|
|
|
|
|
|
|
Name: ocaml-cairo
|
2009-10-08 11:51:35 +00:00
|
|
|
Epoch: 1
|
2009-12-07 15:00:58 +00:00
|
|
|
Version: 1.2.0
|
2013-09-14 13:49:01 +00:00
|
|
|
Release: 0.11.git%{commit}%{?dist}
|
2008-03-01 19:03:48 +00:00
|
|
|
Summary: OCaml library for accessing cairo graphics
|
|
|
|
|
2009-10-08 11:51:35 +00:00
|
|
|
ExcludeArch: sparc64 s390 s390x
|
|
|
|
|
2008-03-01 19:03:48 +00:00
|
|
|
License: LGPLv2
|
|
|
|
URL: http://cairographics.org/cairo-ocaml/
|
2009-10-08 11:51:35 +00:00
|
|
|
|
2009-12-07 15:00:58 +00:00
|
|
|
Source0: ocaml-cairo-%{version}-git%{commit}.tar.gz
|
2008-03-01 19:03:48 +00:00
|
|
|
Source1: ocaml-cairo-META
|
|
|
|
|
2013-09-14 13:49:01 +00:00
|
|
|
Patch1: ocaml-cairo-1.2.0-enable-ocamlopt-debug.patch
|
|
|
|
|
2008-03-01 19:03:48 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.0
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-lablgtk-devel
|
2009-12-07 15:00:58 +00:00
|
|
|
BuildRequires: cairo-devel >= 1.2.0
|
2008-03-01 19:03:48 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cairo is a multi-platform library providing anti-aliased vector-based
|
|
|
|
rendering for multiple target backends. Paths consist of line segments
|
|
|
|
and cubic splines and can be rendered at any width with various join
|
|
|
|
and cap styles. All colors may be specified with optional translucence
|
|
|
|
(opacity/alpha) and combined using the extended Porter/Duff
|
|
|
|
compositing algebra as found in the X Render Extension.
|
|
|
|
|
|
|
|
Cairo exports a stateful rendering API similar in spirit to the path
|
|
|
|
construction, text, and painting operators of PostScript, (with the
|
|
|
|
significant addition of translucence in the imaging model). When
|
|
|
|
complete, the API is intended to support the complete imaging model of
|
|
|
|
PDF 1.4.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2009-10-08 11:51:35 +00:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2009-11-26 09:39:41 +00:00
|
|
|
Requires: ocaml-lablgtk-devel
|
2008-03-01 19:03:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-12-07 15:00:58 +00:00
|
|
|
%setup -q
|
2009-10-08 11:51:35 +00:00
|
|
|
|
2013-09-14 13:49:01 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
2008-03-01 19:03:48 +00:00
|
|
|
aclocal -I support
|
|
|
|
autoconf
|
|
|
|
./configure --libdir=%{_libdir}
|
|
|
|
cp %{SOURCE1} META
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
make doc
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
|
2008-12-09 11:43:17 +00:00
|
|
|
ocamlfind install cairo src/{*.mli,*.cmi,*.cma,*.a,*.cmxa,*.cmx,dll*.so} META
|
2008-03-01 19:03:48 +00:00
|
|
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dll*.so
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/ocaml/cairo
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/cairo/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/cairo/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/cairo/*.cmx
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/cairo/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc COPYING ChangeLog README doc/html
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/cairo/*.a
|
|
|
|
%{_libdir}/ocaml/cairo/*.cmxa
|
|
|
|
%{_libdir}/ocaml/cairo/*.cmx
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/cairo/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-09-14 13:49:01 +00:00
|
|
|
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1:1.2.0-0.11.git08b40192975
|
|
|
|
- Rebuild for OCaml 4.01.0.
|
|
|
|
- Enable debuginfo.
|
|
|
|
- Modernize the spec file.
|
|
|
|
|
2013-08-03 14:47:54 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.0-0.10.git08b40192975
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 08:55:02 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.0-0.9.git08b40192975
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-17 15:56:45 +00:00
|
|
|
* Wed Oct 17 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.2.0-0.8.git08b40192975
|
|
|
|
- Rebuild for OCaml 4.00.1.
|
|
|
|
|
2012-07-20 05:50:50 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.0-0.7.git08b40192975
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-08 15:38:43 +00:00
|
|
|
* Fri Jun 8 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.2.0-0.6.git08b40192975
|
|
|
|
- Rebuild for OCaml 4.00.0.
|
|
|
|
|
2012-01-06 18:04:19 +00:00
|
|
|
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 1:1.2.0-0.5.git08b40192975
|
|
|
|
- Update to git commit 08b40192975 (dated 2011-09-11).
|
|
|
|
- Rebuild for OCaml 3.12.1.
|
|
|
|
|
2011-02-09 01:38:41 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.0-0.4.gita5c5ee9f
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-05 16:09:04 +00:00
|
|
|
* Wed Jan 5 2011 Orion Poplawski <orion@cora.nwra.com> - 1:1.2.0-0.3.gita5c5ee9f
|
|
|
|
- Rebuild for OCaml 3.12
|
|
|
|
|
2009-12-30 13:47:49 +00:00
|
|
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1:1.2.0-0.2.gita5c5ee9f
|
|
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
|
2009-12-07 15:00:58 +00:00
|
|
|
* Mon Dec 7 2009 Richard W.M. Jones <rjones@redhat.com> - 1:1.2.0-0.1.gita5c5ee9f
|
|
|
|
- So we are wrong, version numbers did NOT roll backwards.
|
|
|
|
- Revert to current git head (a5c5ee9f) which is a pre-release of 1.2.0
|
|
|
|
(RHBZ#541542).
|
|
|
|
- Replace %%define with %%global.
|
|
|
|
- Patch0 is now upstream.
|
|
|
|
- Checked package with rpmlint - no problems.
|
|
|
|
|
2009-11-26 09:39:41 +00:00
|
|
|
* Thu Nov 26 2009 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.0-2
|
|
|
|
- ocaml-cairo-devel requires ocaml-lablgtk-devel (RHBZ#541427).
|
|
|
|
|
2009-10-08 11:51:35 +00:00
|
|
|
* Thu Oct 8 2009 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.0-1
|
|
|
|
- New upstream version 1.0.0.
|
|
|
|
- Yes, version number really did roll backwards, so now we're using Epoch.
|
|
|
|
- Patch for compatibility with OCaml 3.11.1 (renamed bigarray structs).
|
|
|
|
|
2009-09-29 15:16:06 +00:00
|
|
|
* Tue Sep 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-11
|
|
|
|
- Force rebuild against newer lablgtk.
|
|
|
|
|
2009-07-25 19:51:49 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.cvs20080301-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-23 09:05:28 +00:00
|
|
|
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-9
|
|
|
|
- Rebuild for OCaml 3.11.1
|
|
|
|
|
2009-04-16 09:06:01 +00:00
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
2009-02-26 06:48:22 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.cvs20080301-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-07 09:25:18 +00:00
|
|
|
* Sat Feb 7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-7
|
|
|
|
- Rebuild against updated lablgtk.
|
|
|
|
|
2008-12-09 11:43:17 +00:00
|
|
|
* Tue Dec 9 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-6
|
|
|
|
- Include cairo.a and cairo_lablgtk.a (fixes BZ 475349).
|
|
|
|
|
2008-12-04 12:40:29 +00:00
|
|
|
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-5
|
|
|
|
- Rebuild.
|
|
|
|
|
2008-11-24 10:49:32 +00:00
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-4
|
|
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
|
2008-04-23 16:17:01 +00:00
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-3
|
|
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
|
2008-03-01 19:06:48 +00:00
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-2
|
2008-03-01 19:03:48 +00:00
|
|
|
- Upgrade to latest CVS.
|
|
|
|
- Include instructions on how check out versions from CVS.
|
2008-03-01 19:06:48 +00:00
|
|
|
- Build for ppc64.
|
2008-03-01 19:03:48 +00:00
|
|
|
|
|
|
|
* Fri Feb 29 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080224-2
|
|
|
|
- Added BRs for automake and gtk2-devel.
|
|
|
|
|
|
|
|
* Sun Feb 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080224-1
|
|
|
|
- Initial RPM release.
|