Browse Source

ocaml-camlpdf: initial build

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11617 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 6 years ago
parent
commit
a8302936cc
1 changed files with 67 additions and 0 deletions
  1. 67 0
      o/ocaml-camlpdf/ocaml-camlpdf-vl.spec

+ 67 - 0
o/ocaml-camlpdf/ocaml-camlpdf-vl.spec

@@ -0,0 +1,67 @@
+%define pkg_name    camlpdf
+%define pkg_version 2.2
+%define patchlevel  1
+%define pkg_release 1%{?_dist_release}
+
+Summary: OCaml library for reading, writing and modifying PDF files
+Name:    ocaml-%{pkg_name}
+Version: %{pkg_version}.p%{patchlevel}
+Release: %{pkg_release}
+
+License: LGPL v2.1+
+Group:   Development/Languages
+URL:     https://github.com/johnwhitington/camlpdf
+
+Source0: camlpdf-%{pkg_version}-patchlevel%{patchlevel}.tar.gz
+# Source0: camlpdf-%{pkg_version}.tar.gz
+
+BuildRequires: ocaml
+BuildRequires: ocaml-findlib
+
+Requires: ocaml
+
+Vendor: Project Vine
+Distribution: Vine Linux
+
+
+%description
+OCaml library for reading, writing and modifying PDF files
+
+%prep
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%setup -q -n %{pkg_name}-%{pkg_version}-patchlevel%{patchlevel}
+# %setup -q
+
+%build
+%{__make}
+
+%install
+INSTALLDIR=${RPM_BUILD_ROOT}%{_libdir}/ocaml
+MYCONF=my.conf
+touch ${MYCONF}
+%{__mkdir_p} ${INSTALLDIR}
+
+%{__make} install \
+ OCAMLFIND_INSTFLAGS="-destdir ${INSTALLDIR} -ldconf ${MYCONF}"
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%post
+echo "%{_libdir}/ocaml/%{pkg_name}" >> %{_libdir}/ocaml/ld.conf
+
+%preun
+%{__perl} -pi -e "s|^%{_libdir}/ocaml/%{pkg_name}\n$||" \
+ %{_libdir}/ocaml/ld.conf
+
+
+%files
+%doc doc/camlpdf/html examples
+%doc Changes LICENSE README.md introduction_to_camlpdf.pdf
+%{_libdir}/ocaml/camlpdf
+
+
+%changelog
+* Sun Apr 15 2018 Toshiaki Ara <ara_t@384.jp> 2.2.p1
+- initial build for Vine Linux
+