[1717] | 1 | Name: pdftk |
---|
| 2 | Summary: pdftk - the pdf toolkit |
---|
[521] | 3 | Summary(ja): PDF 操作ツールキット |
---|
| 4 | Version: 1.41 |
---|
[1717] | 5 | Release: 2%{?_dist_release} |
---|
| 6 | |
---|
| 7 | Group: Applications/Publishing |
---|
| 8 | License: GPLv2+ |
---|
| 9 | URL: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ |
---|
| 10 | |
---|
[521] | 11 | Source0: %{name}-%{version}.tar.bz2 |
---|
[1717] | 12 | |
---|
| 13 | Patch0: pdftk-1.41-build_with_gcc44.patch |
---|
| 14 | Patch1: pdftk-1.41-makefile.patch |
---|
| 15 | Patch2: pdftk-1.41-no_embedded_libs.patch |
---|
| 16 | Patch3: pdftk-1.41-calendar.patch |
---|
| 17 | |
---|
[521] | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1717] | 19 | BuildRequires: gcc-java libgcj-devel |
---|
[521] | 20 | Requires: libgcj |
---|
| 21 | |
---|
[1717] | 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | |
---|
[521] | 25 | %description |
---|
| 26 | If PDF is electronic paper, then pdftk is an electronic staple-remover, |
---|
| 27 | hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple |
---|
| 28 | tool for doing everyday things with PDF documents. Keep one in the top drawer |
---|
| 29 | of your desktop and use it to: |
---|
| 30 | |
---|
| 31 | * Merge PDF Documents |
---|
| 32 | * Split PDF Pages into a New Document |
---|
| 33 | * Decrypt Input as Necessary (Password Required) |
---|
| 34 | * Encrypt Output as Desired |
---|
[1717] | 35 | * Fill PDF Forms with FDF Data or XFDF Data and/or Flatten Forms |
---|
| 36 | * Apply a Background Watermark or a Foreground Stamp |
---|
[521] | 37 | * Burst a PDF Document into Single Pages |
---|
| 38 | * Report on PDF Metrics, including Metadata and Bookmarks |
---|
| 39 | * Uncompress and Re-Compress Page Streams |
---|
| 40 | * Repair Corrupted PDF (Where Possible) |
---|
| 41 | |
---|
| 42 | Pdftk is also an example of how to use a library of Java classes in a |
---|
| 43 | stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI allow |
---|
| 44 | C++ code to use iText's (itext-paulo) Java classes. |
---|
| 45 | |
---|
| 46 | %description -l ja |
---|
[1717] | 47 | pdftk は PDF 文書を扱うツールであり、PDF文書の結合、分割、暗号化、復号化 |
---|
| 48 | (パスワードが必要)、PDF フォームへの穴埋め、背景への透かし挿入、ページ分解、 |
---|
| 49 | 文書情報表示、ページストリームの展開・再圧縮機能を有し、壊れたPDF文書を可能な |
---|
| 50 | 限り修復する機能も備えています. |
---|
[521] | 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q |
---|
[1717] | 54 | %patch0 -p1 -b .gcc44 |
---|
| 55 | %patch1 -p0 -b .dummy |
---|
| 56 | %patch2 -p1 -b .no_embedded_libs |
---|
| 57 | %patch3 -p1 -b .calendar |
---|
[521] | 58 | |
---|
[1717] | 59 | |
---|
[521] | 60 | %build |
---|
| 61 | cd pdftk |
---|
| 62 | ## don't use smp_mflags |
---|
| 63 | %{__make} -f Makefile.RedHat |
---|
| 64 | cd - |
---|
| 65 | |
---|
| 66 | %install |
---|
| 67 | if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi |
---|
| 68 | %{__install} -d $RPM_BUILD_ROOT/%{_bindir} |
---|
| 69 | %{__install} -d $RPM_BUILD_ROOT/%{_mandir}/man1 |
---|
| 70 | %{__install} -m 0755 pdftk/pdftk $RPM_BUILD_ROOT/%{_bindir}/ |
---|
| 71 | %{__install} -m 0644 debian/pdftk.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ |
---|
| 72 | |
---|
| 73 | %clean |
---|
| 74 | if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi |
---|
| 75 | |
---|
| 76 | %files |
---|
| 77 | %defattr(-,root,root) |
---|
| 78 | %doc pdftk.1.html pdftk.1.notes pdftk.1.txt |
---|
| 79 | %{_bindir}/* |
---|
| 80 | %{_mandir}/man1/* |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[1717] | 83 | * Sun Aug 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.41-2 |
---|
| 84 | - built with new toolchain |
---|
| 85 | - added Patch0, 1, 2 and 3 for building current toolchain |
---|
| 86 | - updated description |
---|
| 87 | |
---|
[521] | 88 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.41-1vl5 |
---|
| 89 | - applied new versioning policy, spec in utf-8 |
---|
| 90 | |
---|
| 91 | * Fri Feb 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.41-0vl2 |
---|
| 92 | - updated release number |
---|
| 93 | |
---|
| 94 | * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.41-0vl1 |
---|
| 95 | - new upstream release |
---|
| 96 | - rebuilt with new toolchain and environment |
---|
| 97 | |
---|
| 98 | * Thu Aug 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
---|
| 99 | - rebuilt for VineSeed (4.0) |
---|
| 100 | |
---|
| 101 | * Mon Jun 6 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp> |
---|
| 102 | - Inital package for VineLinux3.1 |
---|
| 103 | |
---|