t1lib-vl.spec 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. Summary: PostScript Type 1 font rasterizer
  2. Name: t1lib
  3. Version: 5.1.2
  4. Release: 3%{?_dist_release}
  5. Epoch: 1
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-%{version}.lsm
  9. Source: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
  10. Patch1: %{name}-doc.patch.bz2
  11. Patch2: %{name}-config.patch.bz2
  12. Patch3: %{name}-5.1.2-segf.patch
  13. # security fixes
  14. Patch10: t1lib-5.1.2-CVE-2010-2642.patch
  15. Patch11: t1lib-5.1.2-CVE-2011-0764.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: libICE-devel libX11-devel libXaw-devel libXpm-devel
  18. BuildRequires: texlive texlive-common
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. T1lib is a library for generating character and string-glyphs from
  23. Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X11
  24. rasterizer donated by IBM to the X11-project. But some disadvantages
  25. of the rasterizer being included in X11 have been eliminated.
  26. T1lib also includes a support for antialiasing.
  27. %package devel
  28. Summary: Header files for PostScript Type 1 font rasterizer
  29. Group: Development/Libraries
  30. Requires: %{name} = %{epoch}:%{version}-%{release}
  31. Provides: %{name}-devel = %{version}-%{release}
  32. %description devel
  33. Header files required for compiling packages
  34. needing the t1lib.
  35. %package static-devel
  36. Summary: Static libraries for PostScript Type 1 font rasterizer
  37. Group: Development/Libraries
  38. Requires: %{name}-devel = %{epoch}:%{version}-%{release}
  39. Provides: %{name}-static-devel = %{version}-%{release}
  40. %description static-devel
  41. Static libraries required for staticaly compiling packages needing the t1lib.
  42. %package progs
  43. Summary: Programs dor manipulating Type 1 font
  44. Group: Applications/Graphics
  45. License: GPLv2+
  46. Requires: %{name} = %{epoch}:%{version}
  47. Provides: %{name}-progs
  48. %description progs
  49. The t1lib-progs contains the programs "xglyph" and "type1afm"
  50. It also contains the "t1libconfig" script used to configure t1lib.
  51. %prep
  52. %setup -q
  53. %patch1 -p0
  54. %patch2 -p0
  55. %patch3 -p1 -b .segf
  56. %patch10 -p1 -b .CVE-2010-2642
  57. %patch11 -p1 -b .CVE-2011-0764
  58. iconv -f latin1 -t utf8 < Changes > Changes.utf8
  59. touch -r Changes Changes.utf8
  60. mv Changes.utf8 Changes
  61. %build
  62. %configure
  63. #export tagname=CC
  64. perl -pi -e 's,-DGLOBAL_CONFIG_DIR="\\"/usr/share/t1lib\\"",-DGLOBAL_CONFIG_DIR="\\"/etc/t1lib\\"",;' Makefile
  65. #(cd lib
  66. #perl -pi -e 's,$(DESTDIR)/usr/share/t1lib,$(DESTDIR)$(datedir)t1lib,;' Makefile
  67. #)
  68. make without_doc
  69. #LIBTOOL=/usr/bin/libtool
  70. touch -r lib/t1lib/t1lib.h.in lib/t1lib.h
  71. touch -r lib/t1lib/t1libx.h lib/t1libx.h
  72. ln README.t1lib-%{version} README
  73. (cd doc
  74. make clean
  75. make pdf)
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. install -d $RPM_BUILD_ROOT%{_libdir} \
  79. $RPM_BUILD_ROOT%{_datadir} \
  80. $RPM_BUILD_ROOT%{_bindir} \
  81. $RPM_BUILD_ROOT%{_includedir}
  82. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  83. rm -f $RPM_BUILD_ROOT%{_libdir}/libt1*.la
  84. chmod a+x $RPM_BUILD_ROOT%{_libdir}/libt1*.so.*
  85. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/t1lib
  86. mv $RPM_BUILD_ROOT%{_datadir}/t1lib/t1lib.config $RPM_BUILD_ROOT%{_sysconfdir}/t1lib
  87. %post -p /sbin/ldconfig
  88. %postun -p /sbin/ldconfig
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT
  91. %files -n %{name}
  92. %defattr(-,root,root)
  93. %config(noreplace) %{_sysconfdir}/t1lib/t1lib.config
  94. %doc Changes LGPL README.t1*
  95. %{_libdir}/libt1*.so.*
  96. %files -n %{name}-devel
  97. %defattr(-,root,root)
  98. %doc LGPL doc/t1lib_doc.pdf
  99. %{_includedir}/*
  100. %{_libdir}/*.so
  101. %files -n %{name}-static-devel
  102. %defattr(-,root,root)
  103. %doc LGPL
  104. %{_libdir}/*.a
  105. %files -n %{name}-progs
  106. %defattr(-,root,root)
  107. %doc LICENSE README.t1python
  108. %{_bindir}/*
  109. %changelog
  110. * Mon Jan 16 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.1.2-3
  111. - add patch10 for fix CVE-2010-2642 (AFM font metrics parser)
  112. CVE-2011-0433 is fixed on the this patch.
  113. - add patch11 for fix CVE-2011-0764 (AFM font metrics parser)
  114. CVE-2011-0764, CVE-2011-1552, 53, 54 are fixed by this patch
  115. - add Vendor/Distri Tags
  116. * Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.2-2
  117. - add BR: texlive-common
  118. * Sun May 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.2-1
  119. - updated to 5.1.2
  120. - added Patch3 from Fedora
  121. * Mon Apr 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-3
  122. - rebuild with current VineSeed
  123. - use BR: texlive instead of tetex
  124. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-2vl5
  125. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  126. - spec in utf-8
  127. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-1vl5
  128. - applied new versioning policy
  129. - removed *.la
  130. - added BuildRequires: xorg-x11-devel libXpm-devel, instead of XFree86-devel xpm-devel
  131. * Sat Dec 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl2
  132. - fixed spec file to build current environment
  133. - added %{epoch} related t1libs
  134. * Sat Jun 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl1
  135. - updated to 5.0.2
  136. - changed Group:
  137. * Sun Mar 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.0-0vl1
  138. - new upstream release 5.0.0
  139. * Fri May 31 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.3.1-5vl0
  140. - modified for Vine
  141. * Thu May 16 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-5mdk
  142. - 9.0 lib policy: added %libname-static-devel
  143. * Wed Apr 17 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-4mdk
  144. - use %%makeinstall_std
  145. - use %%buildroot
  146. - devel package provides %%version-%%release
  147. * Sat Feb 02 2002 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.3.1-3mdk
  148. - fixed multiple "install -d" (problem with {).
  149. * Mon Jan 21 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-2mdk
  150. - use the freshmeat url
  151. * Sun Jan 13 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.1-1mdk
  152. - 1.3.1.
  153. - Remove the URL. There doesn't seem to be one for it.
  154. * Sun Oct 28 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3-1mdk
  155. - The all new-and-shiny t1lib 1.3.
  156. * Wed Aug 15 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.2-2mdk
  157. - removed .dvi.gz doc.
  158. - removed .ps docs and unneeded .eps files. All printable doc files
  159. now replaced with only one PDF doc file.
  160. * Tue Aug 07 2001 Yves Duret <yduret@mandrakesoft.com> 1.2-1mdk
  161. - version 1.2
  162. - s{Serial}{Epoch} & s{Copyright}{License}
  163. - updated url & source
  164. - added Patch{0,1,2}
  165. - fix buildrequires
  166. - remove big, fussy and redundand pdf/ps doc (ghibo sux) :
  167. size of devel rpm divided by more than 2 !
  168. * Wed May 23 2001 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2mdk
  169. - more and more macros
  170. - s{Copyright}{License}
  171. * Sat May 05 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.1-1mdk
  172. - updated to release 1.1.1 (bugfixes).
  173. * Tue Mar 13 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.0-1mdk
  174. - updated to release 1.1.0.
  175. - gzip doc instead of bzip2.
  176. - removed docdir patch.
  177. * Wed Dec 27 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-6mdk
  178. - added a obsoletes -devel tag.
  179. * Tue Dec 26 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-5mdk
  180. - splitted into main deval and progs packages.
  181. - config file now in /etc as it should be
  182. - used bzip2 instead of gzip for doc
  183. - macros
  184. * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.1-4mdk
  185. - automatically added BuildRequires
  186. * Fri Jul 28 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-3mdk
  187. - BM + macroszification
  188. * Tue May 16 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-2mdk
  189. - Move .so from devel to package and add some links for alpha.
  190. * Sat Apr 01 2000 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.0.1-1mdk
  191. - updated to version 1.0.1.
  192. - moved .so file to devel package.
  193. - exchanged package group between main and -devel packages.
  194. * Thu Mar 23 2000 Daouda Lo <daouda@mandrakesoft.com> 0.9.2-3mdk
  195. - fix group.
  196. * Thu Jan 13 2000 Pixel <pixel@mandrakesoft.com>
  197. - libtoolize --force.
  198. * Sat Oct 30 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
  199. - updated to version 0.9.2.
  200. * Thu Aug 12 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
  201. - added PostScript documentation.
  202. - split into main and devel package.
  203. * Sun Aug 1 1999 Richard D. Jackson <richardj@1gig.net>
  204. - first release of t1lib-0.9.1