Accepting request 133957 from M17N:fonts

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/133957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/google-opensans-fonts?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2012-09-14 10:25:20 +00:00 committed by Git OBS Bridge
commit c334237efc
2 changed files with 20 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 4 12:39:06 CEST 2012 - pgajdos@suse.cz
- amend spec file to reflect new font packaging scheme
(see openFATE#313536);
-------------------------------------------------------------------
Thu May 17 09:10:13 UTC 2012 - pgajdos@suse.com

View File

@ -16,19 +16,20 @@
#
%define fontdir %{_datadir}/fonts/truetype
%define fontname opensans
Name: google-opensans-fonts
Version: 1.0
Release: 0
License: Apache-2.0
Summary: Humanist Sans Serif Typeface
Url: http://code.google.com/webfonts/family?family=Open+Sans
License: Apache-2.0
Group: System/X11/Fonts
Url: http://code.google.com/webfonts/family?family=Open+Sans
Source0: %{fontname}.tar.bz2
BuildRequires: bzip2
Requires(pre): %suseconfig_fonts_prereq
BuildRequires: dos2unix
BuildRequires: fontpackages-devel
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -43,26 +44,25 @@ open forms and a neutral, yet friendly appearance. It was
optimized for print, web, and mobile interfaces, and has
excellent legibility characteristics in its letterforms.
Designer: Steve Matteson
%prep
%setup -q -n %{fontname} -c %{fontname}
%build
# -- nothing to do --
chmod 644 %{fontname}/LICENSE.txt
dos2unix %{fontname}/LICENSE.txt
%install
mkdir -p %{buildroot}%{fontdir}/
install -m 0644 %{fontname}/*.ttf %{buildroot}%{fontdir}
mkdir -p %{buildroot}%{_ttfontsdir}/
install -m 0644 %{fontname}/*.ttf %{buildroot}%{_ttfontsdir}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%reconfigure_fonts_scriptlets
%files
%defattr(-, root,root)
%dir %{fontdir}/
%{fontdir}/*
%dir %{_ttfontsdir}/
%{_ttfontsdir}/*
%doc %{fontname}/LICENSE.txt
%changelog