0c22d0
%define docs_version 20070501
Roozbeh Pournader 36084b
%define gettext_package FontForge
Roozbeh Pournader 36084b
cvsextras 02d6ee
Name:           fontforge
0c22d0
Version:        20070511
b43c7d
Release:        2%{?dist}
59dcc2
Summary:        Outline and bitmap font editor
cvsextras 02d6ee
cvsextras 02d6ee
Group:          Applications/Publishing
cvsextras 02d6ee
License:        BSD
cvsextras 02d6ee
URL:            http://fontforge.sourceforge.net/
0c22d0
Source0:        http://downloads.sourceforge.net/fontforge/fontforge_full-%{version}.tar.bz2
cvsextras 02d6ee
Source1:        fontforge.desktop
0c22d0
Source2:        http://downloads.sourceforge.net/fontforge/fontforge_htdocs-%{docs_version}.tar.bz2
cvsextras 02d6ee
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras 02d6ee
cvsextras 02d6ee
Requires:       htmlview
Roozbeh Pournader 58e6ea
cvsextras 02d6ee
BuildRequires:  libjpeg-devel
cvsextras 02d6ee
BuildRequires:  libtiff-devel
cvsextras 02d6ee
BuildRequires:  libpng-devel
cvsextras 02d6ee
BuildRequires:  libungif-devel
cvsextras 02d6ee
BuildRequires:  libxml2-devel
cvsextras 02d6ee
BuildRequires:  freetype-devel
cvsextras 02d6ee
BuildRequires:  desktop-file-utils
cvsextras 02d6ee
BuildRequires:  libuninameslist-devel
Roozbeh Pournader 58e6ea
BuildRequires:  libXt-devel
Roozbeh Pournader 58e6ea
BuildRequires:  xorg-x11-proto-devel
Roozbeh Pournader 563b23
BuildRequires:  gettext
Roozbeh Pournader 58e6ea
cvsextras 02d6ee
Obsoletes:      pfaedit
Roozbeh Pournader 36084b
Provides:       pfaedit
cvsextras 02d6ee
59dcc2
%description
cvsextras 02d6ee
FontForge (former PfaEdit) is a font editor for outline and bitmap
cvsextras 02d6ee
fonts. It supports a range of font formats, including PostScript
cvsextras 02d6ee
(ASCII and binary Type 1, some Type 3 and Type 0), TrueType, OpenType
cvsextras 02d6ee
(Type2) and CID-keyed fonts.
cvsextras 02d6ee
cvsextras 02d6ee
%prep
Roozbeh Pournader 36084b
%setup -q -n %{name}-%{version}
cvsextras 02d6ee
cvsextras 02d6ee
mkdir htdocs
5b3a8e
tar xjf %{SOURCE2} -C htdocs
cvsextras 02d6ee
rm -rf htdocs/scripts
5b3a8e
chmod 644 htdocs/*.gif
5b3a8e
chmod 644 htdocs/*.html
5b3a8e
chmod 644 htdocs/*.png
0c22d0
rm -rf htdocs/flags/CVS
cvsextras 02d6ee
mkdir cidmaps
cvsextras 02d6ee
tar xzf htdocs/cidmaps.tgz -C cidmaps
cvsextras 02d6ee
922c79
sed -i -e 's/-rpath $(libdir)//' fontforge/Makefile*.in
922c79
Roozbeh Pournader 36084b
# Fix bad line terminators
Roozbeh Pournader 36084b
%{__sed} -i 's/\r//' htdocs/Big5.txt
Roozbeh Pournader 36084b
%{__sed} -i 's/\r//' htdocs/corpchar.txt
Roozbeh Pournader 36084b
cvsextras 02d6ee
cvsextras 02d6ee
%build
fe7eb9
export CPPFLAGS='-DDOCDIR=\"%{_docdir}/%{name}-%{version}/htdocs\"'
5b3a8e
export LIBS=-lgif
cvsextras 02d6ee
%configure --with-regular-link --with-freetype-bytecode=no
Roozbeh Pournader 36084b
Roozbeh Pournader 36084b
make %{?_smp_mflags}
cvsextras 02d6ee
922c79
cvsextras 02d6ee
%install
cvsextras 02d6ee
rm -rf $RPM_BUILD_ROOT
cvsextras 02d6ee
# make install DESTDIR=$RPM_BUILD_ROOT fails.
cvsextras 02d6ee
%makeinstall
cvsextras 02d6ee
install -p -m 644 cidmaps/Adobe* $RPM_BUILD_ROOT%{_datadir}/fontforge
922c79
rm -f $RPM_BUILD_ROOT%{_libdir}/libg{draw,unicode}.{la,so}
cvsextras 02d6ee
922c79
install -Dpm 644 htdocs/ffanvil32.png \
922c79
  $RPM_BUILD_ROOT%{_datadir}/pixmaps/fontforge.png
cvsextras 02d6ee
cvsextras 02d6ee
desktop-file-install \
cvsextras 02d6ee
  --vendor fedora                                          \
cvsextras 02d6ee
  --dir $RPM_BUILD_ROOT%{_datadir}/applications            \
cvsextras 02d6ee
  --add-category X-Fedora                                  \
cvsextras 02d6ee
  %{SOURCE1}
cvsextras 02d6ee
0c22d0
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/fontforge.pc
922c79
fe7eb9
# The fontforge makefiles install htdocs as well, but we
fe7eb9
# prefer to have them under the standard RPM location, so
fe7eb9
# remove the extra copy
fe7eb9
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/fontforge
cvsextras 02d6ee
Roozbeh Pournader 36084b
# Find translations
Roozbeh Pournader 36084b
%find_lang %{gettext_package}
Roozbeh Pournader 36084b
cvsextras 02d6ee
%clean
cvsextras 02d6ee
rm -rf $RPM_BUILD_ROOT
cvsextras 02d6ee
cvsextras 02d6ee
cvsextras 02d6ee
%post -p /sbin/ldconfig
cvsextras 02d6ee
cvsextras 02d6ee
%postun -p /sbin/ldconfig
cvsextras 02d6ee
cvsextras 02d6ee
Roozbeh Pournader 36084b
%files -f %{gettext_package}.lang
cvsextras 02d6ee
%defattr(-,root,root,-)
922c79
%doc AUTHORS LICENSE htdocs
cvsextras 02d6ee
%{_bindir}/*
922c79
%{_libdir}/libg*.so.*
922c79
%{_datadir}/applications/*fontforge.desktop
922c79
%{_datadir}/fontforge
922c79
%{_datadir}/pixmaps/fontforge.png
cvsextras 02d6ee
%{_mandir}/man1/*.1*
cvsextras 02d6ee
cvsextras 02d6ee
cvsextras 02d6ee
%changelog
b43c7d
* Sun Aug 26 2007 Kevin Fenzi <kevin@tummy.com> - 20070511-2
b43c7d
- Rebuild for BuildID 
b43c7d
0c22d0
* Thu Jun  7 2007 Kevin Fenzi <kevin@tummy.com> - 20070511-1
0c22d0
- Update to upstream 20070511
0c22d0
- Remove some leftover CVS bits
0c22d0
- Remove useless .pc file. 
0c22d0
Roozbeh Pournader 8e2a84
* Fri Dec 22 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20061220-1
Roozbeh Pournader 8e2a84
- Update to upstream 20061220
Roozbeh Pournader 8e2a84
Roozbeh Pournader 08beb4
* Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20061025-2
Roozbeh Pournader 08beb4
- Add patch to fix fsSelection problem with DejaVu ExtraLight
Roozbeh Pournader 08beb4
Roozbeh Pournader d6c0d0
* Sat Nov 25 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20061025-1
Roozbeh Pournader d6c0d0
- Update to 20061025
Roozbeh Pournader d6c0d0
- Patch to correct usFirstCharIndex (George Williams)
Roozbeh Pournader d6c0d0
8dbbbe
* Fri Oct 20 2006 Kevin Fenzi <kevin@tummy.com> - 20061019-1
8dbbbe
- Update to 20061019
8dbbbe
7975ec
* Thu Oct 05 2006 Christian Iseli <christian.iseli@licr.org> 20060822-2
7975ec
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
7975ec
5b3a8e
* Thu Sep 21 2006 Kevin Fenzi <kevin@tummy.com> - 20060822-1
5b3a8e
- Update to 20060822
5b3a8e
- Remove unneeded patch
5b3a8e
- Add flag to compile right with giflib
5b3a8e
Roozbeh Pournader 563b23
* Sun Jun 18 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-7
Roozbeh Pournader 563b23
- Add BuildRequires on gettext, to make sure the package builds in minimal
Roozbeh Pournader 563b23
  mock environments
Roozbeh Pournader 563b23
Roozbeh Pournader 2f99b1
* Mon Feb 13 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-6
Roozbeh Pournader 2f99b1
- Rebuild for Fedora Extras 5
Roozbeh Pournader 2f99b1
Roozbeh Pournader ab0b6c
* Sun Feb 12 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-5
Roozbeh Pournader ab0b6c
- Add patch to fix crash (#181052, George Williams)
Roozbeh Pournader ab0b6c
Roozbeh Pournader 58e6ea
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-4
Roozbeh Pournader 58e6ea
- Add "BuildRequires:" on libXt-devel and xorg-x11-proto-devel
Roozbeh Pournader 58e6ea
Roozbeh Pournader 242b55
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-3
Roozbeh Pournader 242b55
- Really remove XFree86-devel BuildReq
Roozbeh Pournader 242b55
Roozbeh Pournader 69a21a
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-2
Roozbeh Pournader 69a21a
- Remove XFree86-devel BuildReq
Roozbeh Pournader 69a21a
Roozbeh Pournader 36084b
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20060125-1
Roozbeh Pournader 36084b
- Update to 20060125 (bug #170177)
Roozbeh Pournader 36084b
- Update docs to 20060114
Roozbeh Pournader 36084b
- Change versioning to reflect upstream and follow packaging guidelines
Roozbeh Pournader 36084b
- Provide pfaedit (bug #176548)
Roozbeh Pournader 36084b
- Use %%{?dist} tag (bug #176472)
Roozbeh Pournader 36084b
- Add localizations
Roozbeh Pournader 36084b
- No need to remove CVS subdir: fixed upstream
Roozbeh Pournader 36084b
- No need to covert man pages to UTF-8: fixed upstream
Roozbeh Pournader 36084b
- Fixed DOS line terminators
Roozbeh Pournader 36084b
- Use parallel build
Roozbeh Pournader 36084b
Roozbeh Pournader 36084b
* Sat Jul 30 2005 Owen Taylor <otaylor@redhat.com> - 0.0-2.20050729.fc4
301ea2
- Update to 20050729
301ea2
- Remove .docview patch, looking for HTMLview is upstream so no longer needed
301ea2
fe7eb9
* Tue May 10 2005 Owen Taylor <otaylor@redhat.com> - 0.0-2.20050502.fc4
fe7eb9
- Update to 20050502
fe7eb9
- Fix the build to look for the docs where we install them
fe7eb9
4735c8
* Sat Mar 19 2005 Owen Taylor <otaylor@redhat.com> - 0.0-2.20050310
4735c8
- Update to 20050310
4735c8
922c79
* Sat Jan 29 2005 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.0-2.20041231
922c79
- Avoid RPATH.
922c79
- Convert man pages to UTF-8.
922c79
- Fix pkgconfig and doc file permissions.
922c79
- Use updated upstream icon.
922c79
- Don't include installation documentation.
922c79
9f417e
* Mon Jan 17 2005 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-1.20041231
9f417e
- Updated to 20041231.
9f417e
9f417e
* Thu Oct 28 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20041014
9f417e
- Updated to 20041014.
9f417e
cvsextras de08e8
* Sun Sep 19 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040824
cvsextras de08e8
- Updated to 20040824.
cvsextras de08e8
cvsextras 02d6ee
* Wed Jun 30 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040618
cvsextras 02d6ee
- Updated to 20040618.
cvsextras 02d6ee
cvsextras 02d6ee
* Wed Jun  2 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040601
cvsextras 02d6ee
- Updated to 20040601.
cvsextras 02d6ee
cvsextras 02d6ee
* Tue May 11 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040509
cvsextras 02d6ee
- Updated to 20040509.
cvsextras 02d6ee
cvsextras 02d6ee
* Thu Apr 15 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040410
cvsextras 02d6ee
- Updated to 20040410.
cvsextras 02d6ee
cvsextras 02d6ee
* Sun Mar 28 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.1.20040321
cvsextras 02d6ee
- Updated to 20040321.
cvsextras 02d6ee
- Changed package name from pfaedit to fontforge.
cvsextras 02d6ee
- Added Obsoletes: pfaedit.
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Mar 15 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> - 0:0.0-0.fdr.8.040310
cvsextras 02d6ee
- Updated to 040310.
cvsextras 02d6ee
cvsextras 02d6ee
* Sat Feb  7 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.8.040204
cvsextras 02d6ee
- Updated to 040204.
cvsextras 02d6ee
- Removed some unnecessary directory ownerships (bug 1061).
cvsextras 02d6ee
cvsextras 02d6ee
* Sun Jan 25 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.8.040111
cvsextras 02d6ee
- Updated documentation to 040111.
cvsextras 02d6ee
cvsextras 02d6ee
* Sun Jan 11 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.7.040111
cvsextras 02d6ee
- Updated to 040111.
cvsextras 02d6ee
- Converted spec file to UTF-8.
cvsextras 02d6ee
cvsextras 02d6ee
* Wed Jan  7 2004 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.7.040102
cvsextras 02d6ee
- Updated to 040102.
cvsextras 02d6ee
cvsextras 02d6ee
* Sat Dec 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.7.031210
cvsextras 02d6ee
- Updated to 031210.
cvsextras 02d6ee
cvsextras 02d6ee
* Sat Dec 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.7.031205
cvsextras 02d6ee
- Updated to 031205.
cvsextras 02d6ee
cvsextras 02d6ee
* Fri Nov 28 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.7.031123
cvsextras 02d6ee
- Updated to 031123.
cvsextras 02d6ee
cvsextras 02d6ee
* Wed Nov 12 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.6.031110
cvsextras 02d6ee
- Updated to 031110.
cvsextras 02d6ee
- Eliminated build patch; incorporated in upstream tarball.
cvsextras 02d6ee
- Re-added documentation tarball since no longer included in source tarball.
cvsextras 02d6ee
- Added pfaicon.gif as Packaging directory disappeared from tarball.
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Oct 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.5.031012
cvsextras 02d6ee
- Refetched sources since upstream suddenly decided to change them (bug 497).
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Oct 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.4.031012
cvsextras 02d6ee
- Build req libuninameslist-devel instead of libuninameslist.
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Oct 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.3.031012
cvsextras 02d6ee
- Fixed non-standard value in desktop file (bug 497).
cvsextras 02d6ee
- Added libuninameslist support.
cvsextras 02d6ee
- Removed separate documentation tarball; mostly identical to those in source (bug 497).
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Oct 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.2.031012
cvsextras 02d6ee
- Patched to use dynamic linking instead of dlopen'ing (bug 497).
cvsextras 02d6ee
- Patched to use htmlview and use installed documentation (bug 497).
cvsextras 02d6ee
- Added build req libxml2-devel (bug 497).
cvsextras 02d6ee
- Disabled parallell make (bug 497).
cvsextras 02d6ee
- Added desktop entry (bug 497).
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Oct 13 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.1.031012
cvsextras 02d6ee
- Updated to 031012.
cvsextras 02d6ee
- Removed .so links.
cvsextras 02d6ee
- Removed empty AUTHORS file.
59dcc2
- Removed the samples subpackage.
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Sep 22 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.1.030904
cvsextras 02d6ee
- Updated to 030904.
cvsextras 02d6ee
cvsextras 02d6ee
* Wed Sep  3 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.1.030831
cvsextras 02d6ee
- Updated to 030831.
cvsextras 02d6ee
cvsextras 02d6ee
* Tue Aug 12 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.1.030803
cvsextras 02d6ee
- Updated to 030803.
cvsextras 02d6ee
cvsextras 02d6ee
* Mon Jul 21 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.3.030702
cvsextras 02d6ee
- Added font samples.
cvsextras 02d6ee
- Added ldconfig to post and postun.
cvsextras 02d6ee
- Added samples subpackage.
cvsextras 02d6ee
cvsextras 02d6ee
* Sun Jul  6 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.2.030702
cvsextras 02d6ee
- Removed README-MS and README-MacOSX from documentation.
cvsextras 02d6ee
cvsextras 02d6ee
* Thu Jul  3 2003 Marius L. Jøhndal <mariuslj at="" ifi.uio.no=""> 0:0.0-0.fdr.1.030512
cvsextras 02d6ee
- Initial RPM release based on Mandrake's PfaEdit-030512 RPM.