fontforge-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. %define origversion 20120731-b
  2. Summary: Outline and bitmap font editor
  3. Summary(ja): アウトライン・ビットマップフォントエディタ
  4. Name: fontforge
  5. Version: 20120731b
  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. 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. * Wed Jan 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 20120731b-2
  101. - rebuild with libpng-1.6.12
  102. * Sat Nov 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120731b-1
  103. - update to 20120731-b
  104. - add BR: libspiro-devel
  105. * Fri Apr 20 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-2
  106. - enable pyextensions
  107. * Tue Feb 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-1
  108. - update to upstream git snapshot
  109. * Tue Feb 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-3
  110. - rebuild with python-2.7
  111. * Tue Jan 31 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-2
  112. - add patch2
  113. - http://sourceforge.net/mailarchive/message.php?msg_id=27133628
  114. * Sun Jul 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 20110222-1
  115. - new upstream version
  116. * Mon Sep 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100501-1
  117. - new upstream release
  118. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-3
  119. - rebuilt with rpm-4.8.1 for pkg-config
  120. * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 20090923-2
  121. - rebuilt with python-2.6.4-3
  122. * Sat Nov 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090923-1
  123. - new upstream release
  124. - add BR: pango-devel, cairo-devel
  125. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20090408-1
  126. - new upstream release
  127. * Mon Nov 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20081115-1
  128. - new upstream release
  129. * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-2
  130. - rebuild with python2.5
  131. * Sun Jun 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20080429-1
  132. - new upstream release
  133. - build with xorg-x11-7.3
  134. - add Requires: xdg-utils
  135. * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-1
  136. - rebuild with xorg-x11-7.3
  137. * Mon Jul 30 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070723-0vl1
  138. - new upstream release
  139. * Sat May 05 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 20070501-0vl1
  140. - new upstream release
  141. * Wed Sep 13 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 20060822-0vl1
  142. - new upstream release
  143. - add -q option to %%setup
  144. * Sun Jul 09 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 20060703-0vl1
  145. - new upstream release
  146. * Mon Oct 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 20050502-0vl1
  147. - new upstream release
  148. - update Summaries and descriptions, URL...
  149. - add fontforge icons and desktop file
  150. - add Patch10 to prefer htmlview or firefox for default browser
  151. * Sat Mar 12 2005 Jun NISHII <jun@vinelinux.org>
  152. - move to fontforge
  153. * Fri Jul 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  154. - Updated to 2002/07/15.
  155. * Fri Apr 19 2002 Ryoichi Ichiyama <ir@bellbind.net>
  156. - Updated to 2002/04/16.
  157. * Sun Mar 3 2002 Ryoichi Ichiyama <ir@bellbind.net>
  158. - Updated to 2002/03/02.
  159. * Mon Feb 18 2002 Ryoichi Ichiyama <ir@bellbind.net>
  160. - Updated to 2002/02/16.
  161. * Sat Feb 16 2002 Ryoichi Ichiyama <ir@bellbind.net>
  162. - Updated to 2002/02/14.
  163. * Thu Feb 14 2002 Ryoichi Ichiyama <ir@bellbind.net>
  164. - Updated to 2002/02/12.
  165. * Sun Feb 10 2002 Ryoichi Ichiyama <ir@bellbind.net>
  166. - Updated to 2002/02/09.
  167. * Sat Feb 9 2002 Ryoichi Ichiyama <ir@bellbind.net>
  168. - Change SPEC file to VineLinux Style
  169. - Updated to 2002/02/05.
  170. * Fri Nov 2 2001 George Williams <gww@silcom.com>
  171. - went from three source packages down to just one which includes the others
  172. * Thu May 10 2001 George Williams <gww@silcom.com>
  173. - My first attempt at rpm, updated to 10 May sources
  174. * Tue May 01 2001 Scott Pakin <pakin@uiuc.edu>
  175. - Removed (unused) dynamic library files
  176. * Sun Apr 29 2001 Scott Pakin <pakin@uiuc.edu>
  177. - Upgraded from 220401 to 280401.
  178. * Tue Apr 24 2001 Scott Pakin <pakin@uiuc.edu>
  179. - Upgraded from 190401 to 220401.
  180. * Fri Apr 20 2001 Scott Pakin <pakin@uiuc.edu>
  181. - Upgraded from 020401 to 190401.
  182. * Tue Apr 10 2001 Scott Pakin <pakin@uiuc.edu>
  183. - Upgraded from 210301 to 020401.
  184. * Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
  185. - Initial release