fontforge-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. %define origversion 20120731-b
  2. Summary: Outline and bitmap font editor
  3. Summary(ja): アウトライン・ビットマップフォントエディタ
  4. Name: fontforge
  5. Version: 20120731b
  6. Release: 1%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: xorg-x11-proto-devel
  16. BuildRequires: libXt-devel
  17. BuildRequires: freetype2-devel
  18. BuildRequires: libuninameslist-devel
  19. BuildRequires: libjpeg-turbo-devel
  20. BuildRequires: libpng-devel
  21. BuildRequires: libtiff-devel
  22. BuildRequires: giflib-devel
  23. BuildRequires: libxml2-devel
  24. BuildRequires: desktop-file-utils
  25. BuildRequires: python-devel
  26. BuildRequires: pango-devel
  27. BuildRequires: cairo-devel
  28. BuildRequires: libspiro-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. %{__cp} %{SOURCE10} %{name}.desktop
  44. %build
  45. %configure --with-freetype-bytecode=no -with-regular-link --enable-pyextension
  46. %{__make} %{?_smp_mflags}
  47. %install
  48. %{__rm} -rf %{buildroot}
  49. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  50. %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
  51. desktop-file-install \
  52. --vendor "" \
  53. --dir %{buildroot}%{_datadir}/applications \
  54. fontforge.desktop
  55. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/fontforge
  56. install -Dpm 644 Packaging/icons/scalable/apps/fontforge.svg \
  57. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/fontforge.svg
  58. %{__install} -d -m0755 %{buildroot}%{_datadir}/pixmaps/
  59. %{__install} -m644 %{SOURCE20} %{buildroot}%{_datadir}/pixmaps/
  60. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages
  61. install -p Packaging/fontforge.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/
  62. %find_lang FontForge
  63. %{__rm} -f %{buildroot}%{_libdir}/*.la
  64. %clean
  65. %{__rm} -rf %{buildroot}
  66. %post
  67. /sbin/ldconfig 2>/dev/null
  68. update-desktop-database %{_datadir}/applications &>/dev/null || :
  69. update-mime-database %{_datadir}/mime &> /dev/null || :
  70. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  71. %postun
  72. /sbin/ldconfig 2>/dev/null
  73. update-desktop-database %{_datadir}/applications &>/dev/null || :
  74. update-mime-database %{_datadir}/mime &> /dev/null || :
  75. if [ $1 -eq 0 ] ; then
  76. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  77. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  78. fi
  79. %posttrans
  80. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  81. %files -f FontForge.lang
  82. %defattr(-, root, root, 0755)
  83. %doc AUTHORS LICENSE README-unix
  84. %{_bindir}/*
  85. %{_libdir}/lib*.so.*
  86. %{_libdir}/lib*.so
  87. %{_libdir}/pkgconfig/fontforge.pc
  88. %dir %{_includedir}/fontforge
  89. %{_includedir}/fontforge/*
  90. %{_datadir}/applications/fontforge.desktop
  91. %{_datadir}/pixmaps/fontforge.png
  92. %{_datadir}/icons/hicolor/*/apps/fontforge.*
  93. %{_datadir}/fontforge
  94. %{_datadir}/mime/packages/fontforge.xml
  95. %{_mandir}/man1/*.1*
  96. %{python_sitearch}/fontforge-1.0-py2.?.egg-info
  97. %{python_sitearch}/fontforge.so
  98. %{python_sitearch}/psMat.so
  99. %changelog
  100. * Sat Nov 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120731b-1
  101. - update to 20120731-b
  102. - add BR: libspiro-devel
  103. * Fri Apr 20 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-2
  104. - enable pyextensions
  105. * Tue Feb 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-1
  106. - update to upstream git snapshot
  107. * Tue Feb 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-3
  108. - rebuild with python-2.7
  109. * Tue Jan 31 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-2
  110. - add patch2
  111. - http://sourceforge.net/mailarchive/message.php?msg_id=27133628
  112. * Sun Jul 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-1
  113. - new upstream version
  114. * Mon Sep 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100501-1
  115. - new upstream release
  116. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-3
  117. - rebuilt with rpm-4.8.1 for pkg-config
  118. * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-2
  119. - rebuilt with python-2.6.4-3
  120. * Sat Nov 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090923-1
  121. - new upstream release
  122. - add BR: pango-devel, cairo-devel
  123. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090408-1
  124. - new upstream release
  125. * Mon Nov 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20081115-1
  126. - new upstream release
  127. * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-2
  128. - rebuild with python2.5
  129. * Sun Jun 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-1
  130. - new upstream release
  131. - build with xorg-x11-7.3
  132. - add Requires: xdg-utils
  133. * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-1
  134. - rebuild with xorg-x11-7.3
  135. * Mon Jul 30 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-0vl1
  136. - new upstream release
  137. * Sat May 05 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070501-0vl1
  138. - new upstream release
  139. * Wed Sep 13 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 20060822-0vl1
  140. - new upstream release
  141. - add -q option to %%setup
  142. * Sun Jul 09 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 20060703-0vl1
  143. - new upstream release
  144. * Mon Oct 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 20050502-0vl1
  145. - new upstream release
  146. - update Summaries and descriptions, URL...
  147. - add fontforge icons and desktop file
  148. - add Patch10 to prefer htmlview or firefox for default browser
  149. * Sat Mar 12 2005 Jun NISHII <jun@vinelinux.org>
  150. - move to fontforge
  151. * Fri Jul 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  152. - Updated to 2002/07/15.
  153. * Fri Apr 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  154. - Updated to 2002/04/16.
  155. * Sun Mar 3 2002 Ryoichi Ichiyama <ir@bellbind.net>
  156. - Updated to 2002/03/02.
  157. * Mon Feb 18 2002 Ryoichi Ichiyama <ir@bellbind.net>
  158. - Updated to 2002/02/16.
  159. * Sat Feb 16 2002 Ryoichi Ichiyama <ir@bellbind.net>
  160. - Updated to 2002/02/14.
  161. * Thu Feb 14 2002 Ryoichi Ichiyama <ir@bellbind.net>
  162. - Updated to 2002/02/12.
  163. * Mon Feb 10 2002 Ryoichi Ichiyama <ir@bellbind.net>
  164. - Updated to 2002/02/09.
  165. * Sat Feb 9 2002 Ryoichi Ichiyama <ir@bellbind.net>
  166. - Change SPEC file to VineLinux Style
  167. - Updated to 2002/02/05.
  168. * Fri Nov 2 2001 George Williams <gww@silcom.com>
  169. - went from three source packages down to just one which includes the others
  170. * Thu May 10 2001 George Williams <gww@silcom.com>
  171. - My first attempt at rpm, updated to 10 May sources
  172. * Tue May 01 2001 Scott Pakin <pakin@uiuc.edu>
  173. - Removed (unused) dynamic library files
  174. * Sun Apr 29 2001 Scott Pakin <pakin@uiuc.edu>
  175. - Upgraded from 220401 to 280401.
  176. * Tue Apr 24 2001 Scott Pakin <pakin@uiuc.edu>
  177. - Upgraded from 190401 to 220401.
  178. * Fri Apr 20 2001 Scott Pakin <pakin@uiuc.edu>
  179. - Upgraded from 020401 to 190401.
  180. * Tue Apr 10 2001 Scott Pakin <pakin@uiuc.edu>
  181. - Upgraded from 210301 to 020401.
  182. * Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
  183. - Initial release