spec file clean up

This commit is contained in:
प्रविण सातपुते 2012-11-22 15:04:55 +05:30
parent 5756f6ee07
commit 64b0320a25
4 changed files with 17 additions and 14 deletions

View File

@ -1,7 +1,8 @@
%global priority 30-0
%global fontname liberation %global fontname liberation
%global fontconf30 30-0-%{fontname} %global fontconf %{priority}-%{fontname}
%global archivename %{name}-%{version} %global archivename %{name}-%{version}
%define common_desc \ %global common_desc \
The Liberation Fonts are intended to be replacements for the three most \ The Liberation Fonts are intended to be replacements for the three most \
commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier \ commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier \
New. New.
@ -11,14 +12,14 @@ 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: 2.00.1 Version: 2.00.1
Release: 3%{?dist} Release: 4%{?dist}
License: OFL License: OFL
Group: User Interface/X Group: User Interface/X
URL: http://fedorahosted.org/liberation-fonts/ URL: http://fedorahosted.org/liberation-fonts/
Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/%{archivename}.tar.gz Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/%{archivename}.tar.gz
Source2: 30-0-liberation-mono.conf Source2: %{name}-mono.conf
Source3: 30-0-liberation-sans.conf Source3: %{name}-sans.conf
Source4: 30-0-liberation-serif.conf Source4: %{name}-serif.conf
BuildArch: noarch BuildArch: noarch
BuildRequires: fontpackages-devel >= 1.13, xorg-x11-font-utils BuildRequires: fontpackages-devel >= 1.13, xorg-x11-font-utils
BuildRequires: fontforge BuildRequires: fontforge
@ -44,7 +45,6 @@ Obsoletes: liberation-fonts-compat <= 1.05.1.20090630
Shared common files of Liberation font families. Shared common files of Liberation font families.
%files -n %{fontname}-fonts-common %files -n %{fontname}-fonts-common
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README TODO %doc AUTHORS ChangeLog LICENSE README TODO
%dir %{_fontdir} %dir %{_fontdir}
%verify(not md5 size mtime) %{_fontdir}/fonts.dir %verify(not md5 size mtime) %{_fontdir}/fonts.dir
@ -93,7 +93,7 @@ New.
%setup -q -n %{archivename} %setup -q -n %{archivename}
%build %build
make make %{?_smp_mflags}
mv liberation-fonts-ttf-%{version}/* . mv liberation-fonts-ttf-%{version}/* .
@ -110,15 +110,15 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
# Repeat for every font family # Repeat for every font family
install -m 0644 -p %{SOURCE2} \ install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-mono.conf %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
install -m 0644 -p %{SOURCE3} \ install -m 0644 -p %{SOURCE3} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-sans.conf %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
install -m 0644 -p %{SOURCE4} \ install -m 0644 -p %{SOURCE4} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-serif.conf %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
for fconf in %{fontconf30}-mono.conf \ for fconf in %{fontconf}-mono.conf \
%{fontconf30}-sans.conf \ %{fontconf}-sans.conf \
%{fontconf30}-serif.conf; do %{fontconf}-serif.conf; do
ln -s %{_fontconfig_templatedir}/$fconf \ ln -s %{_fontconfig_templatedir}/$fconf \
%{buildroot}%{_fontconfig_confdir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
done done
@ -128,6 +128,9 @@ mkfontscale %{buildroot}%{_fontdir}
mkfontdir %{buildroot}%{_fontdir} mkfontdir %{buildroot}%{_fontdir}
%changelog %changelog
* Thu Nov 22 2012 Pravin Satpute <psatpute@redhat.com> - 2.00.1-4
- Improved spec file
* Tue Nov 20 2012 Pravin Satpute <psatpute@redhat.com> - 2.00.1-3 * Tue Nov 20 2012 Pravin Satpute <psatpute@redhat.com> - 2.00.1-3
- Resolved bug 878305 - Resolved bug 878305