[11618] | 1 | %define pkg_name cpdf |
---|
[12245] | 2 | %define pkg_version 2.3 |
---|
| 3 | # %define patchlevel 1 |
---|
[11618] | 4 | %define pkg_release 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | Summary: Command Line Tools allow you to manipulate existing PDF files |
---|
| 7 | Name: %{pkg_name} |
---|
[12245] | 8 | Version: %{pkg_version} |
---|
| 9 | # Version: %{pkg_version}.p%{patchlevel} |
---|
[11618] | 10 | Release: %{pkg_release} |
---|
| 11 | |
---|
| 12 | License: Coherent Graphics Ltd Non-Commercial Use License Agreement |
---|
| 13 | Group: Applications/Publishing |
---|
| 14 | URL: http://community.coherentpdf.com/ |
---|
| 15 | |
---|
[12245] | 16 | Source0: cpdf-source-%{pkg_version}.tar.gz |
---|
| 17 | # Source0: cpdf-source-%{pkg_version}-patchlevel%{patchlevel}.tar.gz |
---|
[11618] | 18 | |
---|
| 19 | BuildRequires: readline-devel |
---|
| 20 | BuildRequires: ocaml |
---|
| 21 | BuildRequires: ocaml-findlib |
---|
[12245] | 22 | BuildRequires: ocaml-camlpdf = %{pkg_version} |
---|
[11618] | 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | The Coherent PDF Command Line Tools allow you to manipulate |
---|
| 30 | existing PDF files in a variety of ways. |
---|
| 31 | For example: |
---|
| 32 | - Merge PDF files together, or split them apart Encrypt and decrypt |
---|
| 33 | - Scale, crop and rotate pages |
---|
| 34 | - Read and set document info and metadata |
---|
| 35 | - Copy, add or remove bookmarks |
---|
| 36 | - Stamp logos, text, dates, page numbers |
---|
| 37 | - Add or remove attachments |
---|
| 38 | - Losslessly compress PDF files |
---|
| 39 | |
---|
| 40 | [caution] |
---|
| 41 | Now we're releasing them for free, under a special not-for-commercial-use |
---|
| 42 | license If you like the tools and want to use them commercially, |
---|
| 43 | or need support, licenses are available from Coherent Graphics Ltd. |
---|
| 44 | #' |
---|
| 45 | |
---|
| 46 | %description -l ja |
---|
| 47 | Coherent PDF は PDF ファイルを操作するためのコマンドラインツールです。 |
---|
| 48 | |
---|
| 49 | [注意1] |
---|
| 50 | このアプリケーションは「非商用に限り」フリーで使用できます。 |
---|
| 51 | 詳しくは LICENCE を参照して下さい。 |
---|
| 52 | |
---|
| 53 | %package libs |
---|
| 54 | Summary: OCaml library for Coherent PDF |
---|
| 55 | Group: Development/Languages |
---|
| 56 | Requires: ocaml |
---|
| 57 | Requires: ocaml-findlib |
---|
[12245] | 58 | Requires: ocaml-camlpdf = %{pkg_version} |
---|
[11618] | 59 | |
---|
| 60 | %description libs |
---|
| 61 | %{summary} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[12245] | 66 | %setup -q -n %{name}-source-%{pkg_version} |
---|
| 67 | # %setup -q -n %{name}-source-%{pkg_version}-patchlevel%{patchlevel} |
---|
[11618] | 68 | |
---|
| 69 | %build |
---|
| 70 | LDFLAGS="-ltinfo" %{__make} |
---|
| 71 | |
---|
| 72 | %install |
---|
| 73 | # for binary |
---|
| 74 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 75 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
| 76 | %{__cp} cpdf ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 77 | %{__cp} cpdf.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
| 78 | |
---|
| 79 | # for libs |
---|
| 80 | INSTALLDIR=${RPM_BUILD_ROOT}%{_libdir}/ocaml |
---|
| 81 | %{__mkdir_p} ${INSTALLDIR} |
---|
| 82 | %{__make} install \ |
---|
| 83 | OCAMLFIND_INSTFLAGS="-destdir ${INSTALLDIR}" |
---|
| 84 | |
---|
| 85 | %clean |
---|
| 86 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 87 | |
---|
| 88 | %post libs |
---|
| 89 | echo "%{_libdir}/ocaml/%{pkg_name}" >> %{_libdir}/ocaml/ld.conf |
---|
| 90 | |
---|
| 91 | %preun libs |
---|
| 92 | %{__perl} -pi -e "s|^%{_libdir}/ocaml/%{pkg_name}\n$||" \ |
---|
| 93 | %{_libdir}/ocaml/ld.conf |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %files |
---|
| 97 | %doc doc/cpdf/html |
---|
| 98 | %doc Changes LICENSE cpdfmanual.pdf |
---|
| 99 | %{_bindir}/cpdf |
---|
| 100 | %{_mandir}/man1/* |
---|
| 101 | |
---|
| 102 | %files libs |
---|
| 103 | %{_libdir}/ocaml/cpdf |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %changelog |
---|
[12245] | 107 | * Sun Oct 06 2019 Toshiaki Ara <ara_t@384.jp> 2.3-1 |
---|
| 108 | - update to 2.3 |
---|
| 109 | |
---|
[11618] | 110 | * Sun Apr 15 2018 Toshiaki Ara <ara_t@384.jp> 2.2-pachlevel1 |
---|
| 111 | - initial build for Vine Linux |
---|
| 112 | |
---|