Drop bdftopcf, mkfontscale and fonttosfnt, they are in separate packages
now (#1932731)
This commit is contained in:
parent
04e2a6cb89
commit
57fcf192d1
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1 @@
|
||||
fonttosfnt-*.tar.bz2
|
||||
bdftopcf-*.tar.bz2
|
||||
mkfontscale-*.tar.bz2
|
||||
font-util-*.tar.bz2
|
||||
|
@ -1,13 +0,0 @@
|
||||
diff --git a/mkfontscale.c b/mkfontscale.c
|
||||
index a67f283..96e19a3 100644
|
||||
--- a/mkfontscale.c
|
||||
+++ b/mkfontscale.c
|
||||
@@ -326,7 +326,7 @@ getName(FT_Face face, int nid)
|
||||
unsigned int i;
|
||||
|
||||
if(getNameHelper(face, nid,
|
||||
- TT_PLATFORM_MICROSOFT, TT_MS_ID_UNICODE_CS, &name) ||
|
||||
+ TT_PLATFORM_MICROSOFT, -1, &name) ||
|
||||
getNameHelper(face, nid,
|
||||
TT_PLATFORM_APPLE_UNICODE, -1, &name)) {
|
||||
string = malloc(name.string_len / 2 + 1);
|
3
sources
3
sources
@ -1,4 +1 @@
|
||||
SHA512 (bdftopcf-1.1.tar.bz2) = 7b790e8d512ca2812ac889c156ef91c48798b4744a6857e5b17e0128764b5afa8c5426fe5de05a9819d64745116718db4221b3e657e3c2633465e87179c44bec
|
||||
SHA512 (font-util-1.3.1.tar.bz2) = 9fd6dd4c0a01ede5f0b09ec0f9d316267ca086e2ee9526a43a4e4d6ce3cd67c977293bd3cf440328ca417292fcae1579888b24b7259eaf012230890210d74889
|
||||
SHA512 (mkfontscale-1.2.1.tar.bz2) = 4d243160e1f7f8dfa6a8f53349c1a42a55fc99426455ebdef58352c5e951fce8b4f1fbd1061a76c9a148095b002eac372db1ae5e2647d2ccb4886635b317b18c
|
||||
SHA512 (fonttosfnt-1.2.1.tar.bz2) = 3d4ece61e31d4a5ed56923ecc1883e80a9308d2062d37345cb5be081bc2b004aadebf99a989601749a63e03eb641e0522d07773a57bca0b4710ed453e4f20742
|
||||
|
@ -1,6 +1,3 @@
|
||||
%global bdftopcf 1.1
|
||||
%global fonttosfnt 1.2.1
|
||||
%global mkfontscale 1.2.1
|
||||
%global font_util 1.3.1
|
||||
|
||||
# Must be kept in sync with xorg-x11-fonts!
|
||||
@ -10,85 +7,41 @@ Summary: X.Org X11 font utilities
|
||||
Name: xorg-x11-font-utils
|
||||
Epoch: 1
|
||||
Version: 7.5
|
||||
Release: 50%{?dist}
|
||||
Release: 51%{?dist}
|
||||
License: MIT
|
||||
URL: http://www.x.org
|
||||
|
||||
Source0: http://www.x.org/pub/individual/app/bdftopcf-%{bdftopcf}.tar.bz2
|
||||
Source1: http://www.x.org/pub/individual/app/fonttosfnt-%{fonttosfnt}.tar.bz2
|
||||
Source3: http://www.x.org/pub/individual/app/mkfontscale-%{mkfontscale}.tar.bz2
|
||||
Source4: http://www.x.org/pub/individual/font/font-util-%{font_util}.tar.bz2
|
||||
Source0: http://www.x.org/pub/individual/font/font-util-%{font_util}.tar.bz2
|
||||
# helper script used in post for xorg-x11-fonts
|
||||
Source5: xorg-x11-fonts-update-dirs
|
||||
Source6: xorg-x11-fonts-update-dirs.1
|
||||
|
||||
Patch0: mkfontscale-examine-all-encodings.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig(fontenc)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: gcc make libtool
|
||||
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
# Ensure that freetype is installed before this is when in the same transaction
|
||||
OrderWithRequires: freetype
|
||||
|
||||
Provides: bdftopcf = %{bdftopcf}
|
||||
Provides: fonttosfnt = %{fonttosfnt}
|
||||
# mkfontdir used to be a separate package, it's now in mkfontscale
|
||||
Provides: mkfontdir = %{mkfontscale}
|
||||
Provides: mkfontscale = %{mkfontscale}
|
||||
Provides: font-util = %{font_util}
|
||||
|
||||
Provides: font-utils = %{epoch}:%{version}-%{release}
|
||||
Provides: ucs2any = %{font_util}
|
||||
|
||||
Obsoletes: bdftopcf < 1.1-1
|
||||
Obsoletes: fonttosfnt < 1.2.1-1
|
||||
Obsoletes: mkfontdir < 1.2.1-1
|
||||
Obsoletes: mkfontscale < 1.2.1-1
|
||||
|
||||
%description
|
||||
X.Org X11 font utilities required for font installation, conversion, and
|
||||
generation.
|
||||
|
||||
%prep
|
||||
%setup -q -c %{name}-%{version} -a1 -a3 -a4
|
||||
pushd mkfontscale-*
|
||||
%patch0 -p1 -b .all-encodings
|
||||
popd
|
||||
%autosetup -n font-util-%{font_util}
|
||||
|
||||
%build
|
||||
# Build all apps
|
||||
{
|
||||
for app in * ; do
|
||||
pushd $app
|
||||
autoreconf -vif
|
||||
case $app in
|
||||
font-util-*)
|
||||
%configure --with-fontrootdir=%{_x11fontdir}
|
||||
;;
|
||||
*)
|
||||
%configure
|
||||
;;
|
||||
esac
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
done
|
||||
}
|
||||
%configure --with-fontrootdir=%{_x11fontdir}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
# Install all apps
|
||||
{
|
||||
for app in * ; do
|
||||
pushd $app
|
||||
%make_install
|
||||
popd
|
||||
done
|
||||
for i in */README ; do
|
||||
[ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
for i in */COPYING ; do
|
||||
grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
}
|
||||
%make_install
|
||||
|
||||
install -m 744 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/xorg-x11-fonts-update-dirs
|
||||
sed -i "s:@DATADIR@:%{_datadir}:" $RPM_BUILD_ROOT%{_bindir}/xorg-x11-fonts-update-dirs
|
||||
@ -98,20 +51,12 @@ install -m 744 -p -D %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man1/xorg-x11-fonts-up
|
||||
find $RPM_BUILD_ROOT -name bdftruncate\* -print0 | xargs -0 rm -f
|
||||
|
||||
%files
|
||||
%doc README-*
|
||||
%license COPYING-bdftopcf COPYING-[c-z]*
|
||||
%{_bindir}/bdftopcf
|
||||
%{_bindir}/fonttosfnt
|
||||
%{_bindir}/mkfontdir
|
||||
%{_bindir}/mkfontscale
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_bindir}/ucs2any
|
||||
%{_bindir}/xorg-x11-fonts-update-dirs
|
||||
%{_datadir}/aclocal/fontutil.m4
|
||||
%{_libdir}/pkgconfig/fontutil.pc
|
||||
%{_mandir}/man1/bdftopcf.1*
|
||||
%{_mandir}/man1/fonttosfnt.1*
|
||||
%{_mandir}/man1/mkfontdir.1*
|
||||
%{_mandir}/man1/mkfontscale.1*
|
||||
%{_mandir}/man1/ucs2any.1*
|
||||
%{_mandir}/man1/xorg-x11-fonts-update-dirs.1*
|
||||
%dir %{_x11fontdir}
|
||||
@ -119,6 +64,10 @@ find $RPM_BUILD_ROOT -name bdftruncate\* -print0 | xargs -0 rm -f
|
||||
%{_x11fontdir}/util/map-*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 25 2021 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-51
|
||||
- Drop bdftopcf, mkfontscale and fonttosfnt, they are in separate packages
|
||||
now (#1932731)
|
||||
|
||||
* Tue Feb 23 2021 Peter Hutterer <peter.hutterer@redhat.com> 1:7.5-50
|
||||
- Update to mkfontscale 1.2.1 which obsoletes the separate mkfontdir.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user