fontforge-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. %define origversion 20120101
  2. Summary: Outline and bitmap font editor
  3. Summary(ja): アウトライン・ビットマップフォントエディタ
  4. Name: fontforge
  5. Version: %{origversion}
  6. Release: 2%{?_dist_release}
  7. License: BSD
  8. Group: Applications/Publishing
  9. URL: http://fontforge.sourceforge.net/
  10. Source: fontforge_full-%{origversion}.tar.bz2
  11. Source10: %{name}.desktop
  12. Source20: %{name}.png
  13. Patch1: fontforge-20090224-pythondl.patch
  14. Patch10: fontforge-browser.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. BuildRequires: xorg-x11-proto-devel
  17. BuildRequires: libXt-devel
  18. BuildRequires: freetype2-devel
  19. BuildRequires: libuninameslist-devel
  20. BuildRequires: libjpeg-turbo-devel
  21. BuildRequires: libpng-devel
  22. BuildRequires: libtiff-devel
  23. BuildRequires: giflib-devel
  24. BuildRequires: libxml2-devel
  25. BuildRequires: desktop-file-utils
  26. BuildRequires: python-devel
  27. BuildRequires: pango-devel
  28. BuildRequires: cairo-devel
  29. Obsoletes: pfaedit
  30. Obsoletes: fontforge-devel <= 20050310
  31. Requires: xdg-utils
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: daisuke
  35. %description
  36. FontForge (former PfaEdit) is a font editor for outline and bitmap
  37. fonts. It supports a range of font formats, including PostScript
  38. (ASCII and binary Type 1, some Type 3 and Type 0), TrueType, OpenType
  39. (Type2) and CID-keyed fonts.
  40. %prep
  41. %setup -q -n %{name}-%{origversion}
  42. %patch1 -p1
  43. %patch10 -p1 -b .browser
  44. %{__cp} %{SOURCE10} %{name}.desktop
  45. %build
  46. %configure --with-freetype-bytecode=no -with-regular-link --enable-pyextension
  47. %{__make} %{?_smp_mflags}
  48. %install
  49. %{__rm} -rf %{buildroot}
  50. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  51. %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
  52. desktop-file-install \
  53. --vendor "" \
  54. --dir %{buildroot}%{_datadir}/applications \
  55. fontforge.desktop
  56. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/fontforge
  57. %{__install} -d -m0755 %{buildroot}%{_datadir}/pixmaps/
  58. %{__install} -m644 %{SOURCE20} %{buildroot}%{_datadir}/pixmaps/
  59. %find_lang FontForge
  60. %{__rm} -f %{buildroot}%{_libdir}/*.la
  61. %clean
  62. %{__rm} -rf %{buildroot}
  63. %post
  64. /sbin/ldconfig 2>/dev/null
  65. update-desktop-database %{_datadir}/applications &>/dev/null || :
  66. %postun
  67. /sbin/ldconfig 2>/dev/null
  68. update-desktop-database %{_datadir}/applications &>/dev/null || :
  69. %files -f FontForge.lang
  70. %defattr(-, root, root, 0755)
  71. %doc AUTHORS LICENSE README-unix
  72. %{_bindir}/*
  73. %{_libdir}/lib*.so.*
  74. %{_libdir}/lib*.so
  75. %{_libdir}/pkgconfig/fontforge.pc
  76. %dir %{_includedir}/fontforge
  77. %{_includedir}/fontforge/*
  78. %{_datadir}/applications/fontforge.desktop
  79. %{_datadir}/pixmaps/fontforge.png
  80. %{_datadir}/fontforge
  81. %{_mandir}/man1/*.1*
  82. %{python_sitearch}/fontforge-1.0-py2.7.egg-info
  83. %{python_sitearch}/fontforge.so
  84. %{python_sitearch}/psMat.so
  85. %changelog
  86. * Fri Apr 20 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-2
  87. - enable pyextensions
  88. * Tue Feb 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-1
  89. - update to upstream git snapshot
  90. * Tue Feb 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-3
  91. - rebuild with python-2.7
  92. * Tue Jan 31 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-2
  93. - add patch2
  94. - http://sourceforge.net/mailarchive/message.php?msg_id=27133628
  95. * Sun Jul 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-1
  96. - new upstream version
  97. * Mon Sep 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100501-1
  98. - new upstream release
  99. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-3
  100. - rebuilt with rpm-4.8.1 for pkg-config
  101. * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-2
  102. - rebuilt with python-2.6.4-3
  103. * Sat Nov 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090923-1
  104. - new upstream release
  105. - add BR: pango-devel, cairo-devel
  106. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090408-1
  107. - new upstream release
  108. * Mon Nov 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20081115-1
  109. - new upstream release
  110. * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-2
  111. - rebuild with python2.5
  112. * Sun Jun 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-1
  113. - new upstream release
  114. - build with xorg-x11-7.3
  115. - add Requires: xdg-utils
  116. * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-1
  117. - rebuild with xorg-x11-7.3
  118. * Mon Jul 30 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-0vl1
  119. - new upstream release
  120. * Sat May 05 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070501-0vl1
  121. - new upstream release
  122. * Wed Sep 13 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 20060822-0vl1
  123. - new upstream release
  124. - add -q option to %%setup
  125. * Sun Jul 09 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 20060703-0vl1
  126. - new upstream release
  127. * Mon Oct 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 20050502-0vl1
  128. - new upstream release
  129. - update Summaries and descriptions, URL...
  130. - add fontforge icons and desktop file
  131. - add Patch10 to prefer htmlview or firefox for default browser
  132. * Sat Mar 12 2005 Jun NISHII <jun@vinelinux.org>
  133. - move to fontforge
  134. * Fri Jul 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  135. - Updated to 2002/07/15.
  136. * Fri Apr 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  137. - Updated to 2002/04/16.
  138. * Sun Mar 3 2002 Ryoichi Ichiyama <ir@bellbind.net>
  139. - Updated to 2002/03/02.
  140. * Mon Feb 18 2002 Ryoichi Ichiyama <ir@bellbind.net>
  141. - Updated to 2002/02/16.
  142. * Sat Feb 16 2002 Ryoichi Ichiyama <ir@bellbind.net>
  143. - Updated to 2002/02/14.
  144. * Thu Feb 14 2002 Ryoichi Ichiyama <ir@bellbind.net>
  145. - Updated to 2002/02/12.
  146. * Mon Feb 10 2002 Ryoichi Ichiyama <ir@bellbind.net>
  147. - Updated to 2002/02/09.
  148. * Sat Feb 9 2002 Ryoichi Ichiyama <ir@bellbind.net>
  149. - Change SPEC file to VineLinux Style
  150. - Updated to 2002/02/05.
  151. * Fri Nov 2 2001 George Williams <gww@silcom.com>
  152. - went from three source packages down to just one which includes the others
  153. * Thu May 10 2001 George Williams <gww@silcom.com>
  154. - My first attempt at rpm, updated to 10 May sources
  155. * Tue May 01 2001 Scott Pakin <pakin@uiuc.edu>
  156. - Removed (unused) dynamic library files
  157. * Sun Apr 29 2001 Scott Pakin <pakin@uiuc.edu>
  158. - Upgraded from 220401 to 280401.
  159. * Tue Apr 24 2001 Scott Pakin <pakin@uiuc.edu>
  160. - Upgraded from 190401 to 220401.
  161. * Fri Apr 20 2001 Scott Pakin <pakin@uiuc.edu>
  162. - Upgraded from 020401 to 190401.
  163. * Tue Apr 10 2001 Scott Pakin <pakin@uiuc.edu>
  164. - Upgraded from 210301 to 020401.
  165. * Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
  166. - Initial release