paps-vl.spec 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. Summary: Plain Text to PostScript converter
  2. Summary(ja): プレインテキストから Postscript へのコンバータ
  3. Name: paps
  4. Version: 0.6.8
  5. Release: 2%{?_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. * Mon Oct 04 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.8-2
  92. - changed spec name as vine style, and rebuilt
  93. * Thu Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.8-1
  94. - initial build for Vine Linux
  95. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-9
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  97. * Mon Nov 17 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-8
  98. - Courier font to be a default font for texttopaps. (#469325)
  99. * Mon Sep 1 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-7
  100. - paps-langinfo.patch: Updated.
  101. - paps-exitcode.patch: Updated.
  102. * Fri May 16 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-6
  103. - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137)
  104. - paps-autoconf262.patch: Fix an error on autoreconf.
  105. * Tue Feb 12 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-5
  106. - Rebuild for gcc-4.3.
  107. * Wed Jan 23 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-4
  108. - Fix an exception on ghostscript. (#429275)
  109. * Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-3
  110. - Put %%%%Pages: after %%%%Trailer. (#424951)
  111. * Thu Jan 10 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-2
  112. - paps-0.6.8-dsc-compliant.patch: Patch out to be DSC compliant. (#424951)
  113. * Fri Nov 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.8-1
  114. - New upstream release.
  115. - Remove patches merged and unnecessary anymore:
  116. - paps-makefile.patch
  117. - paps-formfeed.patch
  118. - paps-0.6.6-encoding.patch
  119. - paps-typo-font-scale.patch
  120. - paps-0.6.6-segfault.patch
  121. - paps-0.6.6-font-option.patch
  122. - paps-0.6.6-lcctype.patch
  123. - paps-0.6.8-shared.patch: Enable building shared library.
  124. - paps-0.6.8-wordwrap.patch: Update a bit to get it working without an wordwrap
  125. mode.
  126. - Add paps-libs and paps-devel package.
  127. - paps-cups.patch: Update.
  128. - paps-cpilpi.patch: Update.
  129. - Fix the wrong rendering with CPI option. (#237202)
  130. - Fix the unnecessary rotation with the landscape option when paps is running
  131. as CUPS filter. (#222137)
  132. * Thu Aug 23 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-21
  133. - Rebuild
  134. * Fri Aug 10 2007 Akira TAGOH <tagoh@redhat.com>
  135. - Update License tag.
  136. * Wed May 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-20
  137. - Fix to not do wordwrap when 'wrap=false' is given. (#240588)
  138. * Tue Mar 27 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-19
  139. - Fix PostScript breakage following the non-monetary numeric format from
  140. current locale. (#231916)
  141. * Thu Mar 7 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-18
  142. - default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862)
  143. * Tue Jan 23 2007 Akira TAGOH <tagoh@redhat.com>
  144. - Better the encoding guess by looking at current locale. (#212154)
  145. * Mon Dec 4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-17
  146. - Fix a segfault on non-printable character. (#216296)
  147. * Sat Sep 30 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-16
  148. - paps-0.6.6-exitcode.patch: exit immediately with proper exit code
  149. when unrecoverable error occurs. (#208592)
  150. * Fri Sep 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-15
  151. - Avoid using iconv when not needed (bug #206259).
  152. * Thu Sep 14 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-14
  153. - paps-cups.patch: try to parse input even if any invalid character appears.
  154. (#206259)
  155. * Thu Aug 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-13
  156. - paps-formfeed.patch: fixed to not insert an extra line in next page.
  157. (#202731)
  158. * Thu Aug 17 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-12
  159. - Map CUPS charset names to real ones (bug #197577).
  160. * Mon Jul 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-11
  161. - add an owner info to PS.
  162. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.6-10.2
  163. - rebuild
  164. * Tue Jul 4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-10
  165. - paps-0.6.6-cpilpi.patch: add --cpi and --lpi option to support the characters
  166. per inch and the lines per inch.
  167. - paps-cups.patch: add cpi and lpi support.
  168. * Thu Jun 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-9
  169. - Fixed font-option patch.
  170. - Adjusted CUPS patch: CUPS invokes the filter with the destination
  171. printer name in argv[0], not the binary name.
  172. - CUPS filter lives in CUPS_SERVERBIN, which is /usr/lib/cups on all
  173. architectures -- not %%{_libdir}/cups.
  174. * Thu Jun 29 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-8
  175. - use dist tag.
  176. - paps-cups.patch: applied to work paps as CUPS filter.
  177. - paps-0.6.6-encoding.patch: null-terminates the output.
  178. * Tue Jun 27 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-7
  179. - rebuilt to import into Core.
  180. * Wed Jun 21 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-6
  181. - paps-0.6.6-wordwrap.patch: applied to do a wordwrap.
  182. * Tue Jun 20 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-5
  183. - paps-typo-font-scale.patch: backported from CVS.
  184. - paps-0.6.6-font-option.patch: integrated --font-family and --font-scale
  185. options to --font.
  186. - paps-0.6.6-lcctype.patch: follow LC_CTYPE to determine the default language.
  187. * Fri Jun 16 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-4
  188. - added libtool and doxygen to BuildReq.
  189. - removed NEWS file which is empty.
  190. * Mon Jun 12 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-3
  191. - use make install DESTDIR=... instead of %%makeinstall
  192. - add automake and autoconf to BuildReq.
  193. * Thu May 25 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-2
  194. - paps-0.6.6-encoding.patch: support --encoding option to be able to convert
  195. the input file to UTF-8.
  196. - paps-0.6.6-segfault.patch: fixed a possible segfault issue when reading is
  197. failed.
  198. * Fri May 19 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-1
  199. - New upstream release.
  200. * Mon Apr 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.5-1
  201. - New upstream release.
  202. - paps-0.6.3-fix-pagesize.patch: removed. it has been merged in upstream.
  203. - paps-0.6.3-goption.patch: removed. it has been merged in upstream.
  204. - paps-0.6.3-header.patch: removed. it has been merged in upstream.
  205. - paps-makefile.patch: rework to be applied.
  206. * Fri Mar 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-4
  207. - paps-0.6.3-formfeed.patch: applied to deal with the formfeed mark properly.
  208. - paps-0.6.3-goption.patch: rewritten option parser using GOption. and segfault
  209. gone as well. (#187205)
  210. - paps-0.6.3-header.patch: applied to support the output of the page header.
  211. * Fri Mar 24 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-3
  212. - paps-0.6.3-fix-pagesize.patch: fixed displaying the beginning of line at out of page. (#176207)
  213. * Thu Mar 2 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-2
  214. - rebuilt.
  215. * Wed Jan 11 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-1
  216. - New upstream release.
  217. - paps-0.6.2-fix-bufferoverflow.patch: removed.
  218. * Wed Dec 21 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1
  219. - New upstream release.
  220. - the bitmap font is now ignored. (#176206)
  221. - paps-0.6.2-fix-bufferoverflow.patch: applied to fix the buffer overflow.
  222. * Tue Dec 13 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.1-1
  223. - New upstream release.
  224. - paps-0.6.1-makefile.patch: applied to install docs on the proper dir.
  225. * Fri Nov 4 2005 Akira TAGOH <tagoh@redhat.com> - 0.5-1
  226. - New upstream release.
  227. * Tue Oct 18 2005 Akira TAGOH <tagoh@redhat.com> - 0.3-1
  228. - Initial package.