rpms/openoffice.org-voikko/F-7 openoffice.org-voikko.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ville-Pekka Vainio (vpv) fedora-extras-commits at redhat.com
Wed Jan 23 19:27:47 UTC 2008


Author: vpv

Update of /cvs/pkgs/rpms/openoffice.org-voikko/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3675/F-7

Modified Files:
	.cvsignore sources 
Added Files:
	openoffice.org-voikko.spec 
Log Message:
Import to F-7



--- NEW FILE openoffice.org-voikko.spec ---
Name:           openoffice.org-voikko
Version:        2.1 
Release:        1%{?dist}
Summary:        Finnish spellchecker and hyphenator extension for OpenOffice.org

Group:          Applications/Productivity
License:        GPLv2+
URL:            http://voikko.sourceforge.net/
Source0:        http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: openoffice.org-sdk >= 2.0.4 libvoikko-devel >= 1.5
Requires(pre):    openoffice.org-core
Requires(post):   openoffice.org-core
Requires(preun):  openoffice.org-core
Requires(postun): openoffice.org-core
Requires: openoffice.org-core >= 2.0.4 libvoikko >= 1.5

%define oo2_sdk %{_libdir}/openoffice.org/sdk
%define oo2 %{_libdir}/openoffice.org
%define unopkg %{oo2}/program/unopkg

%description
This package contains a Finnish spell-checking and hyphenation component for
OpenOffice.org. The actual spell-checking and hyphenation functionality is
provided by the Voikko library.


%prep
%setup -q


%build
. %{oo2_sdk}/setsdkenv_unix.sh
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
cd build
voikkoPackage=$(pwd)/voikko.oxt;
# OOo extension
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/voikko.uno.pkg
unzip "$voikkoPackage" -d $RPM_BUILD_ROOT%{_libdir}/voikko.uno.pkg

%pre
if [ $1 -gt 1 ]; then
    # Upgrade => deregister old extension
    %{unopkg} remove --shared org.puimula.ooovoikko -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 || :
fi

%post
    # register extension
    %{unopkg} add --shared %{_libdir}/voikko.uno.pkg -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 || :

%preun
if [ $1 -eq 0 ]; then
    # not upgrading => deregister
    %{unopkg} remove --shared org.puimula.ooovoikko -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 || :
fi

%postun
    # clear disk cache
    %{unopkg} list --shared -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 > /dev/null 2>&1 || :



%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_libdir}/voikko.uno.pkg
%doc ChangeLog COPYING README


%changelog
* Wed Jan 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-1
- Bump release for the initial Fedora build

* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.2
- Make one define a bit cleaner
- Changes by Caolan McNamara:
  - Unpack the component at install time
  - Make a non-empty debuginfo package
  - Install the extension to /usr/lib/

* Mon Jan 21 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.1-0.1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org-voikko/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Jan 2008 18:47:34 -0000	1.1
+++ .cvsignore	23 Jan 2008 19:26:54 -0000	1.2
@@ -0,0 +1 @@
+openoffice.org-voikko-2.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org-voikko/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Jan 2008 18:47:34 -0000	1.1
+++ sources	23 Jan 2008 19:26:54 -0000	1.2
@@ -0,0 +1 @@
+f88a8cde8aea12c42fbdb63a85a284f0  openoffice.org-voikko-2.1.tar.gz




More information about the fedora-extras-commits mailing list