commit a9adc1d14a4b06419d4fca9c366a165a88e324e1
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Wed Oct 24 20:03:13 2012 +0200
Added static subpackage (RHBZ #866032)
mingw-freetype.spec | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/mingw-freetype.spec b/mingw-freetype.spec
index b01196f..ca40bcf 100644
--- a/mingw-freetype.spec
+++ b/mingw-freetype.spec
@@ -47,6 +47,14 @@ Summary: Free and portable font rendering engine
%description -n mingw32-freetype
MinGW Windows Freetype library.
+%package -n mingw32-freetype-static
+Summary: Static version of the MinGW Windows Freetype library
+Requires: mingw32-freetype = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw32-freetype-static
+Static version of the MinGW Windows Freetype library.
+
# Win64
%package -n mingw64-freetype
Summary: Free and portable font rendering engine
@@ -54,6 +62,14 @@ Summary: Free and portable font rendering engine
%description -n mingw64-freetype
MinGW Windows Freetype library.
+%package -n mingw64-freetype-static
+Summary: Static version of the MinGW Windows Freetype library
+Requires: mingw64-freetype = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw64-freetype-static
+Static version of the MinGW Windows Freetype library.
+
%?mingw_debug_package
@@ -72,7 +88,7 @@ MinGW Windows Freetype library.
%build
-%mingw_configure --disable-static
+%mingw_configure --enable-static --enable-shared
%mingw_make %{?_smp_mflags}
# The ft2demos Makefile is hacky and doesn't understand
@@ -100,6 +116,9 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
%{mingw32_libdir}/pkgconfig/freetype2.pc
%{mingw32_datadir}/aclocal/freetype2.m4
+%files -n mingw32-freetype-static
+%{mingw32_libdir}/libfreetype.a
+
%files -n mingw64-freetype
%doc docs/LICENSE.TXT
%{mingw64_bindir}/freetype-config
@@ -110,8 +129,14 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
%{mingw64_libdir}/pkgconfig/freetype2.pc
%{mingw64_datadir}/aclocal/freetype2.m4
+%files -n mingw64-freetype-static
+%{mingw64_libdir}/libfreetype.a
+
%changelog
+* Wed Oct 24 2012 Nicola Fontana <ntd(a)entidi.it> - 2.4.10-2
+- Added static subpackage
+
* Sun Oct 07 2012 Kalev Lember <kalevlember(a)gmail.com> - 2.4.10-1
- Update to 2.4.10