- Removed full stop in Summary.

- Set default file permission in files.
- Provides liberation-fonts and liberation-fonts-compat by
    liberation-fonts-common.
- Macro as much as possible in .spec.
This commit is contained in:
cchance 2010-01-12 05:11:51 +00:00
parent dbd0a2437e
commit 94965d8eb9

View File

@ -10,7 +10,7 @@ New.
Name: %{fontname}-fonts Name: %{fontname}-fonts
Summary: Fonts to replace commonly used Microsoft Windows fonts Summary: Fonts to replace commonly used Microsoft Windows fonts
Version: 1.05.2.20091019 Version: 1.05.2.20091019
Release: 2%{?dist} Release: 3%{?dist}
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two # The license of the Liberation Fonts is a EULA that contains GPLv2 and two
# exceptions: # exceptions:
# The first exception is the standard FSF font exception. # The first exception is the standard FSF font exception.
@ -33,11 +33,12 @@ Meta-package of Liberation fonts which installs Sans, Serif, and Monospace
families. families.
%package -n %{fontname}-fonts-common %package -n %{fontname}-fonts-common
Summary: Shared common files of Liberation font families. Summary: Shared common files of Liberation font families
Group: User Interface/X Group: User Interface/X
Requires: fontpackages-filesystem >= 1.13 Requires: fontpackages-filesystem >= 1.13
Obsoletes: liberation-fonts < 1.04.93-7 Obsoletes: liberation-fonts < 1.04.93-7
Obsoletes: liberation-fonts-compat <= 1.05.1.20090630 Obsoletes: liberation-fonts-compat <= 1.05.1.20090630
Provides: liberation-fonts, liberation-fonts-compat
%description -n %{fontname}-fonts-common %description -n %{fontname}-fonts-common
%common_desc %common_desc
@ -97,21 +98,28 @@ New.
%__make build %__make build
%install %install
rm -rf %{buildroot} %__rm -rf %{buildroot}
# fonts .ttf # fonts .ttf
install -m 0755 -d %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p ttf/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p ttf/*.ttf %{buildroot}%{_fontdir}
# catalogue # catalogue
install -m 0755 -d %{buildroot}%{catalogue} install -m 0755 -d %{buildroot}%{catalogue}
ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name} %__ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name}
# fonts.{dir,scale} # fonts.{dir,scale}
mkfontdir %{buildroot}%{_fontdir} mkfontdir %{buildroot}%{_fontdir}
mkfontscale %{buildroot}%{_fontdir} mkfontscale %{buildroot}%{_fontdir}
%clean %clean
rm -rf %{buildroot} %__rm -rf %{buildroot}
%changelog %changelog
* Tue Jan 12 2010 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-3.fc13
- Removed full stop in Summary.
- Set default file permission in files.
- Provides liberation-fonts and liberation-fonts-compat by
liberation-fonts-common.
- Macro as much as possible in .spec.
* Mon Oct 19 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-2.fc13 * Mon Oct 19 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-2.fc13
- Rebuilt. - Rebuilt.