[mingw-hunspell] Added win64 support
epienbro
epienbro at fedoraproject.org
Sun Mar 18 23:12:48 UTC 2012
commit 8cac9c18ed439e058aa58602aafad8c82e9414a6
Author: Erik van Pienbroek <erik at vanpienbroek.nl>
Date: Mon Mar 19 00:12:38 2012 +0100
Added win64 support
mingw-hunspell.spec | 81 ++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/mingw-hunspell.spec b/mingw-hunspell.spec
index b83baab..4206e6b 100644
--- a/mingw-hunspell.spec
+++ b/mingw-hunspell.spec
@@ -1,11 +1,9 @@
-%global __strip %{mingw32_strip}
-%global __objdump %{mingw32_objdump}
-%define __debug_install_post %{mingw32_debug_install_post}
+%?mingw_package_header
Name: mingw-hunspell
Summary: MinGW Windows spell checker and morphological analyzer library
Version: 1.3.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Source0: http://downloads.sourceforge.net/hunspell/hunspell-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://hunspell.sourceforge.net/
@@ -14,13 +12,22 @@ License: LGPLv2+ or GPLv2+ or MPLv1.1
BuildArch: noarch
BuildRequires: bison
BuildRequires: gettext
-BuildRequires: mingw32-filesystem
+
+BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gettext
BuildRequires: mingw32-readline
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-gcc
+BuildRequires: mingw64-gcc-c++
+BuildRequires: mingw64-binutils
+BuildRequires: mingw64-gettext
+BuildRequires: mingw64-readline
+
+
%description
Hunspell is a spell checker and morphological analyzer library and program
designed for languages with rich morphology and complex word compounding or
@@ -30,6 +37,7 @@ Curses library, Ispell pipe interface, OpenOffice.org UNO module.
This is the MinGW build of Hunspell
+# Win32
%package -n mingw32-hunspell
Summary: MinGW Windows spell checker and morphological analyzer library
@@ -41,17 +49,34 @@ Curses library, Ispell pipe interface, OpenOffice.org UNO module.
This is the MinGW build of Hunspell
-
%package -n mingw32-hunspell-static
Summary: Static version of the MinGW Windows hunspell library
Requires: mingw32-hunspell = %{version}-%{release}
-Group: Development/Libraries
%description -n mingw32-hunspell-static
Static version of the MinGW Windows hunspell spell checking library.
+# Win64
+%package -n mingw64-hunspell
+Summary: MinGW Windows spell checker and morphological analyzer library
+
+%description -n mingw64-hunspell
+Hunspell is a spell checker and morphological analyzer library and program
+designed for languages with rich morphology and complex word compounding or
+character encoding. Hunspell interfaces: Ispell-like terminal interface using
+Curses library, Ispell pipe interface, OpenOffice.org UNO module.
+
+This is the MinGW build of Hunspell
+
+%package -n mingw64-hunspell-static
+Summary: Static version of the MinGW Windows hunspell library
+Requires: mingw64-hunspell = %{version}-%{release}
+
+%description -n mingw64-hunspell-static
+Static version of the MinGW Windows hunspell spell checking library.
+
-%{?mingw32_debug_package}
+%?mingw_debug_package
%prep
@@ -65,23 +90,26 @@ done
%build
-%{mingw32_configure} --enable-static --enable-shared --with-ui --with-readline --enable-threads=win32
-make %{?_smp_mflags}
+%mingw_configure --enable-static --enable-shared --with-ui --with-readline --enable-threads=win32
+%mingw_make %{?_smp_mflags}
%install
-make DESTDIR=$RPM_BUILD_ROOT install
+%mingw_make DESTDIR=$RPM_BUILD_ROOT install
# Drop .la files
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/*.la
# Drop the man pages
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
+rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
-%find_lang hunspell
+%mingw_find_lang hunspell
-%files -n mingw32-hunspell -f hunspell.lang
+# Win32
+%files -n mingw32-hunspell -f mingw32-hunspell.lang
%doc README README.myspell COPYING COPYING.LGPL COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
%{mingw32_bindir}/%{mingw32_target}-affixcompress
%{mingw32_bindir}/%{mingw32_target}-analyze.exe
@@ -104,8 +132,35 @@ rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
%files -n mingw32-hunspell-static
%{mingw32_libdir}/libhunspell-1.3.a
+# Win64
+%files -n mingw64-hunspell -f mingw64-hunspell.lang
+%doc README README.myspell COPYING COPYING.LGPL COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
+%{mingw64_bindir}/%{mingw64_target}-affixcompress
+%{mingw64_bindir}/%{mingw64_target}-analyze.exe
+%{mingw64_bindir}/%{mingw64_target}-chmorph.exe
+%{mingw64_bindir}/%{mingw64_target}-hunspell.exe
+%{mingw64_bindir}/%{mingw64_target}-hunzip.exe
+%{mingw64_bindir}/%{mingw64_target}-hzip.exe
+%{mingw64_bindir}/%{mingw64_target}-ispellaff2myspell
+%{mingw64_bindir}/%{mingw64_target}-makealias
+%{mingw64_bindir}/%{mingw64_target}-munch.exe
+%{mingw64_bindir}/%{mingw64_target}-unmunch.exe
+%{mingw64_bindir}/%{mingw64_target}-wordforms
+%{mingw64_bindir}/%{mingw64_target}-wordlist2hunspell
+%{mingw64_bindir}/libhunspell-1.3-0.dll
+%{mingw64_includedir}/hunspell/
+%{mingw64_libdir}/libhunspell-1.3.dll.a
+%{mingw64_libdir}/libparsers.a
+%{mingw64_libdir}/pkgconfig/hunspell.pc
+
+%files -n mingw64-hunspell-static
+%{mingw64_libdir}/libhunspell-1.3.a
+
%changelog
+* Sun Mar 18 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.3.2-6
+- Added win64 support
+
* Fri Mar 09 2012 Kalev Lember <kalevlember at gmail.com> - 1.3.2-5
- Drop .la files
More information about the scm-commits
mailing list