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