Accepting request 581252 from home:13ilya:branches:M17N

- Refresh spec-file via spec-cleaner.
- Add shell script freetype2.sh in separate package
  freetype2-profile-tti35 for set TrurType interpreter version 35.

OBS-URL: https://build.opensuse.org/request/show/581252
OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=138
This commit is contained in:
Fridrich Strba 2018-03-06 09:45:37 +00:00 committed by Git OBS Bridge
parent 1c027a7961
commit c0a0132a58
3 changed files with 28 additions and 11 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 28 20:58:36 UTC 2018 - ilya@ilya.pp.ua
- Refresh spec-file via spec-cleaner.
- Add shell script freetype2.sh in separate package
freetype2-profile-tti35 for set TrurType interpreter version 35.
-------------------------------------------------------------------
Fri Feb 9 11:11:36 UTC 2018 - fstrba@suse.com

1
freetype2.sh Normal file
View File

@ -0,0 +1 @@
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"

View File

@ -12,21 +12,20 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org
#
#
%define doc_version 2.9
Name: freetype2
Version: 2.9
Release: 0
Summary: A TrueType Font Library
License: SUSE-Freetype or GPL-2.0+
License: SUSE-Freetype OR GPL-2.0-or-later
Group: System/Libraries
Url: https://www.freetype.org
URL: https://www.freetype.org
Source0: https://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
Source1: https://download.savannah.gnu.org/releases/freetype/freetype-doc-%{doc_version}.tar.bz2
Source2: %{name}.sh
Source3: baselibs.conf
Patch0: bugzilla-308961-cmex-workaround.patch
# PATCH-FIX-OPENSUSE don-t-mark-libpng-as-required-library.patch -- it is private in .pc
@ -39,9 +38,8 @@ Patch5: enable-long-family-names-by-default.patch
BuildRequires: gawk
BuildRequires: libbz2-devel
BuildRequires: libpng-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes: freetype2-64bit
@ -61,6 +59,16 @@ Provides: freetype2 = %{version}
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.
%package profile-tti35
Summary: Set TrueType interpreter to version 35
Group: System/Shells
Requires: bash
Requires: freetype2
BuildArch: noarch
%description profile-tti35
System environment for set TrueType interpreter to version 35.
%package devel
Summary: Development environment for the freetype2 TrueType font library
Group: Development/Libraries/C and C++
@ -102,23 +110,24 @@ export CFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%make_install
install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
# remove documentation that does not belong in an rpm
rm docs/INSTALL*
%post -n libfreetype6 -p /sbin/ldconfig
%postun -n libfreetype6 -p /sbin/ldconfig
%files -n libfreetype6
%defattr(-,root,root)
%{_libdir}/libfreetype.so.*
%doc ChangeLog README
%doc docs/{CHANGES,CUSTOMIZE,DEBUG,MAKEPP,PROBLEMS,TODO,*.txt}
%files profile-tti35
%config %{_sysconfdir}/profile.d/%{name}.sh
%files devel
%defattr(-,root,root)
%doc docs/reference/*
%{_includedir}/*
%if 0%{?suse_version} >= 1140