File meslo-lg-fonts.spec of Package meslo-lg-fonts
#
# spec file for package meslo-lg-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 _ttf_fontdir %{_datadir}/fonts/truetype
Name: meslo-lg-fonts
Version: 1.0
Release: 0
License: Apache-2.0
Summary: Meslo LG Font Family
Url: https://github.com/andreberg/Meslo-Font
Group: System/X11/Fonts
# Source validator doesn't accept spaces in file names. Need to replace
# spaces with underscores.
#Source0: https://github.com/downloads/andreberg/Meslo-Font/Meslo LG v1.0.zip
Source0: Meslo_LG_v%{version}.zip
Source1: COPYING
BuildRequires: unzip
BuildRequires: xorg-x11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(pre): %suseconfig_fonts_prereq
%description
Meslo LG is a customized version of Apple's Menlo-Regular font (which is
a customized Bitstream Vera Sans Mono).
%prep
%setup -qn "Meslo LG v%{version}"
# %%doc doesn't work with spaces. Let's rename the file.
mv -f "About Meslo LG v1.pdf" About_Meslo_LG_v1.pdf
%build
cp %{SOURCE1} .
%install
for f in *.ttf ; do
install -Dm 644 "${f}" %{buildroot}%{_ttf_fontdir}/"${f}"
done
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root,-)
%doc About_Meslo_LG_v1.pdf
%dir %{_ttf_fontdir}
%{_ttf_fontdir}/*.ttf
%doc COPYING
%changelog