t1lib-vl.spec 7.2 KB

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