2007-08-24 01:05:25 +02:00
|
|
|
#
|
2011-03-09 17:13:36 +01:00
|
|
|
# spec file for package freetype2
|
2007-08-24 01:05:25 +02:00
|
|
|
#
|
2012-02-14 12:24:14 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-08-24 01:05:25 +02:00
|
|
|
#
|
2008-08-21 18:08:44 +02: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.
|
|
|
|
|
2007-08-24 01:05:25 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-14 12:24:14 +01:00
|
|
|
|
2007-08-24 01:05:25 +02:00
|
|
|
Name: freetype2
|
2011-07-11 10:45:49 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: zlib-devel
|
2008-11-02 15:40:54 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: freetype2-64bit
|
|
|
|
%endif
|
|
|
|
#
|
Accepting request 108554 from home:namtrac:branches:M17N
- Update to version 2.4.9
* Fixes CVE-2012-1126, CVE-2012-1127, CVE-2012-1128, CVE-2012-1129,
CVE-2012-1130, CVE-2012-1131, CVE-2012-1132, CVE-2012-1133,
CVE-2012-1134, CVE-2012-1135, CVE-2012-1136, CVE-2012-1137,
CVE-2012-1138, CVE-2012-1139, CVE-2012-1140, CVE-2012-1141,
CVE-2012-1142, CVE-2012-1143, CVE-2012-1144
* The `ENCODING -1 <n>' format of BDF fonts is now supported.
* For BDF fonts, support for the whole Unicode encoding range has
been added.
* Better TTF support for x_ppem != y_ppem.
* `FT_Get_Advances' sometimes returned bogus values.
- Update to version 2.4.9
* The demo programs no longer recognize and handle default
suffixes; you now have to always specify the complete font name.
* Better rendering and LCD mode cycling added to ftview.
OBS-URL: https://build.opensuse.org/request/show/108554
OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=61
2012-03-09 02:09:38 +01:00
|
|
|
Version: 2.4.9
|
2011-12-22 16:57:14 +01:00
|
|
|
Release: 0
|
2007-08-24 01:05:25 +02:00
|
|
|
Summary: A TrueType Font Library
|
2012-02-14 12:23:48 +01:00
|
|
|
License: SUSE-Freetype or GPL-2.0+
|
2011-12-22 16:57:14 +01:00
|
|
|
Group: System/Libraries
|
2011-07-11 10:45:49 +02:00
|
|
|
Url: http://www.freetype.org
|
2007-08-24 01:05:25 +02:00
|
|
|
Source0: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
|
|
|
|
Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
|
2009-12-30 00:17:28 +01:00
|
|
|
Source3: baselibs.conf
|
2007-08-24 01:05:25 +02:00
|
|
|
Patch3: freetype2-bitmap-foundry.patch
|
2008-07-24 23:00:54 +02:00
|
|
|
Patch9: fix-build.patch
|
2010-12-04 23:27:10 +01:00
|
|
|
Patch10: freetype2-no_rpath.patch
|
2007-10-03 00:52:44 +02:00
|
|
|
Patch308961: bugzilla-308961-cmex-workaround.patch
|
2007-08-24 01:05:25 +02:00
|
|
|
Patch200: freetype2-subpixel.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library features TrueType fonts for open source projects. This
|
|
|
|
version also contains an autohinter for producing improved output.
|
|
|
|
|
2010-04-01 03:04:23 +02:00
|
|
|
%package -n libfreetype6
|
|
|
|
Summary: A TrueType Font Library
|
|
|
|
Group: System/Libraries
|
2010-04-07 13:16:11 +02:00
|
|
|
Obsoletes: freetype2 < 2.3.10
|
2010-04-05 20:52:50 +02:00
|
|
|
Provides: freetype2 = 2.3.10
|
2007-08-24 01:05:25 +02:00
|
|
|
|
2010-04-01 03:04:23 +02:00
|
|
|
%description -n libfreetype6
|
|
|
|
This library features TrueType fonts for open source projects. This
|
|
|
|
version also contains an autohinter for producing improved output.
|
2007-08-24 01:05:25 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development environment for the freetype2 TrueType font library
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-07-11 10:45:49 +02:00
|
|
|
Requires: libfreetype6 = %{version}
|
|
|
|
Requires: zlib-devel
|
2008-11-02 15:40:54 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: freetype2-devel-64bit
|
|
|
|
%endif
|
2011-04-04 16:36:34 +02:00
|
|
|
# there is no freetype-devel on suse:
|
|
|
|
Provides: freetype-devel
|
2012-02-15 07:21:00 +01:00
|
|
|
# Static library provides:
|
|
|
|
Provides: libfreetype6-devel-static
|
2007-08-24 01:05:25 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files, libraries and
|
|
|
|
documentation needed to develop applications that require the freetype2
|
|
|
|
TrueType font library.
|
|
|
|
|
|
|
|
It also contains a small tutorial for using that library.
|
|
|
|
|
|
|
|
%prep
|
2009-05-06 18:38:43 +02:00
|
|
|
%define enable_subpixel_rendering 0
|
2007-08-24 01:05:25 +02:00
|
|
|
%setup -q -n freetype-%{version} -a 1
|
2010-07-21 12:18:38 +02:00
|
|
|
%patch3 -p 1 -b .bitmap-foundry
|
2008-08-21 18:08:44 +02:00
|
|
|
%patch9 -p 1
|
2010-12-04 23:27:10 +01:00
|
|
|
%patch10
|
2007-10-03 00:52:44 +02:00
|
|
|
%patch308961 -p 1
|
2007-08-24 01:05:25 +02:00
|
|
|
%if %{enable_subpixel_rendering}
|
|
|
|
%patch200 -p 1 -b .subpixel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
2009-11-10 09:55:12 +01:00
|
|
|
%ifarch arm
|
|
|
|
export CFLAGS="$CFLAGS -std=gnu99"
|
|
|
|
%endif
|
2011-07-11 10:45:49 +02:00
|
|
|
%configure --without-bzip2 \
|
|
|
|
--disable-static
|
2012-02-15 07:21:00 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-08-24 01:05:25 +02:00
|
|
|
|
|
|
|
%install
|
2012-03-30 15:32:05 +02:00
|
|
|
%makeinstall
|
2011-07-11 10:45:49 +02:00
|
|
|
|
2007-08-24 01:05:25 +02:00
|
|
|
# these development documents should go into the freetype2-devel package:
|
|
|
|
mv docs/reference freetype-%{version}/docs
|
2011-07-11 10:45:49 +02:00
|
|
|
|
2010-04-05 20:52:50 +02:00
|
|
|
# remove documentation that does not belong in an rpm
|
|
|
|
rm docs/INSTALL*
|
2007-08-24 01:05:25 +02:00
|
|
|
|
2010-04-01 03:04:23 +02:00
|
|
|
%post -n libfreetype6 -p /sbin/ldconfig
|
2007-08-24 01:05:25 +02:00
|
|
|
|
2010-04-01 03:04:23 +02:00
|
|
|
%postun -n libfreetype6 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libfreetype6
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfreetype.so.*
|
2007-08-24 01:05:25 +02:00
|
|
|
%doc ChangeLog README
|
|
|
|
%doc docs/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc freetype-%{version}/docs/*
|
2011-07-11 10:45:49 +02:00
|
|
|
%{_includedir}/*
|
2012-02-15 07:21:00 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2010-12-06 11:49:09 +01:00
|
|
|
%exclude %{_libdir}/libfreetype.*a
|
2011-12-22 16:57:14 +01:00
|
|
|
%else
|
|
|
|
%{_libdir}/libfreetype.*a
|
|
|
|
%endif
|
2007-08-24 01:05:25 +02:00
|
|
|
%{_libdir}/libfreetype.so
|
|
|
|
%{_libdir}/pkgconfig/freetype2.pc
|
2011-07-11 10:45:49 +02:00
|
|
|
%{_bindir}/*
|
2011-12-22 16:57:14 +01:00
|
|
|
%{_datadir}/aclocal
|
2008-04-10 14:13:39 +02:00
|
|
|
|
2007-08-24 01:05:25 +02:00
|
|
|
%changelog
|