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