177 lines
5.2 KiB
RPMSpec
177 lines
5.2 KiB
RPMSpec
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
%define debug_package %{nil}
|
|
%define _default_patch_fuzz 2
|
|
|
|
Name: ocaml-camlimages
|
|
Version: 3.0.1
|
|
Release: 7%{?dist}
|
|
Summary: OCaml image processing library
|
|
|
|
Group: Development/Libraries
|
|
License: LGPLv2 with exceptions
|
|
URL: http://gallium.inria.fr/camlimages/
|
|
Source0: http://gallium.inria.fr/camlimages/camlimages-%{version}.tar.gz
|
|
Source1: camlimages-2.2.0-htmlref.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Patch0: camlimages-3.0.1-display-module.patch
|
|
|
|
BuildRequires: ocaml >= 3.10.1
|
|
BuildRequires: ocaml-lablgtk-devel
|
|
BuildRequires: ocaml-x11
|
|
BuildRequires: lablgtk, libpng-devel, libjpeg-devel
|
|
BuildRequires: libXpm-devel, ghostscript-devel, freetype-devel
|
|
BuildRequires: giflib-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: libtool, automake, autoconf
|
|
|
|
%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
|
|
CamlImages is an image processing library for Objective CAML, which provides:
|
|
basic functions for image processing and loading/saving, various image file
|
|
formats (hence providing a translation facility from format to format),
|
|
and an interface with the Caml graphics library allows to display images
|
|
in the Graphics module screen and to mix them with Caml drawings
|
|
|
|
In addition, the library can handle huge images that cannot be (or can hardly
|
|
be) stored into the main memory (the library then automatically creates swap
|
|
files and escapes them to reduce the memory usage).
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for camlimages
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
The camlimages-devel package provides libraries and headers for
|
|
developing applications using camlimages
|
|
|
|
Includes documentation provided by ocamldoc
|
|
|
|
|
|
%prep
|
|
%setup -q -n camlimages-%{version} -a 1
|
|
|
|
# Gdk.Display submodule clashes with the Display module in
|
|
# the examples/liv directory, so rename it:
|
|
%patch0 -p1
|
|
aclocal -I .
|
|
automake
|
|
autoconf
|
|
mv examples/liv/display.ml examples/liv/livdisplay.ml
|
|
|
|
|
|
%build
|
|
%configure
|
|
make
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install ocamlsitelibdir=%{_libdir}/ocaml/camlimages DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
strip $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllcamlimages.so
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc INSTALL README
|
|
%{_libdir}/ocaml/camlimages
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
%if %opt
|
|
%exclude %{_libdir}/ocaml/camlimages/*.a
|
|
%exclude %{_libdir}/ocaml/camlimages/*.cmxa
|
|
%endif
|
|
%exclude %{_libdir}/ocaml/camlimages/*.mli
|
|
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc doc/*.{html,jpg}
|
|
%if %opt
|
|
%{_libdir}/ocaml/camlimages/*.a
|
|
%{_libdir}/ocaml/camlimages/*.cmxa
|
|
%endif
|
|
%{_libdir}/ocaml/camlimages/*.mli
|
|
|
|
|
|
%changelog
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Feb 7 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-6
|
|
- Rebuild against updated lablgtk.
|
|
|
|
* Fri Dec 5 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-5
|
|
- Rebuild.
|
|
|
|
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-4
|
|
- Rebuild.
|
|
|
|
* Mon Nov 3 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-3
|
|
- +BR gtk2-devel.
|
|
- +BR ocaml-x11.
|
|
|
|
* Mon Nov 3 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-1
|
|
- Home page moved (fixes rhbz 468158).
|
|
- New upstream version 3.0.1 and multiple build fixes for this.
|
|
- License is really LGPLv2 with the OCaml linking exception.
|
|
- Removed the DESTDIR patch.
|
|
- Build tiff support.
|
|
- Run it through rpmlint and fix all problems.
|
|
|
|
* Thu Aug 28 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-13
|
|
- Rebuild with patch fuzz.
|
|
|
|
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.0-12
|
|
- fix license tag
|
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-11
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> 2.2.0-10
|
|
- Rebuild for ppc64.
|
|
|
|
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> 2.2.0-9
|
|
- Rebuild for OCaml 3.10.1
|
|
- Fix paths to conform to packaging policy.
|
|
|
|
* Wed May 09 2007 Nigel Jones <dev@nigelj.com> 2.2.0-8
|
|
- Exclude ppc64 builds due to missing ocaml
|
|
|
|
* Fri May 04 2007 Nigel Jones <dev@nigelj.com> 2.2.0-7
|
|
- Change to Makefile patch to move .so files to stublibs
|
|
- Rename to ocaml-camlimages
|
|
- Other changes per review
|
|
|
|
* Thu May 03 2007 Nigel Jones <dev@nigelj.com> 2.2.0-6
|
|
- Include .*a files just to make sure
|
|
|
|
* Thu May 03 2007 Nigel Jones <dev@nigelj.com> 2.2.0-5
|
|
- Revert -4 changes
|
|
- Remove excludedirs patch, replace with a sed
|
|
- Provide html documentation generated from running ocaml-ocamldoc
|
|
|
|
* Thu Apr 26 2007 Nigel Jones <dev@nigelj.com> 2.2.0-4
|
|
- Add Provides: camlimages-static, and LICENSE to -devel docs
|
|
|
|
* Thu Apr 12 2007 Nigel Jones <dev@nigelj.com> 2.2.0-3
|
|
- Remove .a & .o files
|
|
|
|
* Wed Apr 11 2007 Nigel Jones <dev@nigelj.com> 2.2.0-2
|
|
- Add missing dependencies
|
|
|
|
* Tue Apr 10 2007 Nigel Jones <dev@nigelj.com> 2.2.0-1
|
|
- Initial spec file
|