f645764
%{?mingw_package_header}
f645764
f645764
%global pkgname enchant2
f645764
f645764
Name:          mingw-%{pkgname}
f658405
Version:       2.2.8
f658405
Release:       1%{?snap}%{?dist}
f645764
Summary:       MinGW Windows %{pkgname} library
f645764
f645764
License:       LGPLv2+
f645764
BuildArch:     noarch
f645764
URL:           https://github.com/AbiWord/enchant
f645764
Source0:       https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
f645764
2899d3f
f645764
BuildRequires: mingw32-filesystem >= 95
f645764
BuildRequires: mingw32-gcc
f645764
BuildRequires: mingw32-gcc-c++
f645764
BuildRequires: mingw32-binutils
f645764
BuildRequires: mingw32-glib2
f645764
BuildRequires: mingw32-hunspell
f645764
f645764
BuildRequires: mingw64-filesystem >= 95
f645764
BuildRequires: mingw64-gcc
f645764
BuildRequires: mingw64-gcc-c++
f645764
BuildRequires: mingw64-binutils
f645764
BuildRequires: mingw64-glib2
f645764
BuildRequires: mingw64-hunspell
f645764
f645764
f645764
%description
f645764
MinGW Windows %{pkgname} library.
f645764
f645764
f645764
%package -n mingw32-%{pkgname}
f645764
Summary:       MinGW Windows %{pkgname} library
f645764
f645764
%description -n mingw32-%{pkgname}
f645764
MinGW Windows %{pkgname} library.
f645764
f645764
f645764
%package -n mingw64-%{pkgname}
f645764
Summary:       MinGW Windows %{pkgname} library
f645764
f645764
%description -n mingw64-%{pkgname}
f645764
MinGW Windows %{pkgname} library.
f645764
f645764
f645764
%{?mingw_debug_package}
f645764
f645764
f645764
%prep
f645764
%autosetup -p1 -n enchant-%{version}
f645764
f645764
f645764
%build
f645764
MINGW32_CONFIGURE_ARGS="--with-hunspell-dir=%{mingw32_datadir}/myspell" \
f645764
MINGW64_CONFIGURE_ARGS="--with-hunspell-dir=%{mingw64_datadir}/myspell" \
2899d3f
%mingw_configure --disable-static --without-hspell --enable-relocatable
f645764
f645764
MINGW32_MAKE_ARGS="pkgdatadir=%{mingw32_datadir}/enchant-2" \
f645764
MINGW64_MAKE_ARGS="pkgdatadir=%{mingw64_datadir}/enchant-2" \
f645764
%mingw_make %{?_smp_mflags}
f645764
f645764
f645764
%install
f645764
MINGW32_MAKE_ARGS="pkgdatadir=%{mingw32_datadir}/enchant-2" \
f645764
MINGW64_MAKE_ARGS="pkgdatadir=%{mingw64_datadir}/enchant-2" \
f645764
%mingw_make DESTDIR=%{buildroot} install
f645764
find %{buildroot} -name '*.la' -delete
f645764
f645764
# Drop the man-pages
f645764
rm -rf %{buildroot}%{mingw32_datadir}/man
f645764
rm -rf %{buildroot}%{mingw64_datadir}/man
f645764
f645764
f645764
%files -n mingw32-%{pkgname}
f645764
%license COPYING.LIB
f645764
%{mingw32_bindir}/enchant-lsmod-2.exe
f645764
%{mingw32_bindir}/enchant-2.exe
f645764
%{mingw32_bindir}/libenchant-2.dll
f645764
%{mingw32_includedir}/enchant-2/
f645764
%dir %{mingw32_libdir}/enchant-2/
f645764
%{mingw32_libdir}/enchant-2/enchant_hunspell.dll
f645764
%{mingw32_libdir}/enchant-2/enchant_hunspell.dll.a
f645764
%{mingw32_libdir}/libenchant-2.dll.a
f645764
%{mingw32_libdir}/pkgconfig/enchant-2.pc
f645764
%{mingw32_datadir}/enchant-2/
f645764
f645764
%files -n mingw64-%{pkgname}
f645764
%license COPYING.LIB
f645764
%{mingw64_bindir}/enchant-lsmod-2.exe
f645764
%{mingw64_bindir}/enchant-2.exe
f645764
%{mingw64_bindir}/libenchant-2.dll
f645764
%{mingw64_includedir}/enchant-2/
f645764
%dir %{mingw64_libdir}/enchant-2/
f645764
%{mingw64_libdir}/enchant-2/enchant_hunspell.dll
f645764
%{mingw64_libdir}/enchant-2/enchant_hunspell.dll.a
f645764
%{mingw64_libdir}/libenchant-2.dll.a
f645764
%{mingw64_libdir}/pkgconfig/enchant-2.pc
f645764
%{mingw64_datadir}/enchant-2/
f645764
f645764
f645764
%changelog
f658405
* Mon Mar 02 2020 Sandro Mani <manisandro@gmail.com> - 2.2.8-1
f658405
- Update to 2.2.8
f658405
06ff447
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-3
06ff447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
06ff447
e67f6d6
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 2.2.7-2
e67f6d6
- Rebuild (Changes/Mingw32GccDwarf2)
e67f6d6
b92da23
* Sun Sep 15 2019 Sandro Mani <manisandro@gmail.com> - 2.2.7-1
b92da23
- Update to 2.2.7
b92da23
860e284
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
860e284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
860e284
efa1e38
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 2.2.5-1
efa1e38
- Update to 2.2.5
efa1e38
2899d3f
* Fri Jun 28 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-2
2899d3f
- Add patch to fix memory leaks (#1718084)
2899d3f
- Pass --without-hspell
2899d3f
b969a8a
* Tue Jun 18 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-1
b969a8a
- Update to 2.2.4
b969a8a
66e0a9f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-5
66e0a9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
66e0a9f
0f163bd
* Wed Nov 14 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-4
0f163bd
- Rebuild (hunspell)
0f163bd
85fb461
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-3
85fb461
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
85fb461
7c84968
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
7c84968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7c84968
bc31829
* Mon Feb 05 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-1
bc31829
- Update to 2.2.3
bc31829
8ff8a92
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 2.2.1-1
8ff8a92
- Update to 2.2.1
8ff8a92
f645764
* Thu Dec 14 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-2
f645764
- Add patch to fix FSF addresses
f645764
f645764
* Wed Dec 13 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-1
f645764
- Initial package