2012-11-06 14:24:26 +00:00
|
|
|
#
|
2012-11-09 12:38:16 +00:00
|
|
|
# spec file for package graphite2
|
2012-11-06 14:24:26 +00:00
|
|
|
#
|
2020-08-13 06:44:25 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2012-11-06 14:24:26 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-25 08:40:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-06 14:24:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define libname libgraphite2-3
|
|
|
|
Name: graphite2
|
2020-08-13 06:44:25 +00:00
|
|
|
Version: 1.3.14
|
2012-11-06 14:24:26 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Font rendering capabilities for complex non-Roman writing systems
|
2018-02-15 20:19:31 +00:00
|
|
|
License: LGPL-2.1-or-later OR MPL-2.0+
|
2020-08-13 06:44:25 +00:00
|
|
|
URL: http://graphite.sil.org/
|
2017-11-20 12:44:57 +00:00
|
|
|
Source0: https://github.com/silnrsi/graphite/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2013-06-28 11:23:59 +00:00
|
|
|
Source1: baselibs.conf
|
2015-08-07 08:24:06 +00:00
|
|
|
Patch0: graphite2-1.2.0-cmakepath.patch
|
2014-10-21 22:36:16 +00:00
|
|
|
Patch2: link-gcc-shared.diff
|
2012-11-06 14:24:26 +00:00
|
|
|
BuildRequires: cmake
|
2014-01-25 22:41:21 +00:00
|
|
|
BuildRequires: fontconfig-devel
|
2015-05-19 07:08:45 +00:00
|
|
|
BuildRequires: freetype2-devel
|
2012-11-06 14:24:26 +00:00
|
|
|
BuildRequires: gcc-c++
|
2014-01-25 22:41:21 +00:00
|
|
|
BuildRequires: glib2-devel
|
2012-11-29 10:07:21 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-12-05 12:01:54 +00:00
|
|
|
BuildRequires: python3-base
|
2020-08-13 06:44:25 +00:00
|
|
|
# libglib-2_0-0 pulls in shared-mime-info for mime detection in gvfs
|
|
|
|
#!BuildIgnore: shared-mime-info
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%description
|
2015-05-07 08:43:29 +00:00
|
|
|
Graphite2 is a project within SIL's Non-Roman Script Initiative and Language
|
2012-11-06 14:24:26 +00:00
|
|
|
Software Development groups to provide rendering capabilities for complex
|
2015-05-07 08:43:29 +00:00
|
|
|
non-Roman writing systems. Graphite can be used to create "smart fonts" capable
|
2012-11-06 14:24:26 +00:00
|
|
|
of displaying writing systems with various complex behaviors. With respect to
|
|
|
|
the Text Encoding Model, Graphite handles the "Rendering" aspect of writing
|
|
|
|
system implementation.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Text categorization library
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2015-05-07 08:43:29 +00:00
|
|
|
Graphite2 is a project within SIL's Non-Roman Script Initiative and Language
|
2012-11-06 14:24:26 +00:00
|
|
|
Software Development groups to provide rendering capabilities for complex
|
2015-05-07 08:43:29 +00:00
|
|
|
non-Roman writing systems. Graphite can be used to create "smart fonts" capable
|
2012-11-06 14:24:26 +00:00
|
|
|
of displaying writing systems with various complex behaviors. With respect to
|
|
|
|
the Text Encoding Model, Graphite handles the "Rendering" aspect of writing
|
|
|
|
system implementation.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files for Developing with %{name}
|
|
|
|
Requires: %{libname} = %{version}
|
2012-11-29 10:07:21 +00:00
|
|
|
Requires: glibc-devel
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%description devel
|
2015-05-07 08:43:29 +00:00
|
|
|
Graphite2 is a project within SIL's Non-Roman Script Initiative and Language
|
2012-11-06 14:24:26 +00:00
|
|
|
Software Development groups to provide rendering capabilities for complex
|
2015-05-07 08:43:29 +00:00
|
|
|
non-Roman writing systems. Graphite can be used to create "smart fonts" capable
|
2012-11-06 14:24:26 +00:00
|
|
|
of displaying writing systems with various complex behaviors. With respect to
|
|
|
|
the Text Encoding Model, Graphite handles the "Rendering" aspect of writing
|
|
|
|
system implementation.
|
|
|
|
|
2015-05-07 08:43:29 +00:00
|
|
|
This package contains the %{name} development files.
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%prep
|
2020-08-13 06:44:25 +00:00
|
|
|
%autosetup -p1 -n graphite-%{version}
|
2014-01-25 22:41:21 +00:00
|
|
|
|
2017-11-20 12:44:57 +00:00
|
|
|
# Make sure to use python3 everywhere
|
|
|
|
find tests -type f -exec sed -i "s|python|python3|g" {} +
|
|
|
|
find . -name *.cmake -exec sed -i "s|python|python3|g" {} +
|
2018-03-16 13:42:58 +00:00
|
|
|
|
|
|
|
%build
|
2014-01-25 22:41:21 +00:00
|
|
|
%cmake \
|
2012-11-06 14:24:26 +00:00
|
|
|
-DGRAPHITE2_COMPARE_RENDERER=OFF \
|
2014-01-26 12:05:53 +00:00
|
|
|
-DGRAPHITE2_NTRACING=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH=OFF
|
2014-01-25 22:41:21 +00:00
|
|
|
# Do not use O3, from debian
|
|
|
|
find . -type f \
|
|
|
|
-exec sed -i -e 's/\-O3//g' {} \;
|
2012-11-29 10:07:21 +00:00
|
|
|
|
2020-08-13 06:44:25 +00:00
|
|
|
%make_build
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%install
|
2014-01-25 22:41:21 +00:00
|
|
|
%cmake_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
2014-01-25 22:57:35 +00:00
|
|
|
%check
|
2018-03-16 13:42:58 +00:00
|
|
|
# exclude tests based on fonttool
|
|
|
|
cd build
|
|
|
|
ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} \
|
2018-10-25 08:40:26 +00:00
|
|
|
-E "padaukcmp1|chariscmp1|chariscmp2|annacmp1|schercmp1|awamicmp1|awamicmp2|awamicmp3"
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2020-08-13 06:44:25 +00:00
|
|
|
%license LICENSE COPYING
|
2012-11-06 14:24:26 +00:00
|
|
|
%{_bindir}/gr2fonttest
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/*.so.3*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}*.pc
|
|
|
|
%{_includedir}/%{name}*
|
2015-08-07 08:24:06 +00:00
|
|
|
%{_libdir}/%{name}*
|
2012-11-06 14:24:26 +00:00
|
|
|
|
|
|
|
%changelog
|