Browse Source

fontforge: enable pyextensions

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6013 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 13 years ago
parent
commit
c554b3652b
1 changed files with 14 additions and 9 deletions
  1. 14 9
      f/fontforge/fontforge-vl.spec

+ 14 - 9
f/fontforge/fontforge-vl.spec

@@ -4,14 +4,14 @@ Summary: Outline and bitmap font editor
 Summary(ja): アウトライン・ビットマップフォントエディタ
 Name: fontforge
 Version: %{origversion}
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 License: BSD
 Group: Applications/Publishing
 URL: http://fontforge.sourceforge.net/
 Source: fontforge_full-%{origversion}.tar.bz2
 Source10: %{name}.desktop
 Source20: %{name}.png
-#Patch2:  fontforge-20100501-select-points-crash.patch
+Patch1:  fontforge-20090224-pythondl.patch
 Patch10: fontforge-browser.patch
 
 
@@ -46,18 +46,18 @@ fonts. It supports a range of font formats, including PostScript
 
 %prep
 %setup -q -n %{name}-%{origversion}
-#%patch2 -p1
+%patch1 -p1
 %patch10 -p1 -b .browser
 
 %{__cp} %{SOURCE10} %{name}.desktop
 
 %build
-%configure --with-freetype-bytecode=no -with-regular-link
+%configure --with-freetype-bytecode=no -with-regular-link --enable-pyextension
 %{__make} %{?_smp_mflags}
 
 %install
 %{__rm} -rf %{buildroot}
-%makeinstall
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
 desktop-file-install \
@@ -65,6 +65,8 @@ desktop-file-install \
 	--dir %{buildroot}%{_datadir}/applications \
 	fontforge.desktop
 
+rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/fontforge
+
 %{__install} -d -m0755 %{buildroot}%{_datadir}/pixmaps/
 %{__install} -m644 %{SOURCE20} %{buildroot}%{_datadir}/pixmaps/
 
@@ -95,12 +97,15 @@ update-desktop-database %{_datadir}/applications &>/dev/null || :
 %{_datadir}/applications/fontforge.desktop
 %{_datadir}/pixmaps/fontforge.png
 %{_datadir}/fontforge
-%{_mandir}/man1/fontforge.1*
-%{_mandir}/man1/fontimage.1*
-%{_mandir}/man1/fontlint.1*
-%{_mandir}/man1/sfddiff.1*
+%{_mandir}/man1/*.1*
+%{python_sitearch}/fontforge-1.0-py2.7.egg-info
+%{python_sitearch}/fontforge.so
+%{python_sitearch}/psMat.so
 
 %changelog
+* Fri Apr 20 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-2
+- enable pyextensions
+
 * Tue Feb 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 20120101-1
 - update to upstream git snapshot