Petr Gajdos 2012-05-17 09:20:47 +00:00 committed by Git OBS Bridge
parent 8ec664f4f9
commit 3655261fc2
2 changed files with 19 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 17 09:10:05 UTC 2012 - pgajdos@suse.com
- call spec-cleaner
-------------------------------------------------------------------
Wed Mar 14 16:42:20 UTC 2012 - cfarrell@suse.com

View File

@ -20,12 +20,12 @@
%define ttf_fontdir /usr/share/fonts/truetype
Name: gnu-free-fonts
Summary: Free UCS Outline Fonts
License: SUSE-GPL-3.0+-with-font-exception
Group: System/X11/Fonts
Version: 0.20111101
Release: 0
License: SUSE-GPL-3.0+-with-font-exception
Summary: Free UCS Outline Fonts
Url: http://savannah.nongnu.org/projects/freefont/
Group: System/X11/Fonts
# svn co svn://svn.savannah.gnu.org/freefont/trunk/freefont
# tar jcvf freefont-0.20080323.tar.bz2 freefont/
Source0: %{fontname}-%{version}.tar.bz2
@ -34,14 +34,17 @@ Source10: remove-kana-glyphs
Source11: GenerateTrueType
BuildRequires: fontforge >= 20080429
BuildRequires: python
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(pre): %suseconfig_fonts_prereq
# FIXME: This causes a rpmlint warning; change <= to < once there's a new upstream version
Obsoletes: %{fontname} <= 0.20111101
Provides: %{fontname} = %{version}
Provides: scalable-font-el, scalable-font-he, scalable-font-ru, scalable-font-bg
Provides: scalable-font-bg
Provides: scalable-font-el,
Provides: scalable-font-he,
Provides: scalable-font-ru,
Provides: locale(bg;el;he;ru;vi)
PreReq: %suseconfig_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A set of free outline (OpenType, for example) fonts covering the ISO
@ -56,14 +59,14 @@ find . -name CVS -type d | xargs rm -rf
sed -i 's/.$//' papers/eurotex2003/freefont.bib
%build
cp %{S:11} ./tools
cp %{SOURCE11} ./tools
chmod 755 $RPM_SOURCE_DIR/remove-kana-glyphs
$RPM_SOURCE_DIR/remove-kana-glyphs ./sfd/*.sfd
fontforge -lang=ff -script ./tools/GenerateTrueType *.sfd
%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/
mkdir -p %{buildroot}%{ttf_fontdir}/
install -c -m 644 *.ttf %{buildroot}%{ttf_fontdir}/
%post
%run_suseconfig_fonts
@ -71,7 +74,7 @@ install -c -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/
%postun
%run_suseconfig_fonts
%files
%files
%defattr(-, root,root)
%doc AUTHORS CREDITS ChangeLog README
%doc papers/