]> git.pld-linux.org Git - packages/ocaml-gapi-ocaml.git/blame - ocaml-gapi-ocaml.spec
- rebuild with ocaml 4.02
[packages/ocaml-gapi-ocaml.git] / ocaml-gapi-ocaml.spec
CommitLineData
dafc9a18
ER
1#
2# Conditional build:
3%bcond_without opt # build opt
4
a2e75bf0 5%define pkgname gapi-ocaml
dafc9a18
ER
6%define debug_package %{nil}
7Summary: Google Data Protocol (GData) client library
8Name: ocaml-%{pkgname}
4fd6bf6d 9Version: 0.2.4
b838e05d 10Release: 2
dafc9a18
ER
11License: MIT
12Group: Libraries
4fd6bf6d
JR
13Source0: https://forge.ocamlcore.org/frs/download.php/1448/%{pkgname}-%{version}.tar.gz
14# Source0-md5: 6396613e70d8c768e81295ed677cc204
dafc9a18
ER
15URL: http://gapi-ocaml.forge.ocamlcore.org/
16BuildRequires: cppo >= 0.9.3
17BuildRequires: ocaml >= 3.04-7
18BuildRequires: ocaml-biniou-devel >= 1.0.6
19BuildRequires: ocaml-cryptokit-devel >= 1.9
a655c1bd 20BuildRequires: ocaml-curl-devel >= 0.6.0
dafc9a18
ER
21BuildRequires: ocaml-easy-format-devel >= 1.0.1
22BuildRequires: ocaml-extlib-devel >= 1.5.4
23BuildRequires: ocaml-findlib >= 1.4
24BuildRequires: ocaml-net-netstring-devel >= 3.6
25#BuildRequires: ocaml-net-netstring-devel >= 3.7.3
26BuildRequires: ocaml-xmlm-devel >= 1.1.1
27BuildRequires: ocaml-yojson-devel >= 1.1.6
28%requires_eq ocaml-runtime
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32gapi-ocaml is a simple, unofficial, OCaml client for Google Services.
33The project is hosted on github, where you can find the latest
34development version, and on the OCaml forge where you can find
35releases. Reference documentation can be found here.
36
37%description -l pl.UTF-8
38Pakiet ten zawiera binaria potrzebne do uruchamiania programów
39używających tej biblioteki.
40
41%package devel
42Summary: Google Data Protocol (GData) client library - development part
43Summary(pl.UTF-8): Wiązania gapi dla OCamla - cześć programistyczna
44Group: Development/Libraries
45%requires_eq ocaml
a726fef6
JR
46Requires: ocaml-biniou-devel >= 1.0.6
47Requires: ocaml-cryptokit-devel >= 1.9
48Requires: ocaml-curl-devel >= 0.6.0
49Requires: ocaml-easy-format-devel >= 1.0.1
50Requires: ocaml-extlib-devel >= 1.5.4
51Requires: ocaml-net-netstring-devel >= 3.6
52#Requires: ocaml-net-netstring-devel >= 3.7.3
53Requires: ocaml-xmlm-devel >= 1.1.1
54Requires: ocaml-yojson-devel >= 1.1.6
dafc9a18
ER
55
56%description devel
57This package contains files needed to develop OCaml programs using
58this library.
59
60%description devel -l pl.UTF-8
61Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
62tej biblioteki.
63
64%prep
a2e75bf0 65%setup -q -n %{pkgname}-%{version}
dafc9a18
ER
66
67%build
68ocaml setup.ml -configure \
69 --destdir $RPM_BUILD_ROOT
70ocaml setup.ml -build
71
72%install
73rm -rf $RPM_BUILD_ROOT
74export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
75install -d $OCAMLFIND_DESTDIR
76ocaml setup.ml -install
77
5c44f6a8 78# move to dir pld ocamlfind looks
a2e75bf0
ER
79install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{pkgname}
80mv $OCAMLFIND_DESTDIR/%{pkgname}/META \
81 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{pkgname}
82cat <<EOF >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{pkgname}/META
83directory="+%{pkgname}"
5c44f6a8
ER
84EOF
85
dafc9a18 86# no standard way of packaging .mli docs in pld. just drop
a2e75bf0 87%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/%{pkgname}/*.mli
dafc9a18
ER
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files devel
93%defattr(644,root,root,755)
94%doc LICENSE
a2e75bf0
ER
95%dir %{_libdir}/ocaml/%{pkgname}
96%{_libdir}/ocaml/%{pkgname}/*.a
97%{_libdir}/ocaml/%{pkgname}/*.cm[ixa]*
98%dir %{_libdir}/ocaml/site-lib/%{pkgname}
99%{_libdir}/ocaml/site-lib/%{pkgname}/META
This page took 0.082653 seconds and 4 git commands to generate.