From 61fbc4c11d36f6b67bbafdefa8ebe1448e065861 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: May 16 2013 14:00:08 +0000 Subject: Package ftconfig.h as source file --- diff --git a/freetype.spec b/freetype.spec index 293ab74..c3573fc 100644 --- a/freetype.spec +++ b/freetype.spec @@ -7,13 +7,14 @@ Summary: A free and portable font rendering engine Name: freetype Version: 2.4.12 -Release: 2%{?dist} +Release: 3%{?dist} License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement Group: System Environment/Libraries URL: http://www.freetype.org Source: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2 Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2 Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2 +Source3: ftconfig.h Patch21: freetype-2.3.0-enable-spr.patch @@ -145,22 +146,7 @@ rm -rf $RPM_BUILD_ROOT mv $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/config/ftconfig.h \ $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/config/ftconfig-%{wordsize}.h -cat >$RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/config/ftconfig.h < - -#if __WORDSIZE == 32 -# include "ftconfig-32.h" -#elif __WORDSIZE == 64 -# include "ftconfig-64.h" -#else -# error "unexpected value for __WORDSIZE macro" -#endif - -#endif -EOF +install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/config/ftconfig.h # Don't package static a or .la files rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} @@ -226,6 +212,9 @@ rm -rf $RPM_BUILD_ROOT %doc docs/tutorial %changelog +* Thu May 16 2013 Marek Kasik - 2.4.12-3 +- Package ftconfig.h as source file + * Mon May 13 2013 Marek Kasik - 2.4.12-2 - Don't use quotes in freetype2.pc - Resolves: #961855 diff --git a/ftconfig.h b/ftconfig.h new file mode 100644 index 0000000..8d4a074 --- /dev/null +++ b/ftconfig.h @@ -0,0 +1,14 @@ +#ifndef __FTCONFIG_H__MULTILIB +#define __FTCONFIG_H__MULTILIB + +#include + +#if __WORDSIZE == 32 +# include "ftconfig-32.h" +#elif __WORDSIZE == 64 +# include "ftconfig-64.h" +#else +# error "unexpected value for __WORDSIZE macro" +#endif + +#endif