diff --git a/freetype2.changes b/freetype2.changes index adeb0c7..cec0cc0 100644 --- a/freetype2.changes +++ b/freetype2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 6 10:47:29 UTC 2018 - ilya@ilya.pp.ua + +- Refresh spec-file via spec-cleaner. +- Add shell script freetype2.sh in separate package + freetype2-profile-tti35 in order to be able to set TrueType + interpreter version 35 (boo#1084085). + ------------------------------------------------------------------- Fri Feb 9 11:11:36 UTC 2018 - fstrba@suse.com diff --git a/freetype2.sh b/freetype2.sh new file mode 100644 index 0000000..92d5d33 --- /dev/null +++ b/freetype2.sh @@ -0,0 +1 @@ +export FREETYPE_PROPERTIES="truetype:interpreter-version=35" diff --git a/freetype2.spec b/freetype2.spec index c096288..c7b494d 100644 --- a/freetype2.spec +++ b/freetype2.spec @@ -16,17 +16,17 @@ # -# %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 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 +39,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 +60,20 @@ 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. +In release 2.6.4, a new hinting mode for TrueType fonts was added, +which enabled by default to activate sub-pixel hinting for TrueType. +This broke the work of full hinting. This optional package with a bash profile +that will switch the TrueType Interpreter to the old version 35. + %package devel Summary: Development environment for the freetype2 TrueType font library Group: Development/Libraries/C and C++ @@ -102,23 +115,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 diff --git a/ft2demos.spec b/ft2demos.spec index bf0498d..978fab5 100644 --- a/ft2demos.spec +++ b/ft2demos.spec @@ -21,7 +21,7 @@ Name: ft2demos Version: 2.9 Release: 0 Summary: Freetype2 Utilities and Demo Programs -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Publishing/Other Url: https://www.freetype.org Source0: https://savannah.nongnu.org/download/freetype/freetype-%{freetype_version}.tar.bz2