Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > d8f9cbb548e6af917cb3542a115c2224 > files > 4

ocaml-camlpdf-0.5-2.mga2.src.rpm

Name:           ocaml-camlpdf
Version:        0.5
Release:        %mkrel 2
Summary:        CamlPDF allows you to read, write, and manipulate PDF data with OCaml
Group:          Development/Other
License:        BSD
URL:            http://freecode.com/projects/camlpdf
Source0:        http://www.coherentpdf.com/camlpdf-%{version}.tar.bz2
Source1:        camlpdf-META.in
Patch0:         camlpdf-0.5-makefile-arch-cflags.patch
BuildRequires:  ocaml
BuildRequires:  zlib-devel
BuildRequires:  tetex-latex
BuildRequires:  gzip

# camlpdf has a runtime library compiled with custom: it requires the zlib
# libraries to be installed
Requires:  zlib-devel

%description
This is CamlPDF, an OCaml library for reading, writing and manipulating Adobe
portable document files. 
CamlPDF consists of a set of low level modules for representing, reading and
writing the basic structure of PDF, together with an initial attempt at a
higher level API.

Please advise of the following:
  * Files which cannot be read or written, or any other runtime error;
  * Instances of particularly slow or resource-hungry scenarios.

Please be aware that PDF is a highly complex format and that many files are
malformed. We will incorporate support for malformed files if Acrobat reads
them.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%prep
%setup -q -n camlpdf-%{version}
%patch0 -p 0
cp %{SOURCE1} META.in
# prevent erasing it if it appears in a futur version
if [ -f META ] ; then exit 1; fi
sed -e 's/@VERSION@/%{version}/g' < META.in > META
echo "print_int (Sys.word_size)" > word_size.ml

%build
make
make htdoc
make psdoc
gzip --best doc/camlpdf/latex/doc.ps

mkdir -p examples
cp pdfhello.ml pdfdecomp.ml pdfmerge.ml pdfdraft.ml pdftest.ml  examples/
cp examplesmake  examples/Makefile
cp OCamlMakefile  examples/

%install
rm -rf %{buildroot}
%define destdir %{buildroot}/%{_libdir}/ocaml/camlpdf
%define destdll %{buildroot}/%{_libdir}/ocaml/stublibs

mkdir -p %{destdir}/
mkdir -p %{destdll}/

install -m 0644 *.cma *.cmxa *.a *.cmi *.mli %{destdir}/
install -m 0644 META %{destdir}/
install -m 0755 *.so %{destdll}/

%files
%doc LICENCE
%dir %{_libdir}/ocaml/camlpdf
%{_libdir}/ocaml/camlpdf/META
%{_libdir}/ocaml/camlpdf/*.cma
%{_libdir}/ocaml/camlpdf/*.cmi
%{_libdir}/ocaml/stublibs/*.so

%files devel
%doc LICENCE README
%doc examples/
%doc doc/camlpdf/html/
%doc doc/camlpdf/latex/*.{dvi,ps.gz}
%{_libdir}/ocaml/camlpdf/*.a
%{_libdir}/ocaml/camlpdf/*.cmxa
%{_libdir}/ocaml/camlpdf/*.mli


%changelog

* Mon Apr 09 2012 malo <malo> 0.5-2.mga2
+ Revision: 229847
- adding missing requires to zlib-devel

* Fri Mar 23 2012 blue_prawn <blue_prawn> 0.5-1.mga2
+ Revision: 225893
- imported from Mandriva


* Mon Apr 26 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 539364
- incremented mkrel

* Mon Apr 26 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 538809
- prevent erasing a futur META file

* Mon Apr 26 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 538808
- setting arch correctly

* Mon Apr 26 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 538806
- clear -m32 option from CFLAGS

* Wed Mar 17 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 522778
- update to new version 0.5

* Sun Jun 28 2009 Guillaume Rousse <guillomovitch@mandriva.org>
+ Revision: 390239
- rebuild

* Wed Feb 04 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 337521
- updated version

* Tue Jan 27 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 334521
- summary-ended-with-dot

* Sun Jan 18 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 330979
- import ocaml-camlpdf