paps-vl.spec 11 KB

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