2012-11-06 15:24:26 +01:00
|
|
|
|
#
|
2012-11-09 13:38:16 +01:00
|
|
|
|
# spec file for package graphite2
|
2012-11-06 15:24:26 +01:00
|
|
|
|
#
|
2013-06-28 13:23:59 +02:00
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-11-06 15:24:26 +01: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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define libname libgraphite2-3
|
|
|
|
|
|
|
|
|
|
Name: graphite2
|
|
|
|
|
Version: 1.2.0
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Font rendering capabilities for complex non-Roman writing systems
|
2012-11-29 11:07:21 +01:00
|
|
|
|
License: LGPL-2.1+ or GPL-2.0+ or MPL-1.1
|
2012-11-06 15:24:26 +01:00
|
|
|
|
Group: Productivity/Publishing/Word
|
2012-11-29 11:07:21 +01:00
|
|
|
|
Url: http://sourceforge.net/projects/silgraphite/
|
2012-11-06 15:24:26 +01:00
|
|
|
|
Source0: http://downloads.sourceforge.net/silgraphite/graphite2-%{version}.tgz
|
2013-06-28 13:23:59 +02:00
|
|
|
|
Source1: baselibs.conf
|
2012-11-06 15:24:26 +01:00
|
|
|
|
BuildRequires: cmake
|
2012-11-29 11:07:21 +01:00
|
|
|
|
BuildRequires: freetype2-devel
|
2012-11-06 15:24:26 +01:00
|
|
|
|
BuildRequires: gcc-c++
|
2012-11-29 11:07:21 +01:00
|
|
|
|
BuildRequires: pkgconfig
|
2012-11-06 15:24:26 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-29 11:07:21 +01:00
|
|
|
|
Patch0: graphite2-arm.patch
|
2012-11-06 15:24:26 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
|
|
|
|
|
Software Development groups to provide rendering capabilities for complex
|
|
|
|
|
non-Roman writing systems. Graphite can be used to create “smart fonts” capable
|
|
|
|
|
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
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
|
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
|
|
|
|
|
Software Development groups to provide rendering capabilities for complex
|
|
|
|
|
non-Roman writing systems. Graphite can be used to create “smart fonts” capable
|
|
|
|
|
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}
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{libname} = %{version}
|
2012-11-29 11:07:21 +01:00
|
|
|
|
Requires: glibc-devel
|
2012-11-06 15:24:26 +01:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
|
|
|
|
|
Software Development groups to provide rendering capabilities for complex
|
|
|
|
|
non-Roman writing systems. Graphite can be used to create “smart fonts” capable
|
|
|
|
|
of displaying writing systems with various complex behaviors. With respect to
|
|
|
|
|
the Text Encoding Model, Graphite handles the "Rendering" aspect of writing
|
|
|
|
|
system implementation.
|
|
|
|
|
|
|
|
|
|
This package contains the libexttextcat development files.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2012-11-29 11:07:21 +01:00
|
|
|
|
%patch0
|
2012-11-06 15:24:26 +01:00
|
|
|
|
%build
|
|
|
|
|
cmake \
|
2012-11-29 11:07:21 +01:00
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -D_GNU_SOURCE" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%{optflags} -D_GNU_SOURCE" \
|
2012-11-06 15:24:26 +01:00
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
|
%if %{_lib} == lib64
|
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
|
%endif
|
|
|
|
|
-DGRAPHITE2_COMPARE_RENDERER=OFF \
|
|
|
|
|
-DVM_MACHINE_TYPE=direct \
|
2012-11-29 11:07:21 +01:00
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
|
|
|
|
2012-11-06 15:24:26 +01:00
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE COPYING
|
|
|
|
|
%{_bindir}/gr2fonttest
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/*.so.3*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}*.pc
|
|
|
|
|
%{_includedir}/%{name}*
|
|
|
|
|
%{_datadir}/%{name}*
|
|
|
|
|
|
|
|
|
|
%changelog
|