[freetype/f19] Package ftconfig.h as source file

mkasik mkasik at fedoraproject.org
Thu May 16 14:22:48 UTC 2013


commit 03321fe15dd82c839dc44d97fa1081e3e034ebf2
Author: Marek Kasik <mkasik at redhat.com>
Date:   Thu May 16 16:09:10 2013 +0200

    Package ftconfig.h as source file

 freetype.spec |   23 ++++++-----------------
 ftconfig.h    |   14 ++++++++++++++
 2 files changed, 20 insertions(+), 17 deletions(-)
---
diff --git a/freetype.spec b/freetype.spec
index 1657990..ce4f709 100644
--- a/freetype.spec
+++ b/freetype.spec
@@ -7,13 +7,14 @@
 Summary: A free and portable font rendering engine
 Name: freetype
 Version: 2.4.11
-Release: 3%{?dist}
+Release: 4%{?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
 
@@ -139,22 +140,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 <<EOF
-#ifndef __FTCONFIG_H__MULTILIB
-#define __FTCONFIG_H__MULTILIB
-
-#include <bits/wordsize.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}
@@ -220,6 +206,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc docs/tutorial
 
 %changelog
+* Thu May 16 2013 Marek Kasik <mkasik at redhat.com> - 2.4.11-4
+- Package ftconfig.h as source file
+
 * Tue Mar 19 2013 Marek Kasik <mkasik at redhat.com> - 2.4.11-3
 - Fix emboldening:
     - split out MSB function
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 <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+# include "ftconfig-32.h"
+#elif __WORDSIZE == 64
+# include "ftconfig-64.h"
+#else
+# error "unexpected value for __WORDSIZE macro"
+#endif
+
+#endif 


More information about the fonts-bugs mailing list