2009-01-17 11:36:09 +00:00
|
|
|
%define __strip %{_mingw32_strip}
|
|
|
|
%define __objdump %{_mingw32_objdump}
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %{_mingw32_findrequires}
|
|
|
|
%define __find_provides %{_mingw32_findprovides}
|
|
|
|
|
|
|
|
# Patented bytecode interpreter and patented subpixel rendering
|
|
|
|
# disabled by default. Pass '--with bytecode_interpreter' and '--with
|
|
|
|
# subpixel_rendering' on rpmbuild command-line to enable them.
|
|
|
|
|
|
|
|
%define _with_subpixel_rendering 1}
|
|
|
|
%define _without_subpixel_rendering 0}
|
|
|
|
%{!?_with_bytecode_interpreter: %{!?_without_bytecode_interpreter: %define _without_bytecode_interpreter --without-bytecode_interpreter}}
|
|
|
|
%{!?_with_subpixel_rendering: %{!?_without_subpixel_rendering: %define _without_subpixel_rendering --without-subpixel_rendering}}
|
|
|
|
|
|
|
|
%define with_xfree86 0
|
|
|
|
|
|
|
|
Name: mingw32-freetype
|
2010-01-12 16:00:45 +00:00
|
|
|
Version: 2.3.11
|
2011-02-08 18:28:56 +00:00
|
|
|
Release: 2%{?dist}
|
2009-01-17 11:36:09 +00:00
|
|
|
Summary: Free and portable font rendering engine
|
|
|
|
|
|
|
|
License: FTL or GPLv2+
|
|
|
|
URL: http://www.freetype.org
|
2010-01-12 16:00:45 +00:00
|
|
|
Source: http://mirrors.aixtools.net/sv/freetype/freetype-%{version}.tar.bz2
|
|
|
|
Source1: http://mirrors.aixtools.net/sv/freetype/freetype-doc-%{version}.tar.gz
|
2009-01-17 11:36:09 +00:00
|
|
|
#Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
# Patches from native Fedora package.
|
|
|
|
#Patch5: ft2demos-2.1.9-mathlib.patch
|
|
|
|
Patch20: freetype-2.1.10-enable-ft2-bci.patch
|
|
|
|
Patch21: freetype-2.3.0-enable-spr.patch
|
|
|
|
Patch46: freetype-2.2.1-enable-valid.patch
|
2010-01-12 16:00:45 +00:00
|
|
|
#Patch47: freetype-2.3.11-more-demos.patch
|
2009-01-17 11:36:09 +00:00
|
|
|
Patch88: freetype-multilib.patch
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2009-02-20 23:16:56 +00:00
|
|
|
BuildRequires: mingw32-filesystem >= 49
|
2009-01-17 11:36:09 +00:00
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
BuildRequires: mingw32-zlib
|
|
|
|
BuildRequires: mingw32-dlfcn
|
|
|
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
MinGW Windows Freetype library.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n freetype-%{version} -b 1 -a 1
|
|
|
|
|
|
|
|
#pushd ft2demos-%{version}
|
|
|
|
#%patch5 -p1 -b .mathlib
|
|
|
|
#popd
|
|
|
|
|
|
|
|
%if %{?_with_bytecode_interpreter:1}%{!?_with_bytecode_interpreter:0}
|
|
|
|
%patch20 -p1 -b .enable-ft2-bci
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{?_with_subpixel_rendering:1}%{!?_with_subpixel_rendering:0}
|
|
|
|
%patch21 -p1 -b .enable-spr
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%patch46 -p1 -b .enable-valid
|
2010-01-12 16:00:45 +00:00
|
|
|
#%patch47 -p1 -b .more-demos
|
2009-01-17 11:36:09 +00:00
|
|
|
|
|
|
|
%patch88 -p1 -b .multilib
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{_mingw32_configure} --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
# The ft2demos Makefile is hacky and doesn't understand
|
|
|
|
# cross-compilation. This nearly works, but not quite, so
|
|
|
|
# disable. it.
|
|
|
|
#pushd ft2demos-%{version}
|
|
|
|
#make TOP_DIR=".." PLATFORM=win32
|
|
|
|
#popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc docs/LICENSE.TXT
|
|
|
|
%{_mingw32_bindir}/freetype-config
|
|
|
|
%{_mingw32_bindir}/libfreetype-6.dll
|
|
|
|
%{_mingw32_includedir}/freetype2
|
|
|
|
%{_mingw32_includedir}/ft2build.h
|
|
|
|
%{_mingw32_libdir}/libfreetype.dll.a
|
|
|
|
%{_mingw32_libdir}/libfreetype.la
|
|
|
|
%{_mingw32_libdir}/pkgconfig/freetype2.pc
|
|
|
|
%{_mingw32_datadir}/aclocal/freetype2.m4
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-02-08 18:28:56 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-01-12 16:00:45 +00:00
|
|
|
* Tue Jan 12 2010 Richard W.M. Jones <rjones@redhat.com> - 2.3.11-1
|
|
|
|
- New upstream version 2.3.11.
|
|
|
|
- Match patches from Fedora native version.
|
|
|
|
- Recheck package with rpmlint.
|
|
|
|
|
2009-07-25 12:17:14 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 01:03:57 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-20 23:16:56 +00:00
|
|
|
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.3.8-2
|
|
|
|
- Rebuild for mingw32-gcc 4.4
|
|
|
|
|
2009-01-17 11:36:09 +00:00
|
|
|
* Fri Jan 16 2009 Richard W.M. Jones <rjones@redhat.com> - 2.3.8-1
|
|
|
|
- New upstream version 2.3.8.
|
|
|
|
- Use the patches from the Fedora native package.
|
|
|
|
- Disable patented code.
|
|
|
|
- Don't build the static library.
|
|
|
|
- Use _smp_mflags.
|
|
|
|
- BR mingw32-dlfcn (not required, but uses it if installed).
|
|
|
|
- Add license file to doc section.
|
|
|
|
|
|
|
|
* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.3.7-6
|
|
|
|
- Requires pkgconfig.
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.3.7-5
|
|
|
|
- Rename mingw -> mingw32.
|
|
|
|
|
|
|
|
* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.3.7-4
|
|
|
|
- Import patches from rawhide & add docs
|
|
|
|
|
|
|
|
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.3.7-3
|
|
|
|
- Depends on filesystem >= 25.
|
|
|
|
|
|
|
|
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.3.7-2
|
|
|
|
- Fix source URL.
|
|
|
|
- Remove static libraries.
|
|
|
|
|
|
|
|
* Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.3.7-1
|
|
|
|
- Initial RPM release
|