t1lib-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. Summary: PostScript Type 1 font rasterizer
  2. Name: t1lib
  3. Version: 5.1.2
  4. Release: 2%{?_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 texlive-common
  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. * Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.2-2
  104. - add BR: texlive-common
  105. * Sun May 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.2-1
  106. - updated to 5.1.2
  107. - added Patch3 from Fedora
  108. * Mon Apr 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-3
  109. - rebuild with current VineSeed
  110. - use BR: texlive instead of tetex
  111. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-2vl5
  112. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  113. - spec in utf-8
  114. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-1vl5
  115. - applied new versioning policy
  116. - removed *.la
  117. - added BuildRequires: xorg-x11-devel libXpm-devel, instead of XFree86-devel xpm-devel
  118. * Sat Dec 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl2
  119. - fixed spec file to build current environment
  120. - added %{epoch} related t1libs
  121. * Sat Jun 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl1
  122. - updated to 5.0.2
  123. - changed Group:
  124. * Sun Mar 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.0-0vl1
  125. - new upstream release 5.0.0
  126. * Fri May 31 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.3.1-5vl0
  127. - modified for Vine
  128. * Thu May 16 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-5mdk
  129. - 9.0 lib policy: added %libname-static-devel
  130. * Wed Apr 17 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-4mdk
  131. - use %%makeinstall_std
  132. - use %%buildroot
  133. - devel package provides %%version-%%release
  134. * Sat Feb 02 2002 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.3.1-3mdk
  135. - fixed multiple "install -d" (problem with {).
  136. * Mon Jan 21 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-2mdk
  137. - use the freshmeat url
  138. * Sun Jan 13 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.1-1mdk
  139. - 1.3.1.
  140. - Remove the URL. There doesn't seem to be one for it.
  141. * Sun Oct 28 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3-1mdk
  142. - The all new-and-shiny t1lib 1.3.
  143. * Wed Aug 15 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.2-2mdk
  144. - removed .dvi.gz doc.
  145. - removed .ps docs and unneeded .eps files. All printable doc files
  146. now replaced with only one PDF doc file.
  147. * Tue Aug 07 2001 Yves Duret <yduret@mandrakesoft.com> 1.2-1mdk
  148. - version 1.2
  149. - s{Serial}{Epoch} & s{Copyright}{License}
  150. - updated url & source
  151. - added Patch{0,1,2}
  152. - fix buildrequires
  153. - remove big, fussy and redundand pdf/ps doc (ghibo sux) :
  154. size of devel rpm divided by more than 2 !
  155. * Wed May 23 2001 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2mdk
  156. - more and more macros
  157. - s{Copyright}{License}
  158. * Sat May 05 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.1-1mdk
  159. - updated to release 1.1.1 (bugfixes).
  160. * Tue Mar 13 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.0-1mdk
  161. - updated to release 1.1.0.
  162. - gzip doc instead of bzip2.
  163. - removed docdir patch.
  164. * Wed Dec 27 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-6mdk
  165. - added a obsoletes -devel tag.
  166. * Tue Dec 26 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-5mdk
  167. - splitted into main deval and progs packages.
  168. - config file now in /etc as it should be
  169. - used bzip2 instead of gzip for doc
  170. - macros
  171. * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.1-4mdk
  172. - automatically added BuildRequires
  173. * Fri Jul 28 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-3mdk
  174. - BM + macroszification
  175. * Tue May 16 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-2mdk
  176. - Move .so from devel to package and add some links for alpha.
  177. * Sat Apr 01 2000 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.0.1-1mdk
  178. - updated to version 1.0.1.
  179. - moved .so file to devel package.
  180. - exchanged package group between main and -devel packages.
  181. * Thu Mar 23 2000 Daouda Lo <daouda@mandrakesoft.com> 0.9.2-3mdk
  182. - fix group.
  183. * Thu Jan 13 2000 Pixel <pixel@mandrakesoft.com>
  184. - libtoolize --force.
  185. * Sat Oct 30 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
  186. - updated to version 0.9.2.
  187. * Thu Aug 12 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
  188. - added PostScript documentation.
  189. - split into main and devel package.
  190. * Sun Aug 1 1999 Richard D. Jackson <richardj@1gig.net>
  191. - first release of t1lib-0.9.1