1a22ab
Name:           libreoffice-voikko
1a22ab
Version:        3.4
1a22ab
Release:        4%{?dist}
1a22ab
Summary:        Finnish spellchecker and hyphenator extension for LibreOffice
1a22ab
1a22ab
Group:          Applications/Productivity
1a22ab
License:        GPLv3+
1a22ab
URL:            http://voikko.sourceforge.net/
1a22ab
# The usual format of stable release URLs
1a22ab
Source0:        http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz
1a22ab
# The usual format of test release URLs
1a22ab
#Source0:        http://www.puimula.org/htp/testing/%{name}-%{version}rc2.tar.gz
1a22ab
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1a22ab
1a22ab
%global libo_version 4.0
1a22ab
%global libo %{_libdir}/libreoffice
1a22ab
%global libo_sdk %{libo}/sdk
1a22ab
1a22ab
BuildRequires:    libreoffice-sdk%{?_isa} >= %{libo_version}
1a22ab
BuildRequires:    libvoikko-devel%{?_isa}
1a22ab
Requires:         libreoffice-core%{?_isa} >= %{libo_version}
1a22ab
# Renamed from openffice.org-voikko
1a22ab
Provides:         openoffice.org-voikko = %{version}-%{release}
1a22ab
Obsoletes:        openoffice.org-voikko < 3.1.2-6
1a22ab
1a22ab
# The location of the installed extension. Apparently the directory name must
1a22ab
# end with .uno.pkg or unopkg will fail.
1a22ab
%define voikkoext %{libo}/share/extensions/voikko.uno.pkg
1a22ab
1a22ab
%description
1a22ab
This package contains a Finnish spell-checking and hyphenation component for
1a22ab
LibreOffice. The actual spell-checking and hyphenation functionality is
1a22ab
provided by the Voikko library.
1a22ab
1a22ab
1a22ab
%prep
1a22ab
%setup -q
1a22ab
sed -i 's|-BUCR||g' Makefile
1a22ab
1a22ab
%build
1a22ab
. %{libo_sdk}/setsdkenv_unix.sh
1a22ab
# CC_FLAGS needs to be overwritten because the default value adds an extra -O
1a22ab
# COMP_LINK_FLAGS needs to be overwritten because the default value adds an
1a22ab
# rpath
1a22ab
make extension-files "CC_FLAGS=-c -fpic -fvisibility=hidden" "OPT_FLAGS=$RPM_OPT_FLAGS" "COMP_LINK_FLAGS=-shared" %{?_smp_mflags}
1a22ab
1a22ab
%install
1a22ab
rm -rf $RPM_BUILD_ROOT
1a22ab
# This needs to be run every time before calling make
1a22ab
. %{libo_sdk}/setsdkenv_unix.sh
1a22ab
make install-unpacked DESTDIR=$RPM_BUILD_ROOT%{voikkoext}
1a22ab
# Set the library executable so debuginfo can be extracted.
1a22ab
chmod +x $RPM_BUILD_ROOT%{voikkoext}/voikko.so
1a22ab
1a22ab
1a22ab
%clean
1a22ab
rm -rf $RPM_BUILD_ROOT
1a22ab
1a22ab
1a22ab
%files
1a22ab
%defattr(-,root,root,-)
1a22ab
%{voikkoext}
1a22ab
%doc ChangeLog COPYING README
1a22ab
1a22ab
1a22ab
%changelog
1a22ab
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.4-4
1a22ab
- Mass rebuild 2014-01-24
1a22ab
1a22ab
* Wed Jan 08 2014 Caolán McNamara <caolanm@redhat.com> - 3.4-3
1a22ab
- Resolves: rhbz#1048874 fix FTBFS
1a22ab
1a22ab
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4-2
1a22ab
- Mass rebuild 2013-12-27
1a22ab
1a22ab
* Sun Apr 14 2013 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.4-1
1a22ab
- New upstream release
1a22ab
- Rebuilt for LibreOffice 4.0
1a22ab
1a22ab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-3
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1a22ab
1a22ab
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1a22ab
1a22ab
* Sat Feb 04 2012 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.3-1
1a22ab
- New upstream release for LibreOffice 3.5
1a22ab
1a22ab
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-5
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1a22ab
1a22ab
* Sun Oct 02 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-4
1a22ab
- Specify CC_FLAGS and COMP_LINK_FLAGS so that an extra -O switch and setting an
1a22ab
  rpath are avoided.
1a22ab
1a22ab
* Sun Sep 25 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-3
1a22ab
- Remove the versioned dependency on libvoikko
1a22ab
- Bump the obsoleted openoffice.org-voikko version
1a22ab
1a22ab
* Sun Sep 18 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-2
1a22ab
- Build in the build section, install in the install section
1a22ab
- Add the _isa macro to the libreoffice dependencies
1a22ab
1a22ab
* Sun Aug 28 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2-1
1a22ab
- Package renamed from openoffice.org-voikko to libreoffice-voikko
1a22ab
- First upstream libreoffice-voikko release
1a22ab
1a22ab
* Tue Jul 19 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.1.2-4
1a22ab
- Fix FTBFS (rhbz #716053)
1a22ab
- Update required LibreOffice version
1a22ab
1a22ab
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-3
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1a22ab
1a22ab
* Sat Oct 30 2010 Caolán McNamara <caolanm@redhat.com> - 3.1.2-2
1a22ab
- rebuild for LibreOffice
1a22ab
1a22ab
* Thu Aug 05 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1.2-1
1a22ab
- New upstream release
1a22ab
- Remove both patches, upstreamed
1a22ab
1a22ab
* Tue Jul 27 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-5
1a22ab
- Fix for rhbz #618151, switch group elements to node elements in config.xcu,
1a22ab
  patch by David Tardon
1a22ab
1a22ab
* Wed Jul 14 2010 Caolán McNamara <caolanm@redhat.com> - 3.1-4
1a22ab
- Rebuild for OpenOffice.org 3.3
1a22ab
1a22ab
* Fri Jan 22 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-3
1a22ab
- Add patch from SVN to partly fix broken configuration handling, which
1a22ab
  may lead to an OO.o crash (rhbz#549289)
1a22ab
1a22ab
* Thu Nov 19 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-2
1a22ab
- Update for OpenOffice.org 3.2
1a22ab
1a22ab
* Mon Aug 10 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-1
1a22ab
- Update source URL to "official" upstream and bump version accordingly.
1a22ab
- The tarball is the same as in RC2.
1a22ab
1a22ab
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-0.3.rc2
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1a22ab
1a22ab
* Mon Apr 13 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-0.2.rc2
1a22ab
- New release candidate
1a22ab
1a22ab
* Mon Apr 06 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.1-0.1.rc1
1a22ab
- New release candidate
1a22ab
- Grammar checking enabled
1a22ab
1a22ab
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
1a22ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1a22ab
1a22ab
* Wed Feb 18 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0.1-2
1a22ab
- Rebuild for OOO310_m1
1a22ab
- No need to use a define for unopkg anymore
1a22ab
1a22ab
* Wed Jan 21 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0.1-1
1a22ab
- openoffice.org-voikko 3.0.1
1a22ab
- Drop integrated OOO 3.0.1 compatibility patch
1a22ab
- Require OOO 3.0.1
1a22ab
1a22ab
* Sun Dec 28 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-5
1a22ab
- Add patch from upstream to fix FTBFS with OOO300_m14, the grammar
1a22ab
  checking framework was changed
1a22ab
1a22ab
* Wed Nov 19 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-4
1a22ab
- Add Epoch 1 to all openoffice.org-core pre-/post-Requires to avoid bugs such
1a22ab
  as rhbz #472093 (incorrect openoffice.org-core dependency)
1a22ab
1a22ab
* Mon Oct 13 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-3
1a22ab
- Remove unneeded openoffice.org-core Requires, rpmbuild should detect that
1a22ab
  automatically. Keep libvoikko >= 2.0 Requires as instructed by upstream
1a22ab
  release notes, rpmbuild can't detected that automatically.
1a22ab
1a22ab
* Mon Oct 06 2008 Caolán McNamara <caolanm@redhat.com> - 3.0-2
1a22ab
- add --force to protect against installing by rpm an extension which was
1a22ab
  previously installed manually
1a22ab
1a22ab
* Thu Aug 28 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-1
1a22ab
- openoffice.org-voikko 3.0
1a22ab
1a22ab
* Wed Jul 30 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-0.2.rc1
1a22ab
- New release candidate:
1a22ab
  - Require libvoikko >= 2.0
1a22ab
  - Don't build with SHOW_UGLY_WARNINGS anymore
1a22ab
1a22ab
* Fri Jul 25 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 3.0-0.1.pre4
1a22ab
- New pre-release
1a22ab
- License changed to GPLv3+
1a22ab
- Require openoffice.org >= 3.0.0
1a22ab
- Drop unneeded 3 layer patch
1a22ab
- Build with new SHOW_UGLY_WARNINGS=1 option as this is a test release
1a22ab
1a22ab
* Tue Jun 03 2008 Caolán McNamara <caolan@redhat.com> - 2.2-5
1a22ab
- add openoffice.org-voikko-2.2-3layer.patch to build against 3 layer OOo
1a22ab
1a22ab
* Sat Apr 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-4
1a22ab
- Build with RPM_OPT_FLAGS, adds FORTIFY_SOURCE etc.
1a22ab
1a22ab
* Thu Apr 03 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-3
1a22ab
- Update the package to match the newest extension guidelines:
1a22ab
  - Change location
1a22ab
  - Update openoffice.org-* Requires
1a22ab
1a22ab
* Sun Feb 17 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-2
1a22ab
- Upstream released 2.2
1a22ab
- Remove the "temporary $HOME hack" and all -env options, since unopkg has 
1a22ab
  been patched to take care of all that
1a22ab
1a22ab
* Tue Feb 12 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.2.rc1
1a22ab
- Use the package name, not a Debian leftover environment variable as an mktemp
1a22ab
  template
1a22ab
1a22ab
* Mon Feb 11 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2-0.1.rc1
1a22ab
- 2.2rc1
1a22ab
- Use new install-unpacked make target, no need to unzip the extension
1a22ab
  anymore
1a22ab
- This target both compiles and installs, so do everything in install and
1a22ab
  leave build empty
1a22ab
- Set $HOME to be a temporary directory while using unopkg. Otherwise unopkg
1a22ab
  causes problems if the package is installed with sudo
1a22ab
- Rebuild for GCC 4.3
1a22ab
1a22ab
* Wed Jan 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-1
1a22ab
- Bump release for the initial Fedora build
1a22ab
1a22ab
* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.2
1a22ab
- Make one define a bit cleaner
1a22ab
- Changes by Caolán McNamara:
1a22ab
  - Unpack the component at install time
1a22ab
  - Make a non-empty debuginfo package
1a22ab
  - Install the extension to /usr/lib/
1a22ab
1a22ab
* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.1
1a22ab
- Initial package