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