255 lines
8.4 KiB
RPMSpec
255 lines
8.4 KiB
RPMSpec
#
|
|
# spec file for package fontforge (Version 20080203)
|
|
#
|
|
# Copyright (c) 2008 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
|
|
BuildRequires: dos2unix freetype2-devel giflib-devel libpng-devel libtiff-devel libxml2-devel update-desktop-files xorg-x11-devel
|
|
License: BSD 3-Clause
|
|
Group: Productivity/Graphics/Vector Editors
|
|
AutoReqProv: on
|
|
Obsoletes: PfaEdit
|
|
Provides: PfaEdit
|
|
Version: 20080203
|
|
Release: 1
|
|
Url: http://fontforge.sourceforge.net/
|
|
Source0: http://dfn.dl.sourceforge.net/sourceforge/fontforge/fontforge_full-20080203.tar.bz2
|
|
Source1: http://surfnet.dl.sourceforge.net/sourceforge/fontforge/fontforge_htdocs-20080203.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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
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>
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/Other
|
|
Requires: %{name} = %{version}l
|
|
Requires: pkgconfig >= 0.12
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
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
|
|
mkdir docs
|
|
tar jxvf $RPM_SOURCE_DIR/fontforge_htdocs-%{version}.tar.bz2 -C docs
|
|
tar jxvf $RPM_SOURCE_DIR/fontforge_ja_htdocs-20060822.tar.bz2 -C docs
|
|
chmod 644 docs/quadraticspline.gif
|
|
dos2unix docs/ja/*html docs/ja/nonBMP/index.html docs/corpchar.txt docs/Big5.txt
|
|
tar zxvf docs/cidmaps.tgz
|
|
find . -name "*.html" -o -name "*.png" | xargs chmod 644
|
|
find . -name CVS -type d | xargs rm -rf
|
|
|
|
%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} \
|
|
--with-multilayer \
|
|
%{_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
|
|
make DESTDIR=$RPM_BUILD_ROOT 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
|
|
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
|
|
|
|
%clean
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -f FontForge.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS VERSION LICENSE README* docs
|
|
%{_bindir}/*
|
|
%{_libdir}/lib*.so.*
|
|
%dir /usr/share/fontforge/
|
|
/usr/share/fontforge/*
|
|
%doc %{_mandir}/man1/*.1*
|
|
/usr/share/applications/%{name}.desktop
|
|
%_datadir/pixmaps/%name.png
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%dir %{_includedir}/fontforge/
|
|
%{_includedir}/fontforge/*
|
|
%{_libdir}/pkgconfig/*
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*.*a
|
|
|
|
%changelog
|
|
* Thu Feb 21 2008 mfabian@suse.de
|
|
- update to 20080203 (bugfix release, fixes also bnc#363014).
|
|
- create -devel sub-package.
|
|
* Thu Aug 02 2007 mfabian@suse.de
|
|
- update to 20070723 (user interace redesigned, many bugfixes).
|
|
- add ldconfig post scripts.
|
|
- remove executable flags from documentation.
|
|
- remove DOS line-endings from documentation.
|
|
* Tue Jul 24 2007 coolo@suse.de
|
|
- remove BuildPreRequires
|
|
* Tue Feb 06 2007 mfabian@suse.de
|
|
- Bugzilla #242363: uninitialized variable.
|
|
* Wed Jan 03 2007 mfabian@suse.de
|
|
- update to 20061220.
|
|
- remove fontforge-strncat.patch,
|
|
bugzilla-221210-locale-variable-used-before-set.patch,
|
|
bugzilla-225616-local-variable-used-before-set.patch
|
|
(included upstream).
|
|
- fix bugzilla #231126: "array subscript out of range".
|
|
* 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
|