enchant2/enchant2.spec

385 lines
11 KiB
RPMSpec
Raw Normal View History

%if 0%{?rhel}
%bcond_with mingw
%else
%bcond_without mingw
%endif
2017-12-14 23:10:19 +00:00
Name: enchant2
2023-05-24 12:40:06 +00:00
Version: 2.5.0
2023-07-04 16:08:29 +00:00
Release: 2%{?dist}
2017-12-14 23:10:19 +00:00
Summary: An Enchanting Spell Checking Library
License: LGPLv2+
URL: https://github.com/AbiWord/enchant
Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
BuildRequires: automake autoconf libtool
2018-07-15 20:23:44 +00:00
BuildRequires: gcc-c++
2022-08-04 22:32:40 +00:00
BuildRequires: make
2017-12-14 23:10:19 +00:00
BuildRequires: glib2-devel
BuildRequires: hunspell-devel
BuildRequires: libvoikko-devel
%if !0%{?rhel}
2022-08-04 22:32:40 +00:00
BuildRequires: nuspell-devel
%endif
2017-12-14 23:10:19 +00:00
%if %{with mingw}
2022-02-24 09:55:56 +00:00
BuildRequires: mingw32-filesystem >= 131
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-glib2
BuildRequires: mingw32-hunspell
2022-08-04 22:32:40 +00:00
%if !0%{?rhel}
BuildRequires: mingw32-nuspell
%endif
2022-02-24 09:55:56 +00:00
BuildRequires: mingw64-filesystem >= 131
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-glib2
BuildRequires: mingw64-hunspell
2022-08-04 22:32:40 +00:00
%if !0%{?rhel}
BuildRequires: mingw64-nuspell
%endif
%endif
2022-02-24 09:55:56 +00:00
2017-12-14 23:10:19 +00:00
Provides: bundled(gnulib)
2023-07-04 16:08:29 +00:00
Obsoletes: enchant2-aspell < 2.5.0-2
2017-12-14 23:10:19 +00:00
%description
A library that wraps other spell checking backends.
%if !0%{?rhel}
2021-02-03 12:48:48 +00:00
%package nuspell
Summary: Integration with Nuspell for libenchant
Requires: enchant2%{?_isa} = %{version}-%{release}
Supplements: (enchant2 and nuspell)
%description nuspell
Libraries necessary to integrate applications using libenchant with Nuspell.
%endif
2021-02-03 12:48:48 +00:00
2017-12-14 23:10:19 +00:00
%package voikko
Summary: Integration with voikko for libenchant
Requires: enchant2%{?_isa} = %{version}-%{release}
Supplements: (enchant2 and langpacks-fi)
2017-12-14 23:10:19 +00:00
%description voikko
Libraries necessary to integrate applications using libenchant with voikko.
%package devel
Summary: Development files for %{name}
Requires: enchant2%{?_isa} = %{version}-%{release}
Requires: glib2-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%if %{with mingw}
2022-02-24 09:55:56 +00:00
%package -n mingw32-%{name}
Summary: MinGW Windows %{name} library
2022-02-24 18:59:53 +00:00
BuildArch: noarch
2022-02-24 09:55:56 +00:00
%description -n mingw32-%{name}
MinGW Windows %{pkgname} library.
%package -n mingw64-%{name}
Summary: MinGW Windows %{name} library
2022-02-24 18:59:53 +00:00
BuildArch: noarch
2022-02-24 09:55:56 +00:00
%description -n mingw64-%{name}
MinGW Windows %{name} library.
%endif
2022-02-24 09:55:56 +00:00
%{?mingw_debug_package}
2017-12-14 23:10:19 +00:00
%prep
%autosetup -p1 -n enchant-%{version}
# Needed for Patch0
autoreconf -ifv
2017-12-14 23:10:19 +00:00
%build
2022-02-24 09:55:56 +00:00
# Native build
mkdir build_native
pushd build_native
%define _configure ../configure
2017-12-14 23:10:19 +00:00
%configure \
--with-hunspell-dir=%{_datadir}/hunspell \
%if !0%{?rhel}
2021-02-03 12:48:48 +00:00
--with-nuspell \
%endif
2019-06-28 11:00:21 +00:00
--without-hspell \
2023-02-21 12:56:16 +00:00
--disable-static \
--docdir=%{_defaultdocdir}/%{name}
2017-12-14 23:10:19 +00:00
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build pkgdatadir=%{_datadir}/enchant-2
2022-02-24 09:55:56 +00:00
popd
%if %{with mingw}
2022-02-24 09:55:56 +00:00
# MinGW build
MINGW32_CONFIGURE_ARGS="--with-hunspell-dir=%{mingw32_datadir}/hunspell" \
MINGW64_CONFIGURE_ARGS="--with-hunspell-dir=%{mingw64_datadir}/hunspell" \
%mingw_configure --disable-static --without-hspell --enable-relocatable
MINGW32_MAKE_ARGS="pkgdatadir=%{mingw32_datadir}/enchant-2" \
MINGW64_MAKE_ARGS="pkgdatadir=%{mingw64_datadir}/enchant-2" \
%mingw_make_build
%endif
2017-12-14 23:10:19 +00:00
%install
2022-02-24 09:55:56 +00:00
# Native build
%make_install -C build_native pkgdatadir=%{_datadir}/enchant-2
%if %{with mingw}
2022-02-24 09:55:56 +00:00
# MinGW build
MINGW32_MAKE_ARGS="pkgdatadir=%{mingw32_datadir}/enchant-2" \
MINGW64_MAKE_ARGS="pkgdatadir=%{mingw64_datadir}/enchant-2" \
%mingw_make_install
2023-02-21 12:56:16 +00:00
rm -rf %{buildroot}%{mingw32_datadir}/{doc,man}
rm -rf %{buildroot}%{mingw64_datadir}/{doc,man}
%endif
2022-02-24 09:55:56 +00:00
2017-12-14 23:10:19 +00:00
find %{buildroot} -name '*.la' -delete
%{?mingw_debug_install_post}
2017-12-14 23:10:19 +00:00
%files
%doc AUTHORS NEWS README
%license COPYING.LIB
%{_bindir}/enchant-2
%{_bindir}/enchant-lsmod-2
%{_libdir}/libenchant-2.so.*
%dir %{_libdir}/enchant-2
%{_libdir}/enchant-2/enchant_hunspell.so
%{_mandir}/man1/*
%{_datadir}/enchant-2
%if !0%{?rhel}
2021-02-03 12:48:48 +00:00
%files nuspell
%{_libdir}/enchant-2/enchant_nuspell.so*
%endif
2021-02-03 12:48:48 +00:00
2017-12-14 23:10:19 +00:00
%files voikko
%{_libdir}/enchant-2/enchant_voikko.so*
%files devel
2023-02-21 12:56:16 +00:00
%doc %{_defaultdocdir}/%{name}/enchant.html
%doc %{_defaultdocdir}/%{name}/enchant-2.html
%doc %{_defaultdocdir}/%{name}/enchant-lsmod-2.html
2017-12-14 23:10:19 +00:00
%{_libdir}/libenchant-2.so
%{_libdir}/pkgconfig/enchant-2.pc
%{_includedir}/enchant-2
2023-02-21 12:56:16 +00:00
%{_mandir}/man5/enchant.5*
2017-12-14 23:10:19 +00:00
%if %{with mingw}
2022-02-24 09:55:56 +00:00
%files -n mingw32-%{name}
%license COPYING.LIB
%{mingw32_bindir}/enchant-lsmod-2.exe
%{mingw32_bindir}/enchant-2.exe
%{mingw32_bindir}/libenchant-2.dll
%{mingw32_includedir}/enchant-2/
%dir %{mingw32_libdir}/enchant-2/
%{mingw32_libdir}/enchant-2/enchant_hunspell.dll
%{mingw32_libdir}/enchant-2/enchant_hunspell.dll.a
%if !0%{?rhel}
2022-08-04 22:32:40 +00:00
%{mingw32_libdir}/enchant-2/enchant_nuspell.dll
%{mingw32_libdir}/enchant-2/enchant_nuspell.dll.a
%endif
2022-02-24 09:55:56 +00:00
%{mingw32_libdir}/libenchant-2.dll.a
%{mingw32_libdir}/pkgconfig/enchant-2.pc
%{mingw32_datadir}/enchant-2/
%files -n mingw64-%{name}
%license COPYING.LIB
%{mingw64_bindir}/enchant-lsmod-2.exe
%{mingw64_bindir}/enchant-2.exe
%{mingw64_bindir}/libenchant-2.dll
%{mingw64_includedir}/enchant-2/
%dir %{mingw64_libdir}/enchant-2/
%{mingw64_libdir}/enchant-2/enchant_hunspell.dll
%{mingw64_libdir}/enchant-2/enchant_hunspell.dll.a
%if !0%{?rhel}
2022-08-04 22:32:40 +00:00
%{mingw64_libdir}/enchant-2/enchant_nuspell.dll
%{mingw64_libdir}/enchant-2/enchant_nuspell.dll.a
%endif
2022-02-24 09:55:56 +00:00
%{mingw64_libdir}/libenchant-2.dll.a
%{mingw64_libdir}/pkgconfig/enchant-2.pc
%{mingw64_datadir}/enchant-2/
%endif
2022-02-24 09:55:56 +00:00
2017-12-14 23:10:19 +00:00
%changelog
2023-07-04 16:08:29 +00:00
* Tue Jul 04 2023 Sandro Mani <manisandro@gmail.com> - 2.5.0-2
- Drop aspell subpackage (#2218153)
2023-05-24 12:40:06 +00:00
* Wed May 24 2023 Sandro Mani <manisandro@gmail.com> - 2.5.0-1
- Update to 2.5.0
2023-05-23 09:29:14 +00:00
* Tue May 23 2023 Sandro Mani <manisandro@gmail.com> - 2.4.0-1
- Update to 2.4.0
2023-04-24 16:54:51 +00:00
* Mon Apr 24 2023 Sandro Mani <manisandro@gmail.com> - 2.3.4-2
- Disable mingw by default in RHEL builds
2023-02-20 16:50:50 +00:00
* Mon Feb 20 2023 Sandro Mani <manisandro@gmail.com> - 2.3.4-1
- Update to 2.3.4
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2023-01-04 13:09:43 +00:00
* Wed Jan 04 2023 Sandro Mani <manisandro@gmail.com> - 2.3.3-5
- Rebuild (mingw-icu)
2023-01-03 07:49:33 +00:00
* Tue Jan 03 2023 Sandro Mani <manisandro@gmail.com> - 2.3.3-4
- Rebuild (mingw-icu)
2022-12-31 02:37:14 +00:00
* Sat Dec 31 2022 Pete Walter <pwalter@fedoraproject.org> - 2.3.3-3
- Rebuild for ICU 72
2022-08-06 18:37:53 +00:00
* Sat Aug 06 2022 Sandro Mani <manisandro@gmail.com> - 2.3.3-2
- Rebuild (mingw-icu)
2022-08-04 22:32:40 +00:00
* Mon Aug 01 2022 Sandro Mani <manisandro@gmail.com> - 2.3.3-1
- Update to 2.3.3
2022-08-01 13:03:49 +00:00
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.3.2-8
- Rebuilt for ICU 71.1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-03-25 12:56:05 +00:00
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 2.3.2-6
- Rebuild with mingw-gcc-12
2022-02-24 18:59:53 +00:00
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 2.3.2-5
- Make mingw subpackages noarch
2022-02-24 09:55:56 +00:00
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 2.3.2-4
- Add mingw subpackages
* Tue Jan 25 2022 Parag Nemade <pnemade AT redhat DOT com> - 2.3.2-3
- Update hunspell-dir path
F36 Change https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-12-05 17:14:21 +00:00
* Sun Dec 05 2021 Sandro Mani <manisandro@gmail.com> - 2.3.2-1
- Update to 2.3.2
2021-08-11 06:10:42 +00:00
* Wed Aug 11 2021 Sandro Mani <manisandro@gmail.com> - 2.3.1-1
- Update to 2.3.1
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-15 09:25:46 +00:00
* Tue Jun 15 2021 Sandro Mani <manisandro@gmail.com> - 2.3.0-1
- Update to 2.3.0
2021-05-19 23:58:20 +00:00
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 2.2.15-7
- Rebuild for ICU 69
2021-05-19 20:06:26 +00:00
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 2.2.15-6
- Rebuild for ICU 69
* Sat Mar 06 2021 Peter Oliver <rpm@mavit.org.uk> - 2.2.15-5
- Recommend enchant2-aspell if enchant2 and aspell are both installed.
* Mon Feb 08 2021 Kalev Lember <klember@redhat.com> - 2.2.15-4
- Disable nuspell support for RHEL (#1925839)
2021-02-03 12:48:48 +00:00
* Tue Feb 2 2021 Peter Oliver <rpm@mavit.org.uk> - 2.2.15-3
- Include support for Nuspell.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-12-23 00:59:09 +00:00
* Wed Dec 23 2020 Sandro Mani <manisandro@gmail.com> - 2.2.15-1
- Update to 2.2.15
2020-12-14 08:46:57 +00:00
* Mon Dec 14 2020 Sandro Mani <manisandro@gmail.com> - 2.2.14-1
- Update to 2.2.14
2020-11-03 11:07:45 +00:00
* Tue Nov 03 2020 Sandro Mani <manisandro@gmail.com> - 2.2.13-1
- Update to 2.2.13
2020-10-17 19:38:35 +00:00
* Sat Oct 17 2020 Sandro Mani <manisandro@gmail.com> - 2.2.12-1
- Update to 2.2.12
2020-09-08 08:54:18 +00:00
* Tue Sep 08 2020 Sandro Mani <manisandro@gmail.com> - 2.2.11-1
- Update to 2.2.11
2020-09-02 09:11:24 +00:00
* Wed Sep 02 2020 Sandro Mani <manisandro@gmail.com> - 2.2.10-1
- Update to 2.2.10
2020-08-24 09:27:20 +00:00
* Mon Aug 24 2020 Sandro Mani <manisandro@gmail.com> - 2.2.9-1
- Update to 2.2.9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-03-02 10:02:43 +00:00
* Mon Mar 02 2020 Sandro Mani <manisandro@gmail.com> - 2.2.8-1
- Update to 2.2.8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-09-15 08:16:59 +00:00
* Sun Sep 15 2019 Sandro Mani <manisandro@gmail.com> - 2.2.7-1
- Update to 2.2.7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-07-01 12:50:15 +00:00
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 2.2.5-1
- Update to 2.2.5
2019-06-28 11:00:21 +00:00
* Fri Jun 28 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-2
- Add patch to fix memory leaks (#1718084)
- Pass --without-hspell
2019-06-18 07:53:31 +00:00
* Tue Jun 18 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-1
- Update to 2.2.4
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-4
- Add patch to avoid unnecessary linking of libenchant against libaspell (#1574893)
* Wed May 16 2018 Parag Nemade <pnemade AT redhat DOT com> - 2.2.3-3
- Make enchant2-voikko installed by langpacks-fi package (#1578352)
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-02-05 09:59:39 +00:00
* Mon Feb 05 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-1
- Update to 2.2.3
2018-01-03 22:14:59 +00:00
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 2.2.1-1
- Update to 2.2.1
2017-12-14 23:10:19 +00:00
* Thu Dec 14 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-2
- Add patch to fix FSF addresses
- Kill rpath
* Wed Dec 13 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-1
- Initial package