pdftk-vl.spec 3.4 KB

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