t1lib-vl.spec 9.3 KB

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