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