640ba6
%define pkgname font-utils
640ba6
%define mkfontscale 1.1.0
640ba6
640ba6
Summary: X.Org X11 font utilities
640ba6
Name: xorg-x11-%{pkgname}
640ba6
# IMPORTANT: If package ever gets renamed to something else, remove the Epoch line!
640ba6
Epoch: 1
640ba6
Version: 7.5
640ba6
Release: 19%{?dist}
640ba6
License: MIT
640ba6
Group: User Interface/X
640ba6
URL: http://www.x.org
640ba6
640ba6
Source0: ftp://ftp.x.org/pub/individual/app/bdftopcf-1.0.4.tar.bz2
640ba6
Source1: ftp://ftp.x.org/pub/individual/app/fonttosfnt-1.0.3.tar.bz2
640ba6
Source2: ftp://ftp.x.org/pub/individual/app/mkfontdir-1.0.7.tar.bz2
640ba6
Source3: ftp://ftp.x.org/pub/individual/app/mkfontscale-%{mkfontscale}.tar.bz2
640ba6
Source4: ftp://ftp.x.org/pub/individual/font/font-util-1.3.0.tar.bz2
640ba6
# helper script used in %post for xorg-x11-fonts
640ba6
Source5: xorg-x11-fonts-update-dirs
640ba6
Source6: xorg-x11-fonts-update-dirs.1
640ba6
640ba6
Patch2: mkfontscale-examine-all-encodings.patch
640ba6
Patch3: mkfontscale-man-page-additions.patch
640ba6
640ba6
BuildRequires: pkgconfig(xfont) pkgconfig(x11)
640ba6
BuildRequires: libfontenc-devel >= 0.99.2-2
640ba6
BuildRequires: freetype-devel
640ba6
BuildRequires: zlib-devel
640ba6
BuildRequires: autoconf automake libtool
640ba6
BuildRequires: xorg-x11-util-macros
640ba6
640ba6
Provides: %{pkgname}
640ba6
Provides: bdftopcf, fonttosfnt, mkfontdir, mkfontscale, ucs2any
640ba6
640ba6
# bdftruncate isn't a perl script anymore (repackaged in f18)
640ba6
Provides: bdftruncate = %{epoch}:%{version}-%{release}
640ba6
Obsoletes: bdftruncate < %{epoch}:%{version}-%{release}
640ba6
640ba6
%description
640ba6
X.Org X11 font utilities required for font installation, conversion,
640ba6
and generation.
640ba6
640ba6
%prep
640ba6
%setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4
640ba6
oldpwd=$(pwd)
640ba6
cd mkfontscale-%{mkfontscale}
640ba6
%patch2 -p1 -b .all-encodings
640ba6
%patch3 -p1
640ba6
cd ${oldpwd}
640ba6
640ba6
%build
640ba6
# Build all apps
640ba6
{
640ba6
   for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util ; do
640ba6
      oldpwd=$(pwd)
640ba6
      cd $app-*
640ba6
      # this --with-mapdir should be redundant?
640ba6
      autoreconf -vif
640ba6
      %configure --with-mapdir=%{_datadir}/X11/fonts/util
640ba6
      make
640ba6
      cd ${oldpwd}
640ba6
   done
640ba6
}
640ba6
640ba6
%install
640ba6
rm -rf $RPM_BUILD_ROOT
640ba6
# Install all apps
640ba6
{
640ba6
    for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util; do
640ba6
		oldpwd=$(pwd)
640ba6
		cd $app-*
640ba6
		make install DESTDIR=$RPM_BUILD_ROOT
640ba6
		cd ${oldpwd}
640ba6
	done
640ba6
	for i in */README ; do
640ba6
		[ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//')
640ba6
	done
640ba6
	for i in */COPYING ; do
640ba6
		grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//')
640ba6
	done
640ba6
}
640ba6
640ba6
install -m 744 %{SOURCE5} ${RPM_BUILD_ROOT}%{_bindir}/xorg-x11-fonts-update-dirs
640ba6
sed -i "s:@DATADIR@:%{_datadir}:" ${RPM_BUILD_ROOT}%{_bindir}/xorg-x11-fonts-update-dirs
640ba6
640ba6
install -d ${RPM_BUILD_ROOT}%{_mandir}/man1/
640ba6
install -m 644 -p %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xorg-x11-fonts-update-dirs.1
640ba6
640ba6
%clean
640ba6
rm -rf $RPM_BUILD_ROOT
640ba6
640ba6
%files
640ba6
%defattr(-,root,root,-)
640ba6
%doc README-* COPYING-bdftopcf COPYING-[c-z]*
640ba6
%{_bindir}/bdftopcf
640ba6
%{_bindir}/bdftruncate
640ba6
%{_bindir}/fonttosfnt
640ba6
%{_bindir}/mkfontdir
640ba6
%{_bindir}/mkfontscale
640ba6
%{_bindir}/ucs2any
640ba6
%{_bindir}/xorg-x11-fonts-update-dirs
640ba6
%dir %{_datadir}/X11/fonts
640ba6
%dir %{_datadir}/X11/fonts/util
640ba6
%{_datadir}/X11/fonts/util/map-*
640ba6
%{_datadir}/aclocal/fontutil.m4
640ba6
%{_libdir}/pkgconfig/fontutil.pc
640ba6
%{_mandir}/man1/bdftopcf.1*
640ba6
%{_mandir}/man1/bdftruncate.1*
640ba6
%{_mandir}/man1/fonttosfnt.1*
640ba6
%{_mandir}/man1/mkfontdir.1*
640ba6
%{_mandir}/man1/mkfontscale.1*
640ba6
%{_mandir}/man1/ucs2any.1*
640ba6
%{_mandir}/man1/xorg-x11-fonts-update-dirs.1*
640ba6
640ba6
%changelog
640ba6
* Wed Aug 06 2014 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-19
640ba6
- Add a man page for xorg-x11-fonts-update-dirs (#948841)
640ba6
640ba6
* Wed Feb 12 2014 Adam Jackson <ajax@redhat.com> 7.5-18.1
640ba6
- Mass rebuild
640ba6
640ba6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:7.5-18
640ba6
- Mass rebuild 2013-12-27
640ba6
640ba6
* Thu Jul 04 2013 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-17
640ba6
- Ok, this time fix the right changelog date. Well, the wrong one, I mean.
640ba6
 
640ba6
* Thu Jul 04 2013 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-16
640ba6
- Fix a changelog date, some checking tools keep reminding me.
640ba6
640ba6
* Thu May 30 2013 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-15
640ba6
- Fix call to ttmkfdir (#967619)
640ba6
640ba6
* Wed May 22 2013 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-14
640ba6
- mkfontscale 1.1.0
640ba6
- mkfontdir 1.0.7
640ba6
- bdftopcf 1.0.4
640ba6
- Document mkfontscale's -u/-U in the man page (#948841)
640ba6
640ba6
* Mon Apr 08 2013 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-13
640ba6
- Fix opendir error message during font install, missing encodingsdir/large
640ba6
  was missing (#928305)
640ba6
640ba6
* Thu Mar 07 2013 Dave Airlie <airlied@redhat.com> 7.5-12
640ba6
- autoreconf for aarch64
640ba6
640ba6
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.5-11
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
640ba6
640ba6
* Fri Dec 14 2012 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-10
640ba6
- Add the epoch to the Provides bdftruncate. bdftruncate had an epoch for
640ba6
  years, make sure that stays alive
640ba6
640ba6
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.5-9
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
640ba6
640ba6
* Thu Mar 01 2012 Adam Jackson <ajax@redhat.com> 7.5-8
640ba6
- font-util 1.3.0
640ba6
- Un-subpackage bdftruncate, it's not a perl script anymore.
640ba6
640ba6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.5-7
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
640ba6
640ba6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.5-6
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
640ba6
640ba6
* Wed Dec 22 2010 Matěj Cepl <mcepl@redhat.com> - 1:7.5-5
640ba6
- pushd/popd are slightly evil, removing (#664701, #664699)
640ba6
640ba6
* Wed Nov 24 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-4
640ba6
- Fix need_ttmkfdir test in xorg-x11-fonts-update-dirs script (#655925)
640ba6
640ba6
* Fri Nov 19 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-3
640ba6
- Add xorg-x11-fonts-update-dirs, a script to automake mkfontscale and
640ba6
  friends as well as generate encodings directories during %post (used by
640ba6
  xorg-x11-fonts). (#634039)
640ba6
640ba6
* Mon Nov 08 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-2
640ba6
- mkfontdir 1.0.6
640ba6
640ba6
* Mon Nov 01 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-1
640ba6
- font-util 1.2.0
640ba6
- mkfontscale 1.0.8
640ba6
- bdftopcf 1.0.3
640ba6
640ba6
* Tue Oct 05 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.4-3
640ba6
- font-util 1.1.2
640ba6
640ba6
* Fri Jul 09 2010 Peter Hutterer <peter.hutterer@redhat.com> 1:7.4-2
640ba6
- Fix build for missing bdftruncate COPYING file.
640ba6
640ba6
* Thu Jul 08 2010 Adam Jackson <ajax@redhat.com> 7.4-1
640ba6
- Install COPYING for bdftruncate too.
640ba6
640ba6
* Fri Apr 09 2010 Matěj Cepl <mcepl@redhat.com> - 1:7.2-12
640ba6
- examine all platform=3 encodings (fixes #578460)
640ba6
640ba6
* Tue Nov 10 2009 Adam Jackson <ajax@redhat.com> 7.2-11
640ba6
- font-util 1.1.0
640ba6
640ba6
* Tue Oct 13 2009 Adam Jackson <ajax@redhat.com> 7.2-10
640ba6
- mkfontscale 1.0.7
640ba6
- mkfontdir 1.0.5
640ba6
640ba6
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.2-9
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
640ba6
640ba6
* Thu Jul 23 2009 Adam Jackson <ajax@redhat.com> 7.2-8
640ba6
- Un-require xorg-x11-filesystem
640ba6
- Other general spec cleanup.
640ba6
640ba6
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.2-7
640ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
640ba6
640ba6
* Tue Jul 15 2008 Adam Jackson <ajax@redhat.com> 7.2-6
640ba6
- Fix license tag.
640ba6
640ba6
* Mon Jul 07 2008 Adam Jackson <ajax@redhat.com> 7.2-5
640ba6
- Fix Source url for font-util.
640ba6
640ba6
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:7.2-4
640ba6
- Autorebuild for GCC 4.3
640ba6
640ba6
* Mon Dec 10 2007 Adam Jackson <ajax@redhat.com> 1:7.2-3
640ba6
- Move bdftruncate (and its perl dependency) to a subpackage.
640ba6
- %%doc for the non-empty READMEs and non-stub COPYINGs.
640ba6
640ba6
* Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 1:7.2-2
640ba6
- Rebuild for build id
640ba6
640ba6
* Thu Apr 26 2007 Adam Jackson <ajax@redhat.com> 1:7.2-1
640ba6
- bdftopcf 1.0.1
640ba6
- Superstition bump to 7.2-1
640ba6
640ba6
* Mon Mar 26 2007 Adam Jackson <ajax@redhat.com> 1:7.1-5
640ba6
- mkfontdir 1.0.3
640ba6
640ba6
* Fri Jan 05 2007 Adam Jackson <ajax@redhat.com> 1:7.1-4.fc7
640ba6
- fonttosfnt 1.0.3
640ba6
640ba6
* Thu Aug 17 2006 Adam Jackson <ajackson@redhat.com> 1:7.1-3
640ba6
- Remove X11R6 symlinks.
640ba6
640ba6
* Fri Jul 14 2006 Adam Jackson <ajackson@redhat.com> 1:7.1-2
640ba6
- Added fonttosfnt-1.0.1-freetype22-build-fix.patch to fix a build failure
640ba6
  with new freetype 2.2.
640ba6
640ba6
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:7.1-1.1
640ba6
- rebuild
640ba6
640ba6
* Wed Jun 21 2006 Mike A. Harris <mharris@redhat.com> 1:7.1-1
640ba6
- Update to font-util-1.0.1 from X11R7.1
640ba6
- Set package version to X11 release the tarballs are based from.
640ba6
640ba6
* Wed Apr 26 2006 Adam Jackson <ajackson@redhat.com> 1:1.0.2-2
640ba6
- Update mkfontdir
640ba6
640ba6
* Wed Feb 22 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-3
640ba6
- Remove "Obsoletes: xorg-x11-font-utils" as the package should not obsolete
640ba6
  itself.  Leftover from the original package template it seems.  (#182439)
640ba6
640ba6
* Fri Feb 17 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-2
640ba6
- Added with_X11R6_compat macro to conditionalize inclusion of mkfontdir and
640ba6
  mkfontscale symlinks in the old X11R6 locations, pointing to the X11R7
640ba6
  binaries.  This will provide backward compatibilty for Fedora Core 5, however
640ba6
  3rd party developers and rpm package maintainers should update to using the
640ba6
  new X11R7 locations immediately, as these compatibility links are temporary,
640ba6
  and will be removed from a future OS release.
640ba6
- Remove system directories from file manifest to appease the banshees.
640ba6
640ba6
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-1.2
640ba6
- bump again for double-long bug on ppc(64)
640ba6
640ba6
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-1.1
640ba6
- rebuilt for new gcc4.1 snapshot and glibc changes
640ba6
640ba6
* Wed Jan 18 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-1
640ba6
- Updated all utilities to the versions shipped in X11R7.0.
640ba6
640ba6
* Thu Dec 15 2005 Mike A. Harris <mharris@redhat.com> 1:1.0.0-1
640ba6
- Updated all utilities to version 1.0.0 from X11R7 RC4.
640ba6
- Updated font-util-1.0.0-mapdir-use-datadir-fix.patch to work with RC4.
640ba6
- Added font-util-1.0.0-autoconf-add-with-fontdir-option.patch to add a new
640ba6
  variable "fontdir" to the fontutil.pc file which all of the font packages
640ba6
  can autodetect and use instead of having to put manual fontdir overrides
640ba6
  in every single rpm package.
640ba6
640ba6
* Tue Dec 13 2005 Mike A. Harris <mharris@redhat.com> 1:0.99.2-1
640ba6
- Updated bdftopcf, fonttosfnt to version 0.99.3, and mkfontdir, mkfontscale,
640ba6
  and font-util to version 0.99.2 from X11R7 RC3.
640ba6
- Changed manpage dir from man1x back to man1 due to another upstream change.
640ba6
- Added fontutil.m4 to file manifest.
640ba6
640ba6
* Tue Nov 22 2005 Mike A. Harris <mharris@redhat.com> 1:0.99.1-1
640ba6
- Changed package version to 0.99.1 to match the upstream font-util tarball
640ba6
  version, and added "Epoch: 1" to the package for upgrades.
640ba6
- Added font-util-0.99.1-mapdir-use-datadir-fix.patch to fix the font-util
640ba6
  mapfiles data to install into datadir instead of libdir (#173943)
640ba6
- Added "Requires(pre): libfontenc >= 0.99.2-2" to force a version of
640ba6
  libfontenc to be installed that fixes bug #173453, and to also force it
640ba6
  to be installed before xorg-x11-font-utils in a multi-package rpm
640ba6
  transaction, which will ensure that when font packages get installed
640ba6
  during upgrades via anaconda or yum, that the right libfontenc is being
640ba6
  used by mkfontscale/mkfontdir.
640ba6
- Added ">= 0.99.2-2" to BuildRequires for libfontenc, as a convenience to
640ba6
  people rebuilding xorg-x11-font-utils, as they'll need to install the new
640ba6
  libfontenc now anyway before they can install the font-utils package.
640ba6
640ba6
* Mon Nov 14 2005 Jeremy Katz <katzj@redhat.com> 6.99.99.902-2
640ba6
- require newer filesystem (#172610)
640ba6
640ba6
* Wed Nov 09 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.902-1
640ba6
- Updated bdftopcf, fonttosfnt, mkfontdir, mkfontscale to version 0.99.1 from
640ba6
  X11R7 RC1.
640ba6
640ba6
* Wed Nov 09 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-3
640ba6
- Glob util/map-* files in file manifest.
640ba6
- Added missing "Obsoletes: xorg-x11-font-utils".
640ba6
- Added "BuildRequires: pkgconfig".
640ba6
640ba6
* Sun Nov 06 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-2
640ba6
- Added font-util-0.99.1 to package, from X11R7 RC1 release, which provides
640ba6
  ucs2any, bdftruncate.
640ba6
640ba6
* Wed Oct 26 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-1
640ba6
- Updated bdftopcf, fonttosfnt, mkfontdir, mkfontscale to version 0.99.1 from
640ba6
  X11R7 RC1.
640ba6
- Bumped package version to 6.99.99.901, the X11R7 RC1 release version tag.
640ba6
- Updated file manifest to to find the manpages in "man1x".
640ba6
640ba6
* Wed Aug 24 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-1
640ba6
- Initial build.