273d04
%global libo %{_libdir}/libreoffice
273d04
# The location of the installed extension. Apparently the directory name must
273d04
# end with .uno.pkg or unopkg will fail.
273d04
%global voikkoext %{libo}/share/extensions/voikko.uno.pkg
273d04
# The python code in this package is clearly noarch, but LibreOffice is
273d04
# arch-specific. Keeping this package arch-specific as well, for now.
273d04
%global debug_package %{nil}
273d04
273d04
# Manually byte-compile the extension files later
273d04
%global _python_bytecompile_extra 0
273d04
273d04
Name:           libreoffice-voikko
273d04
Version:        5.0
273d04
Release:        10%{?dist}
273d04
Summary:        Finnish spellchecker and hyphenator extension for LibreOffice
273d04
273d04
License:        GPLv3+
273d04
URL:            http://voikko.puimula.org/
273d04
# The usual format of stable release URLs
273d04
Source0:        http://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz
273d04
# The usual format of test release URLs
273d04
#Source0:        http://www.puimula.org/htp/testing/%{name}-%{version}rc2.tar.gz
273d04
# https://github.com/voikko/libreoffice-voikko/pull/12
273d04
Patch0:         0001-make-install-unpacked-flattens-the-python-hierarchy-.patch
273d04
273d04
BuildRequires:    python3-devel
273d04
BuildRequires: make
273d04
Requires:         python3-libvoikko
273d04
Requires:         libreoffice-core%{?_isa}
273d04
Requires:         libreoffice-pyuno%{?_isa}
273d04
273d04
%description
273d04
This package contains a Finnish spell-checking and hyphenation component for
273d04
LibreOffice. The actual spell-checking and hyphenation functionality is
273d04
provided by the Voikko library.
273d04
273d04
273d04
%prep
273d04
%setup -q
273d04
%patch0 -p1 -b .fix.install-unpacked
273d04
273d04
%build
273d04
make extension-files %{?_smp_mflags}
273d04
273d04
%install
273d04
make install-unpacked DESTDIR=$RPM_BUILD_ROOT%{voikkoext}
273d04
%py_byte_compile %{__python3} %{buildroot}%{voikkoext}
273d04
273d04
273d04
%files
273d04
%{voikkoext}
273d04
%doc ChangeLog COPYING README
273d04
273d04
%changelog
273d04
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-10
273d04
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
273d04
  Related: rhbz#1991688
273d04
273d04
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-9
273d04
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
273d04
273d04
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-8
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
273d04
273d04
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-7
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
273d04
273d04
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-6
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
273d04
273d04
* Thu Jan 23 2020 Caolán McNamara <caolanm@redhat.com> - 5.0-5
273d04
- Resolves: rhbz#1676830 fix make install-unpacked to keep hierarchy
273d04
273d04
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-4
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
273d04
273d04
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
273d04
273d04
* Sun Aug 5 2018 Ville-Pekka Vainio <vpvainio AT iki.fi> - 5.0-2
273d04
- Fix dependencies
273d04
273d04
* Fri Aug 3 2018 Ville-Pekka Vainio <vpvainio AT iki.fi> - 5.0-1
273d04
- New upstream release, migrated to python
273d04
- Turn off automatic python byte-compilation and use py_byte_compile for the
273d04
  extension files
273d04
273d04
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-10
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
273d04
273d04
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-9
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
273d04
273d04
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-8
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
273d04
273d04
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-7
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
273d04
273d04
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-6
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
273d04
273d04
* Sat Jul 16 2016 Ville-Pekka Vainio <vpvainio@iki.fi> - 4.1-5
273d04
- The F24 mass rebuild failed, build again, this time it should succeed
273d04
273d04
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-4
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
273d04
273d04
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
273d04
273d04
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 4.1-2
273d04
- Rebuilt for GCC 5 C++11 ABI change
273d04
273d04
* Sun Oct 26 2014 Ville-Pekka Vainio <vpvainio AT iki.fi> - 4.1-1
273d04
- New upstream release, bump LibreOffice dependency to 4.1
273d04
273d04
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
273d04
273d04
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
273d04
273d04
* Sat Oct 19 2013 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.4.1-1
273d04
- New upstream release
273d04
- Update upstream URLs
273d04
273d04
* Wed Aug 07 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 3.4-3
273d04
- Don't use Arched BR: as written in Guidelines
273d04
- fix build failure as cpumaker dropped -BURC option
273d04
273d04
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-2
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
273d04
273d04
* Sun Apr 14 2013 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.4-1
273d04
- New upstream release
273d04
- Rebuilt for LibreOffice 4.0
273d04
273d04
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
273d04
273d04
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
273d04
273d04
* Sat Feb 04 2012 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3-1
273d04
- New upstream release for LibreOffice 3.5
273d04
273d04
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-5
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
273d04
273d04
* Sun Oct 02 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-4
273d04
- Specify CC_FLAGS and COMP_LINK_FLAGS so that an extra -O switch and setting an
273d04
  rpath are avoided.
273d04
273d04
* Sun Sep 25 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-3
273d04
- Remove the versioned dependency on libvoikko
273d04
- Bump the obsoleted openoffice.org-voikko version
273d04
273d04
* Sun Sep 18 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-2
273d04
- Build in the build section, install in the install section
273d04
- Add the _isa macro to the libreoffice dependencies
273d04
273d04
* Sun Aug 28 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-1
273d04
- Package renamed from openoffice.org-voikko to libreoffice-voikko
273d04
- First upstream libreoffice-voikko release
273d04
273d04
* Tue Jul 19 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.1.2-4
273d04
- Fix FTBFS (rhbz #716053)
273d04
- Update required LibreOffice version
273d04
273d04
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
273d04
273d04
* Sat Oct 30 2010 Caolán McNamara <caolanm@redhat.com> - 3.1.2-2
273d04
- rebuild for LibreOffice
273d04
273d04
* Thu Aug 05 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1.2-1
273d04
- New upstream release
273d04
- Remove both patches, upstreamed
273d04
273d04
* Tue Jul 27 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-5
273d04
- Fix for rhbz #618151, switch group elements to node elements in config.xcu,
273d04
  patch by David Tardon
273d04
273d04
* Wed Jul 14 2010 Caolán McNamara <caolanm@redhat.com> - 3.1-4
273d04
- Rebuild for OpenOffice.org 3.3
273d04
273d04
* Fri Jan 22 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-3
273d04
- Add patch from SVN to partly fix broken configuration handling, which
273d04
  may lead to an OO.o crash (rhbz#549289)
273d04
273d04
* Thu Nov 19 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-2
273d04
- Update for OpenOffice.org 3.2
273d04
273d04
* Mon Aug 10 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-1
273d04
- Update source URL to "official" upstream and bump version accordingly.
273d04
- The tarball is the same as in RC2.
273d04
273d04
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-0.3.rc2
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
273d04
273d04
* Mon Apr 13 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-0.2.rc2
273d04
- New release candidate
273d04
273d04
* Mon Apr 06 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-0.1.rc1
273d04
- New release candidate
273d04
- Grammar checking enabled
273d04
273d04
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
273d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
273d04
273d04
* Wed Feb 18 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0.1-2
273d04
- Rebuild for OOO310_m1
273d04
- No need to use a define for unopkg anymore
273d04
273d04
* Wed Jan 21 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0.1-1
273d04
- openoffice.org-voikko 3.0.1
273d04
- Drop integrated OOO 3.0.1 compatibility patch
273d04
- Require OOO 3.0.1
273d04
273d04
* Sun Dec 28 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-5
273d04
- Add patch from upstream to fix FTBFS with OOO300_m14, the grammar
273d04
  checking framework was changed
273d04
273d04
* Wed Nov 19 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-4
273d04
- Add Epoch 1 to all openoffice.org-core pre-/post-Requires to avoid bugs such
273d04
  as rhbz #472093 (incorrect openoffice.org-core dependency)
273d04
273d04
* Mon Oct 13 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-3
273d04
- Remove unneeded openoffice.org-core Requires, rpmbuild should detect that
273d04
  automatically. Keep libvoikko >= 2.0 Requires as instructed by upstream
273d04
  release notes, rpmbuild can't detected that automatically.
273d04
273d04
* Mon Oct 06 2008 Caolán McNamara <caolanm@redhat.com> - 3.0-2
273d04
- add --force to protect against installing by rpm an extension which was
273d04
  previously installed manually
273d04
273d04
* Thu Aug 28 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-1
273d04
- openoffice.org-voikko 3.0
273d04
273d04
* Wed Jul 30 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-0.2.rc1
273d04
- New release candidate:
273d04
  - Require libvoikko >= 2.0
273d04
  - Don't build with SHOW_UGLY_WARNINGS anymore
273d04
273d04
* Fri Jul 25 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-0.1.pre4
273d04
- New pre-release
273d04
- License changed to GPLv3+
273d04
- Require openoffice.org >= 3.0.0
273d04
- Drop unneeded 3 layer patch
273d04
- Build with new SHOW_UGLY_WARNINGS=1 option as this is a test release
273d04
273d04
* Tue Jun 03 2008 Caolán McNamara <caolan@redhat.com> - 2.2-5
273d04
- add openoffice.org-voikko-2.2-3layer.patch to build against 3 layer OOo
273d04
273d04
* Sat Apr 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-4
273d04
- Build with RPM_OPT_FLAGS, adds FORTIFY_SOURCE etc.
273d04
273d04
* Thu Apr 03 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-3
273d04
- Update the package to match the newest extension guidelines:
273d04
  - Change location
273d04
  - Update openoffice.org-* Requires
273d04
273d04
* Sun Feb 17 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-2
273d04
- Upstream released 2.2
273d04
- Remove the "temporary $HOME hack" and all -env options, since unopkg has 
273d04
  been patched to take care of all that
273d04
273d04
* Tue Feb 12 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.2.rc1
273d04
- Use the package name, not a Debian leftover environment variable as an mktemp
273d04
  template
273d04
273d04
* Mon Feb 11 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.1.rc1
273d04
- 2.2rc1
273d04
- Use new install-unpacked make target, no need to unzip the extension
273d04
  anymore
273d04
- This target both compiles and installs, so do everything in install and
273d04
  leave build empty
273d04
- Set $HOME to be a temporary directory while using unopkg. Otherwise unopkg
273d04
  causes problems if the package is installed with sudo
273d04
- Rebuild for GCC 4.3
273d04
273d04
* Wed Jan 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-1
273d04
- Bump release for the initial Fedora build
273d04
273d04
* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.2
273d04
- Make one define a bit cleaner
273d04
- Changes by Caolán McNamara:
273d04
  - Unpack the component at install time
273d04
  - Make a non-empty debuginfo package
273d04
  - Install the extension to /usr/lib/
273d04
273d04
* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.1
273d04
- Initial package