bitstream-vera-fonts/bitstream-vera-fonts.spec

61 lines
1.8 KiB
RPMSpec

#
# spec file for package bitstream-vera
#
# Copyright (c) 2011 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 bitstream-vera
%define ttf_fontdir /usr/share/fonts/truetype
Name: bitstream-vera-fonts
License: SUSE-Bitstream-Vera
Group: System/X11/Fonts
PreReq: %suseconfig_fonts_prereq
Version: 1.10
Release: 304
Summary: Bitstream Vera(tm) Truetype fonts
Source: ttf-%{fontname}-%{version}.tar.bz2
Url: http://www.bitstream.com
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# FIXME: This causes a rpmlint warning; change <= to < once there's a new upstream version
Obsoletes: %{fontname} <= 1.10
Provides: %{fontname} = %{version}
%description
The package contains the "Vera" truetype fonts from Bitstream Inc.
%prep
%setup -n ttf-%{fontname}-%{version}
%build
%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}
install -m 0644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root,755)
%doc COPYRIGHT.TXT RELEASENOTES.TXT README.TXT local.conf
/usr/share/fonts/truetype
%changelog