Erik van Pienbroek e1bb1b9
%?mingw_package_header
5bb878d
5bb878d
Summary:       MinGW Windows Enchanting Spell Checking Library
6b99bcc
Name:          mingw-enchant
5a48f1a
Version:       1.6.0
0991368
Release:       17%{?dist}
5bb878d
Group:         System Environment/Libraries
5bb878d
License:       LGPLv2+
5bb878d
Source0:       http://www.abisource.com/downloads/enchant/%{version}/enchant-%{version}.tar.gz
5bb878d
URL:           http://www.abisource.com/
5bb878d
Erik van Pienbroek e1bb1b9
BuildRequires: mingw32-filesystem >= 95
5bb878d
BuildRequires: mingw32-gcc
5bb878d
BuildRequires: mingw32-gcc-c++
5bb878d
BuildRequires: mingw32-binutils
Erik van Pienbroek e1bb1b9
BuildRequires: mingw32-glib2
5bb878d
BuildRequires: mingw32-hunspell
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-filesystem >= 95
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-gcc
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-gcc-c++
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-binutils
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-glib2
Erik van Pienbroek e1bb1b9
BuildRequires: mingw64-hunspell
Erik van Pienbroek e1bb1b9
5bb878d
BuildRequires: m4
Erik van Pienbroek e1bb1b9
5bb878d
BuildArch:     noarch
5bb878d
51c94e0
# Fix a compile issue
2cb0683
Patch0:        enchant-mingw-compile-fix.patch
2cb0683
51c94e0
# Workaround for bug 12755 as upstream isn't alive any more
51c94e0
# Fixes a regression where relocatable support got broken
51c94e0
# http://bugzilla.abisource.com/show_bug.cgi?id=12755
51c94e0
Patch1:        enchant-remove-define-enchant-global-module-dir.patch
5bb878d
5bb878d
%description
5bb878d
A library that wraps other spell checking backends.
5bb878d
5bb878d
This is the MinGW build of enchant
5bb878d
5bb878d
Erik van Pienbroek e1bb1b9
# Win32
6b99bcc
%package -n mingw32-enchant
Erik van Pienbroek e1bb1b9
Summary:       MinGW Windows Enchanting Spell Checking Library
Erik van Pienbroek e1bb1b9
Requires:      pkgconfig
6b99bcc
6b99bcc
%description -n mingw32-enchant
6b99bcc
A library that wraps other spell checking backends.
6b99bcc
6b99bcc
This is the MinGW build of enchant
6b99bcc
6b99bcc
%package -n mingw32-enchant-static
Erik van Pienbroek e1bb1b9
Summary:       Static version of the MinGW Windows enchant library
Erik van Pienbroek e1bb1b9
Requires:      mingw32-enchant = %{version}-%{release}
Erik van Pienbroek e1bb1b9
Group:         Development/Libraries
5bb878d
6b99bcc
%description -n mingw32-enchant-static
5bb878d
Static version of the MinGW Windows enchant spell checking library.
5bb878d
Erik van Pienbroek e1bb1b9
# Win64
Erik van Pienbroek e1bb1b9
%package -n mingw64-enchant
Erik van Pienbroek e1bb1b9
Summary:       MinGW Windows Enchanting Spell Checking Library
Erik van Pienbroek e1bb1b9
Requires:      pkgconfig
5bb878d
Erik van Pienbroek e1bb1b9
%description -n mingw64-enchant
Erik van Pienbroek e1bb1b9
A library that wraps other spell checking backends.
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
This is the MinGW build of enchant
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
%package -n mingw64-enchant-static
Erik van Pienbroek e1bb1b9
Summary:       Static version of the MinGW Windows enchant library
Erik van Pienbroek e1bb1b9
Requires:      mingw64-enchant = %{version}-%{release}
Erik van Pienbroek e1bb1b9
Group:         Development/Libraries
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
%description -n mingw64-enchant-static
Erik van Pienbroek e1bb1b9
Static version of the MinGW Windows enchant spell checking library.
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
%?mingw_debug_package
2ef9119
2ef9119
5bb878d
%prep
5bb878d
%setup -qn "enchant-%{version}"
5bb878d
2cb0683
%patch0 -p0 -b .mingw
51c94e0
%patch1 -p0 -b .relocatable
51c94e0
5bb878d
5bb878d
%build
Erik van Pienbroek e1bb1b9
%mingw_configure        \
5bb878d
    --disable-ispell    \
5bb878d
    --disable-hspell    \
5bb878d
    --disable-aspell    \
5bb878d
    --enable-static     \
5bb878d
    --enable-shared
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
# Work around a build issue
Erik van Pienbroek e1bb1b9
pushd build_win32/src
Erik van Pienbroek e1bb1b9
WINDRES=%{mingw32_windres} ../../compile-resource libenchant.rc enchant-win32res.o
Erik van Pienbroek e1bb1b9
popd
Erik van Pienbroek e1bb1b9
pushd build_win64/src
Erik van Pienbroek e1bb1b9
WINDRES=%{mingw64_windres} ../../compile-resource libenchant.rc enchant-win32res.o
Erik van Pienbroek e1bb1b9
popd
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
%mingw_make %{?_smp_mflags}
5bb878d
5bb878d
5bb878d
%install
Erik van Pienbroek e1bb1b9
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
5bb878d
5bb878d
# Drop the man-pages
8de6a10
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
Erik van Pienbroek e1bb1b9
rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
5bb878d
992770c
# Drop all .la files
992770c
find $RPM_BUILD_ROOT -name "*.la" -delete
992770c
5bb878d
Erik van Pienbroek e1bb1b9
# Win32
6b99bcc
%files -n mingw32-enchant
5bb878d
%doc AUTHORS COPYING.LIB README
8de6a10
%{mingw32_bindir}/enchant-lsmod.exe
8de6a10
%{mingw32_bindir}/enchant.exe
8de6a10
%{mingw32_bindir}/libenchant.dll
8de6a10
%{mingw32_includedir}/enchant/
8de6a10
%dir %{mingw32_libdir}/enchant/
8de6a10
%{mingw32_libdir}/enchant/libenchant_myspell.dll
8de6a10
%{mingw32_libdir}/enchant/libenchant_myspell.dll.a
8de6a10
%{mingw32_libdir}/libenchant.dll.a
8de6a10
%{mingw32_libdir}/pkgconfig/enchant.pc
8de6a10
%{mingw32_datadir}/enchant/
5bb878d
6b99bcc
%files -n mingw32-enchant-static
8de6a10
%{mingw32_libdir}/libenchant.a
8de6a10
%{mingw32_libdir}/enchant/libenchant_myspell.a
5bb878d
Erik van Pienbroek e1bb1b9
# Win64
Erik van Pienbroek e1bb1b9
%files -n mingw64-enchant
Erik van Pienbroek e1bb1b9
%doc AUTHORS COPYING.LIB README
Erik van Pienbroek e1bb1b9
%{mingw64_bindir}/enchant-lsmod.exe
Erik van Pienbroek e1bb1b9
%{mingw64_bindir}/enchant.exe
Erik van Pienbroek e1bb1b9
%{mingw64_bindir}/libenchant.dll
Erik van Pienbroek e1bb1b9
%{mingw64_includedir}/enchant/
Erik van Pienbroek e1bb1b9
%dir %{mingw64_libdir}/enchant/
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/enchant/libenchant_myspell.dll
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/enchant/libenchant_myspell.dll.a
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/libenchant.dll.a
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/pkgconfig/enchant.pc
Erik van Pienbroek e1bb1b9
%{mingw64_datadir}/enchant/
Erik van Pienbroek e1bb1b9
Erik van Pienbroek e1bb1b9
%files -n mingw64-enchant-static
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/libenchant.a
Erik van Pienbroek e1bb1b9
%{mingw64_libdir}/enchant/libenchant_myspell.a
Erik van Pienbroek e1bb1b9
5bb878d
5bb878d
%changelog
0991368
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-17
0991368
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0991368
e30f5e4
* Mon Dec 04 2017 Sandro Mani <manisandro@gmail.com> - 1.6.0-16
e30f5e4
- Rebuild (mingw-hunspell)
e30f5e4
5fb6063
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-15
5fb6063
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5fb6063
6ef1dba
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-14
6ef1dba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6ef1dba
85a5d47
* Thu Jan 12 2017 Sandro Mani <manisandro@gmail.com> - 1.6.0-13
85a5d47
- Rebuild (hunspell)
85a5d47
bf3425c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-12
bf3425c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bf3425c
1e73f73
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-11
1e73f73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1e73f73
1902e78
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-10
1902e78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1902e78
4e717e7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-9
4e717e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4e717e7
dd7819f
* Sun Jan 27 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.6.0-8
dd7819f
- Rebuild against mingw-gcc 4.8 (win64 uses SEH exceptions now)
dd7819f
51c94e0
* Mon Aug 13 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.6.0-7
51c94e0
- Added workaround for upstream bug 12755
51c94e0
  This fixes a regression where relocatable support got broken
51c94e0
b4ba802
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-6
b4ba802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b4ba802
Erik van Pienbroek e1bb1b9
* Sun Mar 18 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.6.0-5
Erik van Pienbroek e1bb1b9
- Added win64 support
Erik van Pienbroek e1bb1b9
6b99bcc
* Wed Mar 07 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.6.0-4
6b99bcc
- Renamed the source package to mingw-enchant (RHBZ #800863)
8de6a10
- Use mingw macros without leading underscore
992770c
- Drop all .la files
6b99bcc
fb459dc
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.6.0-3
fb459dc
- Rebuild against the mingw-w64 toolchain
fb459dc
39354cd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
39354cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
39354cd
5a48f1a
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 1.6.0-1
5a48f1a
- Update to 1.6.0
5a48f1a
- Dropped all the patches as they are now included upstream
5a48f1a
2180887
* Thu Jul  7 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-10
2180887
- Rebuild against win-iconv
2180887
Kalev Lember 078b3d3
* Wed Apr 27 2011 Kalev Lember <kalev@smartlink.ee> - 1.5.0-9
Kalev Lember 078b3d3
- Rebuilt for proxy-libintl removal
Kalev Lember 078b3d3
Kalev Lember 810269b
* Mon Apr 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.5.0-8
Kalev Lember 810269b
- Rebuilt for pseudo-reloc version mismatch (#698827)
Kalev Lember 810269b
fcdbd16
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-7
fcdbd16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fcdbd16
682f485
* Thu Nov 11 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-6
682f485
- Rebuild for updated mingw32-hunspell
682f485
fae4243
* Sun Nov  7 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-5
fae4243
- Rebuild in order to have soft dependency on libintl
fae4243
b13b1b2
* Fri Sep 18 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-4
b13b1b2
- Rebuild because of broken mingw32-gcc/mingw32-binutils
b13b1b2
2ef9119
* Sun Aug 30 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-3
2ef9119
- Automatically generate debuginfo subpackage
2ef9119
5bb878d
* Sun Aug  9 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-2
5bb878d
- Dropped BR: autoconf libtool
5bb878d
- Added BR: m4
5bb878d
- Use 'rm -rf $RPM_BUILDROOT' in the %%clean phase
5bb878d
- Fixed a 'strange-permission' rpmlint warning
5bb878d
- Moved the file %%{_mingw32_libdir}/enchant/libenchant_myspell.a to
5bb878d
  the -static subpackage
5bb878d
- Use a more verbose %%files list
5bb878d
- Added a Requires: pkgconfig to the main package
5bb878d
- Added patches from the native enchant package
5bb878d
- Dropped another patch which isn't necessary anymore
5bb878d
5bb878d
* Sat Aug  8 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-1
5bb878d
- Update to version 1.5.0
5bb878d
- Drop upstreamed patch
5bb878d
- Don't use 'make %%{?_smp_mflags}' as this causes a compile failure in Koji
5bb878d
5bb878d
* Mon May 11 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.4.2-6
5bb878d
- Ported the native package to have MinGW support
5bb878d
- Dropped the epoch as this is a new package
5bb878d
- Fixed %%defattr line
5bb878d
5bb878d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-5
5bb878d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5bb878d
5bb878d
* Sat Jul 26 2008 Michael Schwendt <mschwendt@fedoraproject.org> 1:1.4.2-4
5bb878d
- Rebuild for ABI-incompatible hunspell-1.2.4.2-2.fc10
5bb878d
5bb878d
* Thu Jul 10 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-3
5bb878d
- Fix 426712: don't build static libs (patch from Michael Schwendt)
5bb878d
5bb878d
* Wed May 21 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-2
5bb878d
- Rebuild
5bb878d
5bb878d
* Wed May 21 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-1
5bb878d
- New upstream release
5bb878d
- Add voikko support in an enchant-voikko package
5bb878d
- Bump glib-devel BR to 2.6.0
5bb878d
5bb878d
* Fri Feb 08 2008 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-4.fc9
5bb878d
- minor cockup
5bb878d
5bb878d
* Sat Jan 26 2008 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-3.fc9
5bb878d
- Resolves: rhbz#426402 use system hunspell not internal one and 
5bb878d
  split out aspell backend.
5bb878d
- See: rhbz#430354 hspell backend disabled until pic issue fixed
5bb878d
5bb878d
* Wed Dec 19 2007 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-2.fc9
5bb878d
- tell enchant where the myspell dictionaries are
5bb878d
5bb878d
* Thu Oct 12 2006 Marc Maurer <uwog@abisource.com> 1:1.3.0-1.fc6
5bb878d
- Update to 1.3.0
5bb878d
5bb878d
* Mon Sep 11 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-3.fc6
5bb878d
- Rebuild for FC6
5bb878d
5bb878d
* Mon Apr 10 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-2.fc6
5bb878d
- Rebuild
5bb878d
5bb878d
* Mon Apr 10 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-1.fc6
5bb878d
- Package the data dir as well (bug 188516)
5bb878d
- New upstream version
5bb878d
- Add hspell requirement/support
5bb878d
5bb878d
* Tue Feb 14 2006 Marc Maurer <uwog@abisource.com> 1:1.2.2-2.fc5
5bb878d
- Rebuild for Fedora Extras 5
5bb878d
5bb878d
* Sun Feb 05 2006 Marc Maurer <uwog@abisource.com> 1:1.2.2-1.fc5
5bb878d
- Update to 1.2.2
5bb878d
5bb878d
* Mon Jan 30 2006 Marc Maurer <uwog@abisource.com> 1:1.2.1-1.fc5
5bb878d
- Update to 1.2.1
5bb878d
- Drop glib Require
5bb878d
5bb878d
* Sat Oct 22 2005 Marc Maurer <uwog@abisource.com> 1:1.2.0-1.fc5
5bb878d
- Update to 1.2.0
5bb878d
5bb878d
* Wed Oct  5 2005 Marc Maurer <uwog@abisource.com> 1:1.1.6-4.fc5
5bb878d
- Add dist flag to the release number
5bb878d
5bb878d
* Mon Apr  4 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1:1.1.6-3
5bb878d
- make in %%build
5bb878d
- disable bad buildroot rpaths in libs, don't use %%makeinstall
5bb878d
- require %%{epoch} of main package in -devel package (Fridrich Strba)
5bb878d
5bb878d
* Thu Mar 31 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1:1.1.6-2
5bb878d
- add dep glib2-devel for pkgconfig in -devel package
5bb878d
- include %%{_libdir}/enchant dir in main package
5bb878d
- make -devel package require exact VR of main package
5bb878d
- use -p /sbin/ldconfig in scriptlets
5bb878d
5bb878d
* Mon Mar 28 2005 Marc Maurer <uwog@abisource.com> 1:1.1.6-1
5bb878d
- update to 1.1.6
5bb878d
- drop the manpage patch (RH#145010#)
5bb878d
- fix version numbers in the spec changelog
5bb878d
5bb878d
* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-3
5bb878d
- rebuild with gcc4
5bb878d
5bb878d
* Fri Jan 14 2005 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-2
5bb878d
- RH#145010# misformatted manpage
5bb878d
5bb878d
* Mon Dec 20 2004 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-1
5bb878d
- initial fedora import
5bb878d
5bb878d
* Sun Aug 24 2003 Rui Miguel Seabra <rms@1407.org>
5bb878d
- update spec to current stat of affairs
5bb878d
- building from source rpm is now aware of --with and --without flags:
5bb878d
- --without aspell --without ispell --without myspell --with uspell
5bb878d
5bb878d
* Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org>
5bb878d
- take advantage of environment rpm macros
5bb878d
5bb878d
* Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com>
5bb878d
- Initial version