#%define freetype_ver 2.1.9 %define libname lib%{name} %define docs_version 20071109 Name: fontforge Version: 20110222 Release: 1mamba Summary: An outline font editor Group: Applications/Fonts Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://fontforge.sourceforge.net/ Source: http://downloads.sourceforge.net/fontforge/fontforge_full-%{version}.tar.bz2 Source1: http://downloads.sourceforge.net/fontforge/fontforge_htdocs-%{docs_version}.tar.bz2 Source2: %{name}-desktop Patch: %{name}-20041203-Makefile.patch Patch1: %{name}-20081115-pango.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libcairo-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libglib-devel BuildRequires: libICE-devel BuildRequires: libjpeg-devel BuildRequires: libpango-devel BuildRequires: libpng-devel BuildRequires: libpython-devel BuildRequires: libSM-devel BuildRequires: libspiro-devel BuildRequires: libtiff-devel BuildRequires: libungif-devel BuildRequires: libuninameslist-devel BuildRequires: libX11-devel BuildRequires: libXft-devel BuildRequires: libXi-devel BuildRequires: libxkbui-devel BuildRequires: libxml2-devel BuildRequires: libz-devel BuildRequires: potrace BuildRequires: xdg-utils ## AUTOBUILDREQ-END BuildRequires: libxkbfile-devel Requires: potrace Requires: xdg-utils Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description FontForge is an outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap (bdf) fonts, or edit existing ones. Also lets you convert one format to another. FontForge has support for many macintosh font formats. %package -n %{libname} Group: System/Libraries Summary: The libraries for FontForge %description -n %{libname} FontForge is an outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap (bdf) fonts, or edit existing ones. Also lets you convert one format to another. FontForge has support for many macintosh font formats. This package contains shared libraries needed for FontForge. %package -n %{libname}-devel Group: Development/Libraries Summary: Devel files for FontForge Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description -n %{libname}-devel FontForge is an outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap (bdf) fonts, or edit existing ones. Also lets you convert one format to another. FontForge has support for many macintosh font formats. This package contains static libraries and header files need for development. %prep %setup -q #%patch1 -p1 #sed -i -e "s,-rpath \$(libdir),," fontforge/Makefile*.in mkdir docs tar xjf %{S:1} -C docs rm -rf docs/scripts chmod 644 docs/*.gif docs/*.html docs/*.png rm -rf docs/flags/CVS sed -i -e "s,\r,," docs/Big5.txt sed -i -e "s,\r,," docs/corpchar.txt tar xzf docs/cidmaps.tgz %build export CFLAGS='-DDOCDIR=\"%{_defaultdocdir}/%{name}-%{version}/docs\"' export LIBS=-lspiro %configure \ --with-multilayer \ --without-freetype-bytecode \ --with-regular-link \ --with-python=%{__python} \ PYTHON=%{__python} # --with-freetype-src=%{_builddir}/freetype-%{freetype_ver} %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall # FIXME: add a wrapper that sets XLIB_SKIP_ARGB_VISUALS=1 before # calling fontforge to make it work with Xgl mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin cat > %{buildroot}%{_bindir}/%{name} << _EOF #!/bin/bash # Copyright (c) 2007 by Silvan Calarco # Copyright (c) 2007 by Davide Madrisan XLIB_SKIP_ARGB_VISUALS=1 %{name}.bin \$@ _EOF chmod 775 %{buildroot}%{_bindir}/%{name} # install CMaps install -m 644 Adobe* %{buildroot}%{_datadir}/%{name} %find_lang FontForge # install icon install -D -m 644 docs/ffanvil32.png \ %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/%{name}.png # install desktop file install -D -m 644 %{S:2} \ %{buildroot}%{_datadir}/applications/%{name}.desktop %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f FontForge.lang %defattr(-,root,root) %{_bindir}/%{name} %{_bindir}/%{name}.bin %{_bindir}/fontimage %{_bindir}/fontlint %{_bindir}/sfddiff %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/crystalsvg/*/apps/%{name}.png %{_mandir}/man1/%{name}.* %{_mandir}/man1/fontimage.* %{_mandir}/man1/fontlint.* %{_mandir}/man1/sfddiff.* %doc AUTHORS LICENSE README-unix README-Unix.html %doc docs %files -n %{libname} %defattr(-,root,root) %{_libdir}/libfontforge.so.* %{_libdir}/libgdraw.so.* %{_libdir}/libgioftp.so.* %{_libdir}/libgunicode.so.* %{_libdir}/libgutils.so.* %files -n %{libname}-devel %defattr(-,root,root) %dir %{_includedir}/fontforge %{_includedir}/fontforge/*.h %{_libdir}/libfontforge.la %{_libdir}/libfontforge.so %{_libdir}/libgdraw.la %{_libdir}/libgdraw.so %{_libdir}/libgioftp.la %{_libdir}/libgioftp.so %{_libdir}/libgutils.la %{_libdir}/libgutils.so %{_libdir}/libgunicode.la %{_libdir}/libgunicode.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Sat Mar 26 2011 Silvan Calarco 20110222-1mamba - update to 20110222 * Tue May 11 2010 Automatic Build System 20100501-1mamba - automatic update by autodist * Fri Jul 10 2009 Automatic Build System 20090622-1mamba - automatic update by autodist * Thu Dec 04 2008 Silvan Calarco 20081115-1mamba - update to 20081115 * Fri Nov 23 2007 Stefano Cotta Ramusino 20071110-2mamba - added missing build requirements - rebuilt with regular link to shared libraries - added desktop file - added documentation files * Mon Nov 19 2007 Stefano Cotta Ramusino 20071110-1mamba - update to 20071110 * Mon Jun 18 2007 Silvan Calarco 20070511-2mamba - remove duplicated libraries in fontforge package * Wed Jun 06 2007 Aleph0 20070511-1mamba - update to 20070511 * Thu Feb 15 2007 Davide Madrisan 20061220-2qilnx - update ldconfig cache - package locale files using %%find_lang - do not ignore command line args in the wrapper for fontforge - created the library packages - build requires libxkbfile-devel * Tue Feb 13 2007 Silvan Calarco 20061220-1qilnx - update to version 20061220 by autospec - added a wrapper to display correctly under Xgl * Mon Sep 18 2006 Silvan Calarco 20060822-1qilnx - update to version 20060822 by autospec * Tue May 09 2006 Silvan Calarco 20060413-1qilnx - new version build * Thu Dec 09 2004 Davide Madrisan 20041203-1qilnx - package created by autospec