File yast2-fonts.spec of Package yast2-fonts

# spec file for package yast2-fonts
# Copyright (c) 2016 SUSE LINUX 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

Name:           yast2-fonts
Version:        3.1.17
Release:        0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2

Requires:       fontconfig
Requires:       fonts-config >= 20150424
Requires:       yast2 >= 3.0.5
Requires:       yast2-ruby-bindings >= 1.2.0

BuildRequires:  update-desktop-files
BuildRequires:  yast2 >= 3.0.5
BuildRequires:  yast2-devtools >= 1.2.0
BuildRequires:  yast2-ruby-bindings >= 1.2.0
BuildRequires:  rubygem(yast-rake)
# extensions
BuildRequires:  font-specimen-devel
BuildRequires:  fontconfig-devel
BuildRequires:  freetype2-devel
BuildRequires:  ruby-devel
# for testing
BuildRequires:  dejavu-fonts
BuildRequires:  fonts-config >= 20150424
BuildRequires:  rubygem(rspec)

Summary:        YaST2 - Fonts Configuration
License:        GPL-2.0+
Group:          System/YaST

Module for configuring X11 fonts able to select preferred font families
as well as set rendering algorithms to be used.

%setup -n %{name}-%{version}

# build ruby bindings
rake compile

rake install DESTDIR="%{buildroot}"
# install ruby bindings
mkdir -p  %{buildroot}%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast
for ext in `ls src/ext`; do
  install -m 755 src/ext/$ext/$ %{buildroot}%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast

rake test:unit

%dir %{yast_libdir}/fonts
%dir %{yast_docdir}
%doc %{yast_docdir}/
%doc %{yast_docdir}/COPYING
%doc %{yast_docdir}/
%doc %{yast_docdir}/README.subpixel-patents

openSUSE Build Service is sponsored by