fontforge/fontforge.spec

218 lines
7.5 KiB
RPMSpec

#
# spec file for package fontforge (Version 20061025)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: fontforge
%if %{suse_version} > 910
BuildRequires: freetype2-devel giflib-devel libpng-devel libtiff-devel update-desktop-files xorg-x11-devel
%else
BuildRequires: XFree86-devel freetype2-devel libpng-devel libtiff-devel libungif update-desktop-files
%endif
License: BSD License and BSD-like
Group: Productivity/Graphics/Vector Editors
Autoreqprov: on
Obsoletes: PfaEdit
Provides: PfaEdit
Version: 20061025
Release: 1
URL: http://fontforge.sourceforge.net/
Source0: http://ovh.dl.sourceforge.net/sourceforge/fontforge/fontforge_full-20061025.tar.bz2
Source1: http://belnet.dl.sourceforge.net/sourceforge/fontforge/fontforge_htdocs-20061014.tar.bz2
Source2: http://belnet.dl.sourceforge.net/sourceforge/fontforge/fontforge_ja_htdocs-20060822.tar.bz2
Source10: %{name}.desktop
Source11: %name.png
Patch0: docdir.patch
Patch2: invalid-operation-same-variable-used-twice.patch
Patch3: fontforge-strncat.patch
Patch4: bugzilla-221210-locale-variable-used-before-set.patch
Patch5: bugzilla-225616-local-variable-used-before-set.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildPreReq: libjpeg libtiff libpng libungif
Summary: A Font Editor
%description
FontForge allows editing of outline and bitmap fonts. With it, you can
create new fonts or modify old ones. It also converts font formats and
can convert among PostScript (ASCII & binary Type 1, some Type 3s, and
some Type 0s), TrueType, OpenType (Type2), and CID-keyed fonts.
Authors:
--------
George Williams <gww@silcom.com>
Scott Pakin <pakin@uiuc.edu>
%prep
%setup -q -T -n fontforge-%{version} -b 0
%patch0 -p 1 -b .docdir
%patch2 -p 1
%patch3
%patch4 -p 1
%patch5 -p 1
mkdir docs
tar jxvf $RPM_SOURCE_DIR/fontforge_htdocs-20061014.tar.bz2 -C docs
tar jxvf $RPM_SOURCE_DIR/fontforge_ja_htdocs-20060822.tar.bz2 -C docs
tar zxvf docs/cidmaps.tgz
find . -name "*.html" -o -name "*.png" | xargs chmod 644
%build
%{?suse_update_config}
#libtoolize --force
#autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure --prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
%{_target_cpu}-suse-linux-gnu
make
%install
mkdir -p ${RPM_BUILD_ROOT}{%{_bindir},%{_libdir},%{_mandir}/man1,/usr/share/fontforge}
make -e bindir=$RPM_BUILD_ROOT/usr/bin \
sharedir=$RPM_BUILD_ROOT/usr/share/fontforge \
libdir=$RPM_BUILD_ROOT%{_libdir} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
localedir=$RPM_BUILD_ROOT/usr/share/locale \
install
pushd $RPM_BUILD_ROOT/usr/bin
ln -s fontforge pfaedit
popd
# install CMaps to be able to edit CID-keyed fonts:
install -m 644 Adobe* $RPM_BUILD_ROOT/usr/share/fontforge
%if %suse_version > 820
install -d $RPM_BUILD_ROOT%_datadir/pixmaps
install -m644 $RPM_SOURCE_DIR/%name.png $RPM_BUILD_ROOT%_datadir/pixmaps/%name.png
%find_lang FontForge
%suse_update_desktop_file -i %{name} VectorGraphics
%endif
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files -f FontForge.lang
%defattr(-,root,root)
%doc AUTHORS VERSION INSTALL LICENSE README* docs
%{_bindir}/*
%{_libdir}/lib*
%{_libdir}/pkgconfig/*
/usr/share/fontforge/
%doc %{_mandir}/man1/*.1*
%if %suse_version > 820
/usr/share/applications/%{name}.desktop
%_datadir/pixmaps/%name.png
%endif
%changelog -n fontforge
* Tue Dec 19 2006 - mfabian@suse.de
- update to 20061025.
fontimage program has been added.
- fix bugzilla #225616 ("local variable used before set").
* Fri Nov 17 2006 - mfabian@suse.de
- Bugzilla #221210: "local variable used before set"
* Mon Nov 06 2006 - ro@suse.de
- fix permissions on icon file
- fix gcc warning for strncat
* Tue Oct 17 2006 - mfabian@suse.de
- update to 20061014.
remove bugzilla-203490-local-variable-used-before-set.patch
(included upstream).
- Fix Bugzilla #211543 ("array subscript out of range).
- Fix invalid operation (like x = x++;)
* Thu Sep 07 2006 - mfabian@suse.de
- fix bugzilla #203490: "local variable used before set".
- add Japanese documentation.
* Wed Sep 06 2006 - mfabian@suse.de
- update to 20060822.
remove bugzilla-197499-local-variable-used-before-set.patch
(included upstream).
* Thu Aug 10 2006 - mfabian@suse.de
- Bugzilla 197499: "local variable used before set".
* Tue Jul 18 2006 - mfabian@suse.de
- update to 20060715.
fixes a crash when building freefont.
* Fri Mar 17 2006 - mfabian@suse.de
- Bugzilla #158759: "locale variable used before set".
(already fixed in latest upstream version).
* Thu Mar 09 2006 - mfabian@suse.de
- Bugzilla #153958: "array subscript out of range".
(already fixed in latest upstream version).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Oct 02 2005 - stbinner@suse.de
- fix capitalization of .desktop GenericName entry
* Thu Aug 04 2005 - mfabian@suse.de
- update to 20050803.
cannot update documentation because the download link for the
documentation is currently dead.
* Wed May 11 2005 - mfabian@suse.de
- update to 20050502.
- all .html and .png files should have mode 644.
- fix fontforge.desktop file (thanks to
Thomas Schraitle<thomas.schraitle@suse.de>).
* Tue Dec 14 2004 - hvogel@suse.de
- install icon
* Thu Nov 11 2004 - ro@suse.de
- fixed file list
* Wed Aug 18 2004 - mfabian@suse.de
- rename: PfaEdit -> fontforge (has been renamed upstream).
- update to 20040808.
* Mon Apr 26 2004 - ro@suse.de
- use no-strict-aliasing
* Thu Feb 26 2004 - mfabian@suse.de
- update to 040224.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Sat Aug 23 2003 - mfabian@suse.de
- make it build on older distributions.
* Mon Aug 18 2003 - mfabian@suse.de
- update to 030817.
- add desktop file.
* Fri May 16 2003 - mfabian@suse.de
- update binaries and documentation to 030512
- add .so and .la file to file list
- add "freetype2 freetype2-devel" to neededforbuild
* Wed Feb 12 2003 - mfabian@suse.de
- update binaries and documentation to 030211
* Wed Nov 13 2002 - mfabian@suse.de
- update to 021105
- use x-devel-packages instead of xf86 in # neededforbuild
- use dynamic linking
* Tue Oct 22 2002 - mfabian@suse.de
- update to 021021 and update documentation to 020910.
* Fri Jul 26 2002 - mfabian@suse.de
- update to version 020724
- include documentation, remove cidmaps.tar.bz2 and use updated
cidmaps.tgz from the documentation tar ball
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Tue Jan 22 2002 - mfabian@suse.de
- update to version 020121.
- updated cidmaps.tar.bz2
* Wed Sep 05 2001 - mfabian@suse.de
- adapted for SuSE, version 010905
* Thu May 10 2001 - George Williams <gww@silcom.com>
- My first attempt at rpm, updated to 10 May sources
* Tue May 01 2001 - Scott Pakin <pakin@uiuc.edu>
- Removed (unused) dynamic library files
* Sun Apr 29 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 220401 to 280401.
* Tue Apr 24 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 190401 to 220401.
* Fri Apr 20 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 020401 to 190401.
* Tue Apr 10 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 210301 to 020401.
Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
- Initial release