756ed6
%global bdftopcf 1.1
cbe66d
%global fonttosfnt 1.2.1
756ed6
%global mkfontdir 1.0.7
756ed6
%global mkfontscale 1.1.3
756ed6
%global font_util 1.3.1
756ed6
756ed6
# Must be kept in sync with xorg-x11-fonts!
756ed6
%global _x11fontdir %{_datadir}/X11/fonts
756ed6
756ed6
Summary:    X.Org X11 font utilities
756ed6
Name:       xorg-x11-font-utils
756ed6
Epoch:      1
756ed6
Version:    7.5
cbe66d
Release:    41%{?dist}
756ed6
License:    MIT
756ed6
URL:        http://www.x.org
756ed6
756ed6
Source0:    http://www.x.org/pub/individual/app/bdftopcf-%{bdftopcf}.tar.bz2
756ed6
Source1:    http://www.x.org/pub/individual/app/fonttosfnt-%{fonttosfnt}.tar.bz2
756ed6
Source2:    http://www.x.org/pub/individual/app/mkfontdir-%{mkfontdir}.tar.bz2
756ed6
Source3:    http://www.x.org/pub/individual/app/mkfontscale-%{mkfontscale}.tar.bz2
756ed6
Source4:    http://www.x.org/pub/individual/font/font-util-%{font_util}.tar.bz2
756ed6
# helper script used in post for xorg-x11-fonts
756ed6
Source5:    xorg-x11-fonts-update-dirs
756ed6
Source6:    xorg-x11-fonts-update-dirs.1
756ed6
756ed6
Patch0:     mkfontscale-examine-all-encodings.patch
756ed6
756ed6
BuildRequires:  libtool
756ed6
BuildRequires:  pkgconfig(fontenc)
756ed6
BuildRequires:  pkgconfig(freetype2)
756ed6
BuildRequires:  pkgconfig(x11)
756ed6
BuildRequires:  pkgconfig(xorg-macros) >= 1.8
756ed6
BuildRequires:  zlib-devel
756ed6
756ed6
Provides:   bdftopcf = %{bdftopcf}
756ed6
Provides:   fonttosfnt = %{fonttosfnt}
756ed6
Provides:   mkfontdir = %{mkfontdir}
756ed6
Provides:   mkfontscale = %{mkfontscale}
756ed6
Provides:   font-util = %{font_util}
756ed6
756ed6
Provides:   font-utils = %{epoch}:%{version}-%{release}
756ed6
Provides:   ucs2any = %{font_util}
756ed6
756ed6
%description
756ed6
X.Org X11 font utilities required for font installation, conversion, and
756ed6
generation.
756ed6
756ed6
%prep
756ed6
%setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4
756ed6
pushd mkfontscale-*
756ed6
%patch0 -p1 -b .all-encodings
756ed6
popd
756ed6
756ed6
%build
756ed6
# Build all apps
756ed6
{
756ed6
for app in * ; do
756ed6
    pushd $app
756ed6
        autoreconf -vif
756ed6
        case $app in
756ed6
            font-util-*)
756ed6
                %configure --with-fontrootdir=%{_x11fontdir}
756ed6
                ;;
756ed6
            *)
756ed6
                %configure
756ed6
                ;;
756ed6
        esac
756ed6
        make %{?_smp_mflags}
756ed6
    popd
756ed6
done
756ed6
}
756ed6
756ed6
%install
756ed6
# Install all apps
756ed6
{
756ed6
    for app in * ; do
756ed6
        pushd $app
756ed6
            %make_install
756ed6
        popd
756ed6
    done
756ed6
    for i in */README ; do
756ed6
        [ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//')
756ed6
    done
756ed6
    for i in */COPYING ; do
756ed6
        grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//')
756ed6
    done
756ed6
}
756ed6
756ed6
install -m 744 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/xorg-x11-fonts-update-dirs
756ed6
sed -i "s:@DATADIR@:%{_datadir}:" $RPM_BUILD_ROOT%{_bindir}/xorg-x11-fonts-update-dirs
756ed6
756ed6
install -m 744 -p -D %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man1/xorg-x11-fonts-update-dirs.1
756ed6
756ed6
find $RPM_BUILD_ROOT -name bdftruncate\* -print0 | xargs -0 rm -f
756ed6
756ed6
%files
756ed6
%doc README-* COPYING-bdftopcf COPYING-[c-z]*
756ed6
%{_bindir}/bdftopcf
756ed6
%{_bindir}/fonttosfnt
756ed6
%{_bindir}/mkfontdir
756ed6
%{_bindir}/mkfontscale
756ed6
%{_bindir}/ucs2any
756ed6
%{_bindir}/xorg-x11-fonts-update-dirs
756ed6
%{_datadir}/aclocal/fontutil.m4
756ed6
%{_libdir}/pkgconfig/fontutil.pc
756ed6
%{_mandir}/man1/bdftopcf.1*
756ed6
%{_mandir}/man1/fonttosfnt.1*
756ed6
%{_mandir}/man1/mkfontdir.1*
756ed6
%{_mandir}/man1/mkfontscale.1*
756ed6
%{_mandir}/man1/ucs2any.1*
756ed6
%{_mandir}/man1/xorg-x11-fonts-update-dirs.1*
756ed6
%dir %{_x11fontdir}
756ed6
%dir %{_x11fontdir}/util
756ed6
%{_x11fontdir}/util/map-*
756ed6
756ed6
%changelog
cbe66d
* Mon May 24 2021 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-41
cbe66d
- fonttosfnt 1.2.1 (#1831118)
cbe66d
756ed6
* Wed Aug 01 2018 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-40
756ed6
- fonttosfnt 1.0.5 (#1607031)
756ed6
756ed6
* Thu May 17 2018 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-38
756ed6
- mkfontscale 1.1.3
756ed6
756ed6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.5-37
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
756ed6
756ed6
* Thu Jan 25 2018 Adam Jackson <ajax@redhat.com> - 7.5-36
756ed6
- bdftopcf 1.1
756ed6
756ed6
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.5-35
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
756ed6
756ed6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.5-34
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
756ed6
756ed6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.5-33
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
756ed6
756ed6
* Wed Sep 28 2016 Hans de Goede <hdegoede@redhat.com> - 1:7.5-32
756ed6
- bdftopcf 1.0.5
756ed6
756ed6
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.5-31
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
756ed6
756ed6
* Wed Jan 20 2016 Peter Hutterer <peter.hutterer@redhat.com>
756ed6
- s/define/global/
756ed6
756ed6
* Thu Oct 15 2015 Adam Jackson <ajax@redhat.com> 7.5-30
756ed6
- Drop bdftruncate utility, nothing in the OS uses it and we don't ship BDF
756ed6
  fonts in any case.
756ed6
756ed6
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:7.5-29
756ed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
756ed6
756ed6
* Fri May 01 2015 Simone Caronni <negativo17@gmail.com> - 1:7.5-28
756ed6
- font-util 1.3.1
756ed6
756ed6
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1:7.5-27
756ed6
- Rebuilt for Fedora 23 Change
756ed6
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
756ed6
756ed6
* Sat Jan 17 2015 Simone Caronni <negativo17@gmail.com> - 1:7.5-26
756ed6
- Update mkfontscale to 1.1.2.
756ed6
756ed6
* Mon Nov 10 2014 Simone Caronni <negativo17@gmail.com> - 1:7.5-25
756ed6
- Restore font-utils provider, required by some packages for building.
756ed6
 examine all platform=3 encodings (fixes #578460)