Revision 12244,
1.5 KB
checked in by ara_t, 5 years ago
(diff) |
ocaml-camlpdf: update to 2.3
|
Rev | Line | |
---|
[11617] | 1 | %define pkg_name camlpdf |
---|
[12244] | 2 | %define pkg_version 2.3 |
---|
| 3 | # %define patchlevel 1 |
---|
[11617] | 4 | %define pkg_release 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | Summary: OCaml library for reading, writing and modifying PDF files |
---|
| 7 | Name: ocaml-%{pkg_name} |
---|
[12244] | 8 | Version: %{pkg_version} |
---|
| 9 | # Version: %{pkg_version}.p%{patchlevel} |
---|
[11617] | 10 | Release: %{pkg_release} |
---|
| 11 | |
---|
| 12 | License: LGPL v2.1+ |
---|
| 13 | Group: Development/Languages |
---|
| 14 | URL: https://github.com/johnwhitington/camlpdf |
---|
| 15 | |
---|
[12244] | 16 | Source0: camlpdf-%{pkg_version}.tar.gz |
---|
| 17 | # Source0: camlpdf-%{pkg_version}-patchlevel%{patchlevel}.tar.gz |
---|
[11617] | 18 | |
---|
| 19 | BuildRequires: ocaml |
---|
| 20 | BuildRequires: ocaml-findlib |
---|
| 21 | |
---|
| 22 | Requires: ocaml |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | OCaml library for reading, writing and modifying PDF files |
---|
| 30 | |
---|
| 31 | %prep |
---|
| 32 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[12244] | 33 | %setup -q -n %{pkg_name}-%{pkg_version} |
---|
| 34 | # %setup -q -n %{pkg_name}-%{pkg_version}-patchlevel%{patchlevel} |
---|
[11617] | 35 | |
---|
| 36 | %build |
---|
| 37 | %{__make} |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | INSTALLDIR=${RPM_BUILD_ROOT}%{_libdir}/ocaml |
---|
| 41 | MYCONF=my.conf |
---|
| 42 | touch ${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 |
---|
| 52 | echo "%{_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 |
---|
[12244] | 66 | * Sun Oct 06 2019 Toshiaki Ara <ara_t@384.jp> 2.3-1 |
---|
| 67 | - update to 2.3 |
---|
| 68 | |
---|
[11617] | 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.