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