paps-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. Summary: Plain Text to PostScript converter
  2. Summary(ja): プレインテキストから Postscript へのコンバータ
  3. Name: paps
  4. Version: 0.6.8
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Publishing
  7. License: LGPLv2+
  8. URL: http://paps.sourceforge.net/
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: daisuke
  12. Source0: http://prdownloads.sourceforge.net/paps/paps-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel
  15. ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241
  16. Patch0: paps-0.6.8-shared.patch
  17. ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241
  18. Patch1: paps-0.6.8-wordwrap.patch
  19. ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241
  20. Patch2: paps-langinfo.patch
  21. ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241
  22. Patch3: paps-0.6.6-lcnumeric.patch
  23. ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241
  24. Patch4: paps-exitcode.patch
  25. Patch50: paps-cups.patch
  26. Patch51: paps-cpilpi.patch
  27. Patch52: paps-dsc-compliant.patch
  28. Patch53: paps-autoconf262.patch
  29. %description
  30. paps is a PostScript converter from plain text file using Pango.
  31. %description -l ja
  32. paps は Pango を用いてプレインテキストを Postscript に変換するツールです。
  33. %package libs
  34. Summary: Libraries for paps
  35. Summary(ja): paps のライブラリ
  36. Group: Development/Libraries
  37. %description libs
  38. paps is a PostScript converter from plain text file using Pango.
  39. This package contains the library for paps.
  40. %package devel
  41. Summary: Development files for paps
  42. Summary(ja): paps の開発ファイル
  43. Group: Development/Libraries
  44. Requires: %{name}-libs = %{version}-%{release}
  45. %description devel
  46. paps is a PostScript converter from plain text file using Pango.
  47. This package contains the development files that is necessary to develop
  48. applications using paps API.
  49. %prep
  50. %setup -q
  51. %patch0 -p1 -b .shared
  52. %patch1 -p1 -b .wordwrap
  53. %patch2 -p1 -b .langinfo
  54. %patch3 -p1 -b .lcnumeric
  55. %patch4 -p1 -b .exitcode
  56. %patch50 -p1 -b .cups
  57. %patch51 -p1 -b .cpilpi
  58. %patch52 -p1 -b .dsc
  59. %patch53 -p1 -b .autoconf262
  60. libtoolize -f -c
  61. autoreconf
  62. %build
  63. %configure --disable-static
  64. make %{?_smp_mflags}
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. make install DESTDIR=$RPM_BUILD_ROOT
  68. # remove unnecessary files
  69. rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la
  70. # make a symlink for CUPS filter
  71. %{__mkdir_p} $RPM_BUILD_ROOT/usr/lib/cups/filter # Not libdir
  72. ln -s %{_bindir}/paps $RPM_BUILD_ROOT/usr/lib/cups/filter/texttopaps
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT
  75. %files
  76. %defattr(-, root, root, -)
  77. %doc AUTHORS COPYING.LIB README TODO
  78. %{_bindir}/paps
  79. %{_mandir}/man1/paps.1*
  80. /usr/lib/cups/filter/texttopaps
  81. %files libs
  82. %defattr(-, root, root, -)
  83. %doc COPYING.LIB
  84. %{_libdir}/libpaps.so.*
  85. %files devel
  86. %defattr(-, root, root, -)
  87. %doc COPYING.LIB
  88. %{_includedir}/libpaps.h
  89. %{_libdir}/libpaps.so
  90. %changelog
  91. * Thu Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.8-1
  92. - initial build for Vine Linux
  93. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-9
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  95. * Mon Nov 17 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-8
  96. - Courier font to be a default font for texttopaps. (#469325)
  97. * Mon Sep 1 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-7
  98. - paps-langinfo.patch: Updated.
  99. - paps-exitcode.patch: Updated.
  100. * Fri May 16 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-6
  101. - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137)
  102. - paps-autoconf262.patch: Fix an error on autoreconf.
  103. * Tue Feb 12 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-5
  104. - Rebuild for gcc-4.3.
  105. * Wed Jan 23 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-4
  106. - Fix an exception on ghostscript. (#429275)
  107. * Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-3
  108. - Put %%%%Pages: after %%%%Trailer. (#424951)
  109. * Thu Jan 10 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-2
  110. - paps-0.6.8-dsc-compliant.patch: Patch out to be DSC compliant. (#424951)
  111. * Fri Nov 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.8-1
  112. - New upstream release.
  113. - Remove patches merged and unnecessary anymore:
  114. - paps-makefile.patch
  115. - paps-formfeed.patch
  116. - paps-0.6.6-encoding.patch
  117. - paps-typo-font-scale.patch
  118. - paps-0.6.6-segfault.patch
  119. - paps-0.6.6-font-option.patch
  120. - paps-0.6.6-lcctype.patch
  121. - paps-0.6.8-shared.patch: Enable building shared library.
  122. - paps-0.6.8-wordwrap.patch: Update a bit to get it working without an wordwrap
  123. mode.
  124. - Add paps-libs and paps-devel package.
  125. - paps-cups.patch: Update.
  126. - paps-cpilpi.patch: Update.
  127. - Fix the wrong rendering with CPI option. (#237202)
  128. - Fix the unnecessary rotation with the landscape option when paps is running
  129. as CUPS filter. (#222137)
  130. * Thu Aug 23 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-21
  131. - Rebuild
  132. * Fri Aug 10 2007 Akira TAGOH <tagoh@redhat.com>
  133. - Update License tag.
  134. * Wed May 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-20
  135. - Fix to not do wordwrap when 'wrap=false' is given. (#240588)
  136. * Tue Mar 27 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-19
  137. - Fix PostScript breakage following the non-monetary numeric format from
  138. current locale. (#231916)
  139. * Thu Mar 7 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-18
  140. - default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862)
  141. * Tue Jan 23 2007 Akira TAGOH <tagoh@redhat.com>
  142. - Better the encoding guess by looking at current locale. (#212154)
  143. * Mon Dec 4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-17
  144. - Fix a segfault on non-printable character. (#216296)
  145. * Sat Sep 30 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-16
  146. - paps-0.6.6-exitcode.patch: exit immediately with proper exit code
  147. when unrecoverable error occurs. (#208592)
  148. * Fri Sep 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-15
  149. - Avoid using iconv when not needed (bug #206259).
  150. * Thu Sep 14 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-14
  151. - paps-cups.patch: try to parse input even if any invalid character appears.
  152. (#206259)
  153. * Thu Aug 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-13
  154. - paps-formfeed.patch: fixed to not insert an extra line in next page.
  155. (#202731)
  156. * Thu Aug 17 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-12
  157. - Map CUPS charset names to real ones (bug #197577).
  158. * Mon Jul 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-11
  159. - add an owner info to PS.
  160. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.6-10.2
  161. - rebuild
  162. * Tue Jul 4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-10
  163. - paps-0.6.6-cpilpi.patch: add --cpi and --lpi option to support the characters
  164. per inch and the lines per inch.
  165. - paps-cups.patch: add cpi and lpi support.
  166. * Thu Jun 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-9
  167. - Fixed font-option patch.
  168. - Adjusted CUPS patch: CUPS invokes the filter with the destination
  169. printer name in argv[0], not the binary name.
  170. - CUPS filter lives in CUPS_SERVERBIN, which is /usr/lib/cups on all
  171. architectures -- not %%{_libdir}/cups.
  172. * Thu Jun 29 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-8
  173. - use dist tag.
  174. - paps-cups.patch: applied to work paps as CUPS filter.
  175. - paps-0.6.6-encoding.patch: null-terminates the output.
  176. * Tue Jun 27 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-7
  177. - rebuilt to import into Core.
  178. * Wed Jun 21 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-6
  179. - paps-0.6.6-wordwrap.patch: applied to do a wordwrap.
  180. * Tue Jun 20 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-5
  181. - paps-typo-font-scale.patch: backported from CVS.
  182. - paps-0.6.6-font-option.patch: integrated --font-family and --font-scale
  183. options to --font.
  184. - paps-0.6.6-lcctype.patch: follow LC_CTYPE to determine the default language.
  185. * Fri Jun 16 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-4
  186. - added libtool and doxygen to BuildReq.
  187. - removed NEWS file which is empty.
  188. * Mon Jun 12 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-3
  189. - use make install DESTDIR=... instead of %%makeinstall
  190. - add automake and autoconf to BuildReq.
  191. * Thu May 25 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-2
  192. - paps-0.6.6-encoding.patch: support --encoding option to be able to convert
  193. the input file to UTF-8.
  194. - paps-0.6.6-segfault.patch: fixed a possible segfault issue when reading is
  195. failed.
  196. * Fri May 19 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-1
  197. - New upstream release.
  198. * Mon Apr 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.5-1
  199. - New upstream release.
  200. - paps-0.6.3-fix-pagesize.patch: removed. it has been merged in upstream.
  201. - paps-0.6.3-goption.patch: removed. it has been merged in upstream.
  202. - paps-0.6.3-header.patch: removed. it has been merged in upstream.
  203. - paps-makefile.patch: rework to be applied.
  204. * Fri Mar 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-4
  205. - paps-0.6.3-formfeed.patch: applied to deal with the formfeed mark properly.
  206. - paps-0.6.3-goption.patch: rewritten option parser using GOption. and segfault
  207. gone as well. (#187205)
  208. - paps-0.6.3-header.patch: applied to support the output of the page header.
  209. * Fri Mar 24 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-3
  210. - paps-0.6.3-fix-pagesize.patch: fixed displaying the beginning of line at out of page. (#176207)
  211. * Thu Mar 2 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-2
  212. - rebuilt.
  213. * Wed Jan 11 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-1
  214. - New upstream release.
  215. - paps-0.6.2-fix-bufferoverflow.patch: removed.
  216. * Wed Dec 21 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1
  217. - New upstream release.
  218. - the bitmap font is now ignored. (#176206)
  219. - paps-0.6.2-fix-bufferoverflow.patch: applied to fix the buffer overflow.
  220. * Tue Dec 13 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.1-1
  221. - New upstream release.
  222. - paps-0.6.1-makefile.patch: applied to install docs on the proper dir.
  223. * Fri Nov 4 2005 Akira TAGOH <tagoh@redhat.com> - 0.5-1
  224. - New upstream release.
  225. * Tue Oct 18 2005 Akira TAGOH <tagoh@redhat.com> - 0.3-1
  226. - Initial package.