Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > baa0e27f5f6eabf96e88106a68b7dbf2 > files > 4

mozvoikko-1.9.0-9.fc16.src.rpm

# For the xulrunner unstable requires
%define gecko_ver 7.0.1
# These come from install.rdf
%global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%global firefox_ext_id \{b676e3ff-cda7-4e0c-b2b8-74e4bb40a67a\}
# These requires are hardcoded in the sources
%global libvoikko libvoikko.so.1
%ifarch x86_64 ppc64 ia64 sparc64 s390x
%global mark64  ()(64bit)
%endif

Name:           mozvoikko
Version:        1.9.0
Release:        9%{?dist}
Summary:        Finnish Voikko spell-checker extension for Mozilla programs
Group:          Applications/Internet
License:        GPLv2+
URL:            http://voikko.sourceforge.net
# Usual format of test release URLs
#Source0:        http://www.puimula.org/htp/testing/%{name}-%{version}rc1.tar.gz
# Usual format of stable release URLs
#Source0:        http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz
# 1.9.0 is a test release, available from an unusual URL
Source0:         http://ap1.pp.fi/mozilla/mozvoikko/1.9.0/%{name}-%{version}.tar.bz2
# From upstream mailing list, will probably be applied to SVN at some point
Patch0:         %{name}-%{version}-xulrunner-includes-linking.patch
Patch1:         mozvoikko-dict.patch

# For xulrunner unstable
BuildRequires:  gecko-devel-unstable >= %{gecko_ver}
BuildRequires:  libvoikko-devel
BuildRequires:  pkgconfig
# For xulrunner unstable
Requires:       gecko-libs >= %{gecko_ver}
Requires:       %{libvoikko}%{?mark64}
# As long as Firefox is the only program which can use the extension,
# we may as well require it, since this package is quite useless without it.
Requires:       firefox

%description
This is mozvoikko, an extension for Mozilla programs for using the Finnish
spell-checker Voikko.


%prep
%setup -q -n mozvoikko
%patch0 -p1
%patch1 -p1

%build
make -f Makefile.xulrunner extension-files CFLAGS="$RPM_OPT_FLAGS -std=gnu++0x -fno-strict-aliasing" \
  CC_LINK="g++ -shared -Wl,--no-undefined $RPM_OPT_FLAGS" %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make -f Makefile.xulrunner install-unpacked \
  DESTDIR=$RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_app_id}
# Make the .so executable, so debuginfo can be stripped
chmod +x \
  $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_app_id}/%{firefox_ext_id}/components/*.so


%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README
%{_libdir}/mozilla/extensions/%{firefox_app_id}/%{firefox_ext_id}


%changelog
* Mon Oct 03 2011 Jan Horak <jhorak@redhat.com> - 1.9.0-9
- Rebuild against newer gecko

* Tue Sep 27 2011 Jan Horak <jhorak@redhat.com> - 1.9.0-8
- Rebuild against newer gecko

* Tue Sep 06 2011 Jan Horak <jhorak@redhat.com> - 1.9.0-7
- Rebuild against newer gecko

* Wed Aug 17 2011 Jan Horak <jhorak@redhat.com> - 1.9.0-6
- Rebuild against newer gecko

* Wed Jun 22 2011 Jan Horak <jhorak@redhat.com> - 1.9.0-5
- Rebuild against newer gecko

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Tue Dec 14 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.9.0-3
- Upstream finally released a 1.9.0 tarball, switch to it
- Drop integrated (with improvements) SYSTEM_LIBVOIKKO patch

* Thu Dec 09 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.9.0-2
- Add a patch to fix compilation of mozVoikkoUtils.cpp when SYSTEM_LIBVOIKKO is
  defined
- Remove the xpidl call, nsIMozvoikkoHelper.h is not needed after applying the
  patch

* Wed Dec 08 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.9.0-1
- Update to 1.9.0 to fix FTBFS bug #660944
- Add a patch from the upstream mailing list to fix xulrunner includes and
  linking
- Generate the nsIMozvoikkoHelper.h file with xpidl
- Remove unneeded BuildRoot and the clean section

* Wed Jun 23 2010 Jan Horak <jhorak@redhat.com> - 1.0-11
- Rebuild against newer gecko

* Mon Apr 12 2010 Martin Stransky <stransky@redhat.com> - 1.0-10
- Updated gecko dependency

* Sat Apr 03 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.0-9
- Rebuild against newer gecko

* Tue Mar 23 2010 Jan Horak <jhorak@redhat.com> - 1.0-8
- Rebuild against newer gecko

* Wed Nov 25 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.0-7
- Rebuild against newer gecko

* Thu Nov 05 2009 Jan Horak <jhorak@redhat.com> - 1.0-6
- Rebuild against newer gecko

* Tue Oct 27 2009 Jan Horak <jhorak@redhat.com> - 1.0-5
- Rebuild against newer gecko

* Tue Sep 15 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.0-4
- Drop Requires for libmalaga, the current version of libvoikko in Fedora
  Rawhide doesn't depend on libmalaga anymore

* Fri Sep 11 2009 Jan Horak <jhorak@redhat.com> - 1.0-3
- Rebuild against newer gecko

* Sun Sep 06 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.0-2
- Use global instead of define, except in gecko_ver as that might be used
  in the xulrunner rebuild scripts.

* Mon Aug 10 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 1.0-1
- Update to 1.0.
- Use "official" upstream source, the RC sources have been removed. 
- This is mostly a cosmetic change, no code was changed, only the XML file
  defining the extension version.

* Thu Aug 06 2009 Jan Horak <jhorak@redhat.com> - 0.9.7-0.8.rc1
- Rebuild against newer gecko

* Tue Aug 04 2009 Jan Horak <jhorak@redhat.com> - 0.9.7-0.7.rc1
- Rebuild against newer gecko

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-0.6.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Jul 19 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.7-0.5.rc1
- Rebuild against newer gecko
- Bump Release to fix upgrade path

* Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 0.9.7-0.3.rc1
- Rebuild against newer gecko

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-0.2.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Feb 20 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.7-0.1.rc1
- New RC
  - The unstable nsIXULRuntime interface is not used anymore

* Tue Feb 17 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.6-0.1.rc2
- New RC
- All patches applied upstream, some documentation updates

* Tue Jan 27 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-6
- Add a series of patches developed together with upstream and the
  Ubuntu/Debian maintainer: 
  - Uses pkg-config --cflags and --libs, no rpath anymore
  - Cleans up some unneeded cruft from Makefile.xulrunner
  - Uses -Wl,--as-needed to reduce shared library dependencies
  - Some discussion about pkg-config and rpath in Launchpad #297169

* Fri Dec 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-5
- Rebuild against gecko 1.9.1
- Bump Release so that it's at least as high as in F10 and F9

* Mon Sep 29 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-3
- Rebuild against newer gecko

* Sat Aug 30 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-2
- Fix the xulrunner requires:
  - Add define gecko_ver 1.9.0.1
  - Add Requires: gecko-libs = gecko_ver
  - Add BuildRequires: gecko-devel-unstable = gecko_ver
  - Remove all actual xulrunner requires
- Redo the Makefile.xulrunner includes patch, we only need the stable and
  unstable header dirs in Fedora

* Thu Jul 24 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-1
- Bump Release for initial Fedora build

* Fri Jul 18 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-0.2
- Add patch to remove xulrunner unstable include from Makefile.xulrunner
  and only BuildRequire xulrunner-devel, not xulrunner-devel-unstable
- Change Group to Applications/Internet
- Add dependency to the sonames libvoikko.so.1 and libmalaga.so.7

* Mon Jun 24 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.5-0.1
- New upstream release

* Mon May 31 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.4.1.3-0.1
- New upstream release, the Makefile.xulrunner path patch is no longer needed

* Mon May 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.4.1.2-0.1
- New upstream release, Makefile.xulrunner paths are no longer hardcoded,
  VOIKKO_INCLUDES is dropped completely
- Path patch updated, most notably include directories, even though the build
  worked even before for some reason

* Mon May 26 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.4.1.1-0.3
- Change name to mozvoikko to reflect the possibility of this package later
  supporting Thunderbird and Seamonkey as well
- Change summary and description accordingly
- Add firefox to Requires, because currently it's the only program which can
  use mozvoikko
- Drop BR xulrunner-devel, the -unstable package is enough to require for now

* Sat May 24 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.4.1.1-0.1
- New upstream release
- Use the new extension-files and install-unpacked make targets
- Path patch edited accordingly

* Fri May 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 0.9.4.1-0.1
- Initial package