Petr Gajdos
b029d02cf7
(see openFATE#313536); OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/gnu-free-fonts?expand=0&rev=11
81 lines
2.7 KiB
RPMSpec
81 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package gnu-free-fonts
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define fontname freefont
|
|
%define _ttfontsdir /usr/share/fonts/truetype
|
|
|
|
Name: gnu-free-fonts
|
|
Version: 0.20111101
|
|
Release: 0
|
|
Summary: Free UCS Outline Fonts
|
|
License: SUSE-GPL-3.0+-with-font-exception
|
|
Group: System/X11/Fonts
|
|
Url: http://savannah.nongnu.org/projects/freefont/
|
|
# svn co svn://svn.savannah.gnu.org/freefont/trunk/freefont
|
|
# tar jcvf freefont-0.20080323.tar.bz2 freefont/
|
|
Source0: %{fontname}-%{version}.tar.bz2
|
|
Source10: remove-kana-glyphs
|
|
# TODO: remove GenerateTrueType script from previous version (20080323) as soon as the new one is working
|
|
Source11: GenerateTrueType
|
|
BuildRequires: fontforge >= 20080429
|
|
BuildRequires: fontpackages-devel
|
|
BuildRequires: python
|
|
%reconfigure_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-bg
|
|
Provides: scalable-font-el
|
|
Provides: scalable-font-he
|
|
Provides: scalable-font-ru
|
|
Provides: locale(bg;el;he;ru;vi)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A set of free outline (OpenType, for example) fonts covering the ISO
|
|
10646/Unicode UCS (Universal Character Set). The set consists of three
|
|
typefaces: one monospaced and two proportional (one with uniform and
|
|
one with modulated stroke).
|
|
|
|
%prep
|
|
%setup -n %{fontname}
|
|
find . -name CVS -type d | xargs rm -rf
|
|
# Fix DOS line endings
|
|
sed -i 's/.$//' papers/eurotex2003/freefont.bib
|
|
|
|
%build
|
|
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 %{buildroot}%{_ttfontsdir}/
|
|
install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir}/
|
|
|
|
%reconfigure_fonts_scriptlets
|
|
|
|
%files
|
|
%defattr(-, root,root)
|
|
%doc AUTHORS CREDITS ChangeLog README
|
|
%doc papers/
|
|
%{_ttfontsdir}
|
|
|
|
%changelog
|