File adobe-sourcesanspro-fonts.spec of Package adobe-sourcesanspro-fonts
#
# spec file for package SourceSansPro-fonts
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, Netherlands
#
# 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/
#
Name: adobe-sourcesanspro-fonts
%define _name SourceSansPro
# Thre is no real version number, so we use the zip files release date.
Version: 1.038
Release: 0
Summary: A set of OpenType fonts designed for user interfaces
License: OFL-1.1
Group: System/X11/Fonts
Url: http://sourceforge.net/projects/sourcesans.adobe/
Source: %{_name}_FontsOnly-%{version}.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# FIXME: This causes a rpmlint warning; change <= to < once there's a new upstream version
Obsoletes: SourceSansPro-fonts < %version-%release
Provides: SourceSansPro-fonts = %version-%release
%description
Source Sans is a set of OpenType fonts that have been designed to work well in user interface (UI) environments, as well as in text setting for screen and print.
%prep
%setup -q -n %{_name}_FontsOnly-%{version}
# Fix line endings
sed -i 's/\r$//g' LICENSE.txt
%build
%install
install -d %{buildroot}%{_ttfontsdir}
install OTF/*.otf TTF/*.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root)
%doc LICENSE.txt *.html
%dir %{_ttfontsdir}
%{_ttfontsdir}/*
%changelog