File mingw32-libgraphite2.spec of Package mingw32-libgraphite2

#
# spec file for package mingw32-libgraphite2
#
# Copyright (c) 2014 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/
#


Name:           mingw32-libgraphite2
Version:        1.2.1
Release:        0
Summary:        A "smart font" rendering engine
License:        LGPL-2.1-or-later or GPL-2.0-or-later or MPL-1.1
Group:          System/Libraries
Url:            http://silgraphite.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/silgraphite/graphite2/graphite2-%{version}.tgz
Patch0:         graphite2-1.2.1-lowercase.patch
Patch1:         graphite2-1.2.1-win64.patch
Patch2:         graphite2-1.2.1-pkgconfig.patch
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Graphite is a system that can be used to create and use "smart fonts" capable
of displaying writing systems with various complex behaviors, such as:
contextual shaping, ligatures, reordering, split glyphs, bidirectionality,
stacking diacritics and complex positioning.

This library was designed and developed by the NRSI (Non-Roman Script
Initiative) within SIL International (www.sil.org) to act as a complement to
other smart font rendering technologies with limited practical local
extensability. Its purpose is to help meet the needs of a very large number
of "minority language" communities for local extensibility of complex script
behaviors.

The behavior of the rendering engine for a given writing system is specified
through extra tables added to a TrueType font.  These tables are generated by
compiling a GDL (Graphite Description Language) source file into a font using
grcompiler.

%package devel
Summary:        Development libraries for libgraphite2
Group:          Development/Libraries

%description devel
Graphite is a system that can be used to create and use "smart fonts" capable
of displaying writing systems with various complex behaviors, such as:
contextual shaping, ligatures, reordering, split glyphs, bidirectionality,
stacking diacritics and complex positioning.

This library was designed and developed by the NRSI (Non-Roman Script
Initiative) within SIL International (www.sil.org) to act as a complement to
other smart font rendering technologies with limited practical local
extensability. Its purpose is to help meet the needs of a very large number
of "minority language" communities for local extensibility of complex script
behaviors.

The behavior of the rendering engine for a given writing system is specified
through extra tables added to a TrueType font.  These tables are generated by
compiling a GDL (Graphite Description Language) source file into a font using
grcompiler.

This package contains the development libraries for libgraphite2

%_mingw32_debug_package

%prep
%setup -q -n graphite2-%{version}
%patch -P 0 -p1 -b .lowercase
%patch -P 1 -p1 -b .win64
%patch -P 2 -p1 -b .pkgconfig

%build
%{_mingw32_cmake} .
%{_mingw32_cmake_build}

%install
%{_mingw32_cmake_install}

%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/libgraphite2.dll

%files devel
%defattr(-,root,root,-)
%{_mingw32_bindir}/gr2fonttest.exe
%{_mingw32_includedir}/graphite2/*
%{_mingw32_libdir}/libgraphite2.dll.a
%{_mingw32_libdir}/pkgconfig/graphite2.pc
%{_mingw32_datadir}/graphite2/graphite2*.cmake

%changelog
openSUSE Build Service is sponsored by