resolves: rhbz#477410 updated .spec w/ new renaming
This commit is contained in:
parent
76018e6c42
commit
c2dacfa776
@ -20,6 +20,9 @@ License: Liberation
|
|||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
URL: https://www.redhat.com/promo/fonts/
|
URL: https://www.redhat.com/promo/fonts/
|
||||||
Source0: liberation-fonts-1.04.93.devel.tar.gz
|
Source0: liberation-fonts-1.04.93.devel.tar.gz
|
||||||
|
Source1: 65-liberation-sans.conf
|
||||||
|
Source2: 65-liberation-serif.conf
|
||||||
|
Source3: 65-liberation-mono.conf
|
||||||
|
|
||||||
Requires: %{name}-sans >= %{version}-%{release}
|
Requires: %{name}-sans >= %{version}-%{release}
|
||||||
Requires: %{name}-serif >= %{version}-%{release}
|
Requires: %{name}-serif >= %{version}-%{release}
|
||||||
@ -59,32 +62,56 @@ Shared common files of Liberation font families.
|
|||||||
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
|
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
|
||||||
%{catalogue}/%{name}
|
%{catalogue}/%{name}
|
||||||
|
|
||||||
%define mk_pkg()\
|
%package -n %{fontname}-sans-fonts
|
||||||
%package -n %{fontname}-%1-fonts\
|
Summary: Sans fonts to replace commonly used Microsoft Arial
|
||||||
Summary: %3 fonts to replace commonly used Microsoft %4\
|
License: Liberation
|
||||||
License: Liberation\
|
Group: User Interface/X
|
||||||
Group: User Interface/X\
|
Obsoletes: %{name}-sans < %{version}-%{release}
|
||||||
Obsoletes: %{name}-%1 < %{version}-%{release}\
|
Requires: fontpackages-filesystem >= 1.13
|
||||||
Requires: fontpackages-filesystem >= 1.13\
|
Requires: %{fontname}-common-fonts = %{version}-%{release}
|
||||||
Requires: %{fontname}-common-fonts = %{version}-%{release}\
|
|
||||||
\
|
|
||||||
%description -n %{fontname}-%1-fonts\
|
|
||||||
%common_desc\
|
|
||||||
\
|
|
||||||
This is %3 TrueType fonts that replaced commonly used Microsoft %4.\
|
|
||||||
\
|
|
||||||
%_font_pkg -n %1 -f *-%{fontname}-%1*.conf Liberation%2-*.ttf
|
|
||||||
|
|
||||||
%mk_pkg sans Sans Sans Arial
|
%description -n %{fontname}-sans-fonts
|
||||||
%mk_pkg serif Serif Sans-serif Times_New_Roman
|
%common_desc
|
||||||
%mk_pkg mono Mono Monospace Courier_New
|
|
||||||
|
This is Sans TrueType fonts that replaced commonly used Microsoft Arial.
|
||||||
|
|
||||||
|
%_font_pkg -n sans -f 65-%{fontname}-sans.conf LiberationSans-*.ttf
|
||||||
|
|
||||||
|
%package -n %{fontname}-serif-fonts
|
||||||
|
Summary: San-serif fonts to replace commonly used Microsoft Times New Roman
|
||||||
|
License: Liberation
|
||||||
|
Group: User Interface/X
|
||||||
|
Obsoletes: %{name}-serif < %{version}-%{release}
|
||||||
|
Requires: fontpackages-filesystem >= 1.13
|
||||||
|
Requires: %{fontname}-common-fonts = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n %{fontname}-serif-fonts
|
||||||
|
%common_desc
|
||||||
|
|
||||||
|
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Times \
|
||||||
|
New Roman.
|
||||||
|
|
||||||
|
%_font_pkg -n serif -f 65-%{fontname}-serif.conf LiberationSerif-*.ttf
|
||||||
|
|
||||||
|
%package -n %{fontname}-mono-fonts
|
||||||
|
Summary: Monospace fonts to replace commonly used Microsoft Courier New
|
||||||
|
License: Liberation
|
||||||
|
Group: User Interface/X
|
||||||
|
Obsoletes: %{name}-sans < %{version}-%{release}
|
||||||
|
Requires: fontpackages-filesystem >= 1.13
|
||||||
|
Requires: %{fontname}-common-fonts = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n %{fontname}-mono-fonts
|
||||||
|
%common_desc
|
||||||
|
|
||||||
|
This is Monospace TrueType fonts that replaced commonly used Microsoft Courier \
|
||||||
|
New.
|
||||||
|
|
||||||
|
%_font_pkg -n mono -f 65-%{fontname}-mono.conf LiberationMono-*.ttf
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}.devel
|
%setup -q -n %{name}-%{version}.devel
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
@ -94,7 +121,16 @@ rm -rf %{buildroot}
|
|||||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
||||||
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
||||||
# fontconfig .conf
|
# fontconfig .conf
|
||||||
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
|
%__install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
|
||||||
|
%__install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
|
||||||
|
cd ../
|
||||||
|
for fconf in %{SOURCE1} %{SOURCE2} %{SOURCE3}
|
||||||
|
do
|
||||||
|
%__install -m 0644 $fconf %{buildroot}%{_fontconfig_templatedir}/
|
||||||
|
%__ln_s %{_fontconfig_templatedir}/`basename $fconf` \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}/`basename $fconf`
|
||||||
|
done
|
||||||
|
cd -
|
||||||
# catalogue
|
# catalogue
|
||||||
install -d %{buildroot}%{catalogue}
|
install -d %{buildroot}%{catalogue}
|
||||||
ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name}
|
ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name}
|
||||||
@ -102,6 +138,9 @@ ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name}
|
|||||||
mkfontdir %{buildroot}%{_fontdir}
|
mkfontdir %{buildroot}%{_fontdir}
|
||||||
mkfontscale %{buildroot}%{_fontdir}
|
mkfontscale %{buildroot}%{_fontdir}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 19 2009 Caius Chance <cchance@redhat.com> - 1.04.93-4.fc11
|
* Mon Jan 19 2009 Caius Chance <cchance@redhat.com> - 1.04.93-4.fc11
|
||||||
- Resolves: thbz#477410
|
- Resolves: thbz#477410
|
||||||
|
Loading…
Reference in New Issue
Block a user