- Yes, version number really did roll backwards, so now we're using Epoch. - Patch for compatibility with OCaml 3.11.1 (renamed bigarray structs).
164 lines
5.0 KiB
RPMSpec
164 lines
5.0 KiB
RPMSpec
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
%define debug_package %{nil}
|
|
|
|
Name: ocaml-cairo
|
|
Epoch: 1
|
|
Version: 1.0.0
|
|
Release: 1%{?dist}
|
|
Summary: OCaml library for accessing cairo graphics
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
ExcludeArch: sparc64 s390 s390x
|
|
|
|
Group: Development/Libraries
|
|
License: LGPLv2
|
|
URL: http://cairographics.org/cairo-ocaml/
|
|
|
|
Source0: cairo-ocaml-%{version}.tar.bz2
|
|
Source1: ocaml-cairo-META
|
|
Patch0: cairo-ocaml-1.0.0-bigarray.patch
|
|
|
|
BuildRequires: ocaml >= 3.10.0
|
|
BuildRequires: ocaml-findlib-devel
|
|
BuildRequires: ocaml-ocamldoc
|
|
BuildRequires: ocaml-lablgtk-devel
|
|
BuildRequires: cairo-devel
|
|
BuildRequires: automake
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: chrpath
|
|
|
|
%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
|
|
|
|
|
|
%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}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and signature files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q -n cairo-ocaml-%{version}
|
|
%patch0 -p1
|
|
|
|
aclocal -I support
|
|
autoconf
|
|
./configure --libdir=%{_libdir}
|
|
cp %{SOURCE1} META
|
|
|
|
|
|
%build
|
|
make
|
|
make doc
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
ocamlfind install cairo src/{*.mli,*.cmi,*.cma,*.a,*.cmxa,*.cmx,dll*.so} META
|
|
|
|
strip $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dll*.so
|
|
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dll*.so
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%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
|
|
%defattr(-,root,root,-)
|
|
%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
|
|
* 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).
|
|
|
|
* Tue Sep 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-11
|
|
- Force rebuild against newer lablgtk.
|
|
|
|
* 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
|
|
|
|
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-9
|
|
- Rebuild for OCaml 3.11.1
|
|
|
|
* 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)
|
|
|
|
* 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
|
|
|
|
* Sat Feb 7 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-7
|
|
- Rebuild against updated lablgtk.
|
|
|
|
* 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).
|
|
|
|
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-5
|
|
- Rebuild.
|
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-4
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-3
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.0.cvs20080301-2
|
|
- Upgrade to latest CVS.
|
|
- Include instructions on how check out versions from CVS.
|
|
- Build for ppc64.
|
|
|
|
* 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.
|