source: projects/specs/trunk/o/ocaml-camlpdf/ocaml-camlpdf-vl.spec @ 12244

Revision 12244, 1.5 KB checked in by ara_t, 4 years ago (diff)

ocaml-camlpdf: update to 2.3

Line 
1%define pkg_name    camlpdf
2%define pkg_version 2.3
3# %define patchlevel  1
4%define pkg_release 1%{?_dist_release}
5
6Summary: OCaml library for reading, writing and modifying PDF files
7Name:    ocaml-%{pkg_name}
8Version: %{pkg_version}
9# Version: %{pkg_version}.p%{patchlevel}
10Release: %{pkg_release}
11
12License: LGPL v2.1+
13Group:   Development/Languages
14URL:     https://github.com/johnwhitington/camlpdf
15
16Source0: camlpdf-%{pkg_version}.tar.gz
17# Source0: camlpdf-%{pkg_version}-patchlevel%{patchlevel}.tar.gz
18
19BuildRequires: ocaml
20BuildRequires: ocaml-findlib
21
22Requires: ocaml
23
24Vendor: Project Vine
25Distribution: Vine Linux
26
27
28%description
29OCaml library for reading, writing and modifying PDF files
30
31%prep
32%{__rm} -rf ${RPM_BUILD_ROOT}
33%setup -q -n %{pkg_name}-%{pkg_version}
34# %setup -q -n %{pkg_name}-%{pkg_version}-patchlevel%{patchlevel}
35
36%build
37%{__make}
38
39%install
40INSTALLDIR=${RPM_BUILD_ROOT}%{_libdir}/ocaml
41MYCONF=my.conf
42touch ${MYCONF}
43%{__mkdir_p} ${INSTALLDIR}
44
45%{__make} install \
46 OCAMLFIND_INSTFLAGS="-destdir ${INSTALLDIR} -ldconf ${MYCONF}"
47
48%clean
49%{__rm} -rf ${RPM_BUILD_ROOT}
50
51%post
52echo "%{_libdir}/ocaml/%{pkg_name}" >> %{_libdir}/ocaml/ld.conf
53
54%preun
55%{__perl} -pi -e "s|^%{_libdir}/ocaml/%{pkg_name}\n$||" \
56 %{_libdir}/ocaml/ld.conf
57
58
59%files
60%doc doc/camlpdf/html examples
61%doc Changes LICENSE README.md introduction_to_camlpdf.pdf
62%{_libdir}/ocaml/camlpdf
63
64
65%changelog
66* Sun Oct 06 2019 Toshiaki Ara <ara_t@384.jp> 2.3-1
67- update to 2.3
68
69* Sun Apr 15 2018 Toshiaki Ara <ara_t@384.jp> 2.2.p1
70- initial build for Vine Linux
71
Note: See TracBrowser for help on using the repository browser.