%define desktop_file_utils_version 0.9 Summary: The AbiWord word processor Name: abiword Version: 2.4.6 Release: 3%{?dist} Epoch: 1 Group: Applications/Editors License: GPL Source: http://www.abisource.com/downloads/abiword/%{version}/source/abiword-%{version}.tar.bz2 Source11: abiword.mime Requires: mathml-fonts Requires: link-grammar >= 4.2.2 PreReq: desktop-file-utils >= %{desktop_file_utils_version} BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libstdc++, /usr/bin/g++ BuildRequires: aspell-devel libpng-devel BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} BuildRequires: fribidi-devel, enchant-devel BuildRequires: libgnomeprintui22-devel BuildRequires: autoconf, libtool # some plugin build deps BuildRequires: readline-devel BuildRequires: bzip2-devel BuildRequires: poppler-devel >= 0.4.0 BuildRequires: ots-devel >= 0.4.2 BuildRequires: libwpd-devel >= 0.8.0 BuildRequires: librsvg2-devel BuildRequires: libwmf-devel BuildRequires: aiksaurus-gtk-devel >= 1.2.1 BuildRequires: link-grammar-devel >= 4.2.2 BuildRequires: gtkmathview-devel >= 0.7.5 BuildRequires: goffice-devel >= 0.1.0 # gnome build deps BuildRequires: libgnomeui-devel URL: http://www.abisource.com/ Patch0: abiword-2.0.9-windowshelppaths.patch Patch1: abiword-2.4.4-desktop.patch %description AbiWord is a cross-platform Open Source word processor. The goal is to make AbiWord full-featured, and remain lean. %prep %setup -q %patch0 -p1 -b .windowshelppaths %patch1 -p1 -b .desktop %build cd abi autoconf %configure --enable-gnome --with-libxml2 cd ../wv %configure --with-libwmf --with-libxml2 cd ../abi make cd ../abiword-plugins libtoolize --copy --force ./nextgen.sh %configure --disable-abicollab --disable-gda --disable-pdf --with-abiword=../abi # Remove libtool predep_objects and postdep_objects wonkiness so that # building without -nostdlib doesn't include them twice. Because we # already link with g++, weird stuff happens if you don't let the # compiler handle this. sed 's/^predep_objects=.*/predep_objects=\"\"/' < libtool > libtool.foo sed 's/^postdep_objects=.*/postdep_objects=\"\"/' < libtool.foo > libtool.foobar sed 's/-shared -nostdlib/-shared/' < libtool.foobar > libtool make # now make the docs cd ../abiword-docs ABI_DOC_PROG=$(pwd)/../abi/src/wp/main/unix/AbiWord-2.4 ./make-html.sh %install cd abi %makeinstall cd ../abiword-plugins %makeinstall DESTDIR=$RPM_BUILD_ROOT # install the docs cd ../abiword-docs mkdir -p $RPM_BUILD_ROOT/%{_datadir}/AbiSuite-2.4/AbiWord/help cp -rp help/* $RPM_BUILD_ROOT/%{_datadir}/AbiSuite-2.4/AbiWord/help/ # some of the help dirs have bad perms (#109261) find $RPM_BUILD_ROOT/%{_datadir}/AbiSuite-2.4/AbiWord/help/ -type d -exec chmod -c o+rx {} \; mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/ cp $RPM_BUILD_ROOT%{_datadir}/AbiSuite-2.4/icons/abiword_48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/abiword_48.png cd ../abi mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --vendor fedora --add-category X-Fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Red-Hat-Extra --remove-category X-Red-Hat-Base \ --add-category Applications --add-category Office \ ./abiword.desktop # remove the original one (which has X-Red-Hat-Base) (#107023) rm -f $RPM_BUILD_ROOT/%{_datadir}/applications/abiword.desktop mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime-info install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/mime-info rm -f $RPM_BUILD_ROOT%{_bindir}/ttf* # nuke .la files rm -f $RPM_BUILD_ROOT/%{_libdir}/AbiWord-2.4/plugins/*.la %clean rm -rf $RPM_BUILD_ROOT %post update-desktop-database %{_datadir}/applications %postun update-desktop-database %{_datadir}/applications %files %defattr(-,root,root) %doc abi/docs %{_bindir}/AbiWord-2.4 %{_bindir}/abiword %{_libdir}/AbiWord-2.4 %{_datadir}/AbiSuite-2.4 %{_datadir}/applications/* %{_datadir}/mime-info/* %{_datadir}/pixmaps/*png %{_datadir}/icons/*png %changelog * Tue Feb 20 2007 Marc Maurer - 1:2.4.6-3.fc7 - Fix 181799 * Fri Feb 02 2007 Marc Maurer - 1:2.4.6-2.fc7 - Rebuild * Sun Nov 05 2006 Marc Maurer - 1:2.4.6-1.fc7 - Update to 2.4.6 * Thu Oct 12 2006 Marc Maurer - 1:2.4.5-4.fc6 - Fix bug 207294 * Mon Sep 11 2006 Marc Maurer - 1:2.4.5-3.fc6 - Rebuild for FC6 * Sat Jul 22 2006 Marc Maurer - 1:2.4.5-2.fc6 - Fix http://bugzilla.abisource.com/show_bug.cgi?id=10229 * Sun Jul 09 2006 Marc Maurer - 1:2.4.5-1.fc6 - Update to 2.4.5 - Fix bug 196690 - abiword fails to build in mock with minimal build environment - Drop the document build patch * Tue Apr 13 2006 Marc Maurer - 1:2.4.4-2.fc6 - Fix documentation generation - Fix charting support * Tue Apr 11 2006 Marc Maurer - 1:2.4.4-1.fc6 - New upstream version - Remove the macro patch and update the desktop patch * Wed Mar 29 2006 Marc Maurer - 1:2.4.2-8.fc6 - Rebuild * Wed Mar 08 2006 Marc Maurer - 1:2.4.2-7.fc5 - Disable the collaboration plugin; it is not working in 2.4.x * Thu Feb 16 2006 Marc Maurer - 1:2.4.2-6.fc5 - Rebuild for Fedora Extras 5 * Sun Feb 05 2006 Marc Maurer - 1:2.4.2-5.fc5 - bug 171926 * Sat Jan 21 2006 Marc Maurer - 1:2.4.2-4.fc5 - Disable the PDF plugin for now, as poppler doesn't ship the xpdf headers anymore * Sat Jan 14 2006 Marc Maurer - 1:2.4.2-3.fc5 - Remove redundant requires - bug 177305 * Thu Jan 05 2006 Marc Maurer - 1:2.4.2-2.fc5 - Bump release, forgot to add desktop patch * Mon Jan 02 2006 Marc Maurer - 1:2.4.2-1.fc5 - Update to 2.4.2 - Add BuildRequires readline-devel for the AbiCommand plugin - Add BuildRequires bzip2-devel and poppler-devel for plugins - Update desktop patch - Patch to fix plugin marcros * Wed Nov 09 2005 Marc Maurer - 1:2.4.1-4.fc5 - Fix bug 171928 * Sun Oct 23 2005 Marc Maurer - 1:2.4.1-3.fc5 - Fix bug 161832: "Abiword is not loading certain modules" - Add libgsf dependecy, which was needed all along - Disable the collaboration plugin, it is not for general use at all * Tue Oct 11 2005 Marc Maurer - 1:2.4.1-2 - Use %%{?dist} in the release name * Sun Oct 9 2005 Marc Maurer - 1:2.4.1-1 - Update to 2.4.1 * Mon Oct 3 2005 Marc Maurer - 1:2.4.0-1 - Require mathml-fonts - Don't rerun autogen.sh, no need anymore - Update gtkmathview dependency to 0.7.5 - Update to 2.4.0 * Mon Sep 26 2005 Marc Maurer - 1:2.3.99-2 - Fix gtkmathview BuildRequires * Thu Sep 22 2005 Marc Maurer - 1:2.3.99-1 - Update to 2.3.99 * Sat Sep 10 2005 Marc Maurer - 1:2.3.6-1 - Update to 2.3.6 - Drop the pango patch * Sat Sep 3 2005 Marc Maurer - 1:2.3.5-3 - Rebuild * Sat Sep 3 2005 Marc Maurer - 1:2.3.5-2 - Enable the abimathview plugin * Sun Aug 21 2005 Marc Maurer - 1:2.3.5-1 - Update to 2.3.5 * Fri Aug 19 2005 Marc Maurer - 1:2.3.4-4 - Update the pango patch to disable more pango code * Fri Aug 19 2005 Marc Maurer - 1:2.3.4-3 - Fix the build after applying the pango disabling patch by rerunning autogen.sh * Fri Aug 19 2005 Marc Maurer - 1:2.3.4-2 - Disable the experimental pango renderer * Thu Aug 17 2005 Marc Maurer - 1:2.3.4-1 - Update to 2.3.4 - Add link-grammar dependency * Thu Jul 28 2005 Marc Maurer - 1:2.2.9-1 - Update to 2.2.9 - Drop the mailmerge patch again * Sun Jun 6 2005 Marc Maurer - 1:2.2.8-2 - Fix build with mailmerge patch * Sun Jun 6 2005 Marc Maurer - 1:2.2.8-1 - Update to 2.2.8 * Sun May 22 2005 Jeremy Katz - 1:2.2.7-2 - rebuild on all arches * Mon Apr 4 2005 Marc Maurer - 1:2.2.7-1 - Because we love brown paper bag releases * Sun Apr 3 2005 Marc Maurer - 1:2.2.6-1 - Drop the gcc4, wvread, virtdestr and pt64 patches - Update the desktop patch * Fri Mar 15 2005 Marc Maurer - 1:2.2.5-3 - Fix 64bit build - Add virtual destructors to classes with virtual functions * Fri Mar 14 2005 Marc Maurer - 1:2.2.5-2 - Remove the --disable-magick plugin switch - disable GDA support until the plugin is ported to gnomedb 1.2.x - Change the download location from SF to http://www.abisource.com/ - patch libole2 - fix read as a macro in new glibc * Fri Mar 2 2005 Caolan McNamara - 1:2.2.5-1 - bump to latest stable - drop integrated dashboard patch again - some gcc4 fixes * Wed Feb 23 2005 Caolan McNamara - 1:2.2.4-2 - rh#149447# dashboard spam revisited * Tue Feb 22 2005 Caolan McNamara - 1:2.2.4-1 - bump to latest stable version - drop integrated nautilus depend patch - drop integrated libwpd depend patch * Fri Feb 11 2005 Caolan McNamara - 1:2.2.3-4 - upgrade to libwpd-0.8 and incoroprate necessary changeover patches * Mon Feb 7 2005 Matthias Clasen - 1:2.2.3-3 - rebuild * Mon Feb 2 2005 Caolan McNamara - 1:2.2.3-2 - remove unneccessary nautilus dependency * Mon Jan 17 2005 Caolan McNamara - 1:2.2.3-1 - bump to new version - drop integrated silenceabidash patch * Fri Jan 14 2005 Caolan McNamara - 1:2.2.2-4 - RH#145085# annoying cluepacket message on stdout/stderr * Wed Jan 12 2005 Tim Waugh - 1:2.2.2-3 - Rebuilt for new readline. * Tue Jan 11 2005 Caolan McNamara - 1:2.2.2-2 - RH#143368# use enchant as spellchecker * Mon Dec 13 2004 Caolan McNamara - 1:2.2.2-1 - bump to new version * Mon Dec 6 2004 Caolan McNamara - 1:2.2.1-1 - bump to new version - geometry patch upstreamed - security patch upstreamed - removeoledecod patch upstreamed - regenerate desktop patch * Mon Nov 22 2004 Caolan McNamara - 1:2.2.0-2 - #abi7961# remove tempnam usages * Mon Nov 22 2004 Caolan McNamara - 1:2.2.0-1 - bump to latest major stable version - #rh140321# sanity check geometry * Tue Nov 9 2004 Caolan McNamara - 1:2.0.14-1 - bump to latest stable version * Mon Nov 8 2004 Jeremy Katz - 1:2.0.12-4 - rebuild for python 2.4 * Thu Sep 30 2004 Christopher Aillon 1:2.0.12-3 - Change to PreReq instead of Requires(post), up to 0.9 * Thu Sep 29 2004 Caolan McNamara 1:2.0.12-2 - Better Requires desktop-file-utils * Wed Sep 29 2004 Caolan McNamara 1:2.0.12-1 - update to new abiword, + change norwegian wordprocessor translation * Tue Sep 14 2004 Caolan McNamara 1:2.0.11-3 - #132389# Add more abiword supported mime types to abiword.desktop * Mon Sep 6 2004 Caolan McNamara 1:2.0.11-2 - merge abiword.keys into abiword.desktop * Fri Aug 27 2004 Caolan McNamara 1:2.0.11-1 - 2.0.11 * Tue Aug 10 2004 Caolan McNamara 1:2.0.10-2 - use libgnomedb * Tue Aug 10 2004 Caolan McNamara 1:2.0.10-1 - 2.0.10 - use aiksaurus * Tue Aug 2 2004 Matthias Clasen 1:2.0.9-4 - rebuilt * Thu Jul 29 2004 Caolan McNamara 1:2.0.9-3 - #126012# some desktop translations * Wed Jul 28 2004 Caolan McNamara 1:2.0.9-2 - #128004# fix irritating windows looking filenames for generated pngs * Fri Jul 16 2004 Caolan McNamara 1:2.0.9-1 - 2.0.9, new version with security fix * Tue Jun 15 2004 Elliot Lee - rebuilt * Thu May 20 2004 Caolan McNamara 1:2.0.6-1 - 2.0.7, new version + gcc34 fixes * Wed Apr 28 2004 Caolan McNamara 1:2.0.6-1 - 2.0.6, 64bit changes made upstream * Sat Mar 13 2004 Jeremy Katz <> 1:2.0.5-1 - 2.0.5 * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 19 2004 Jeremy Katz - 1:2.0.3-3 - rebuild for newer libots and libwpd - fix verify as non-root (#109261) - add wpd files to abiword.keys (#114907) * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Jan 29 2004 Jeremy Katz - 1:2.0.3-1 - 2.0.3 (fixes build against gtk+ 2.3 and lets us rebuild to fix libcroco dep) * Wed Dec 17 2003 Jeremy Katz 1:2.0.2-2 - rebuild for new libwpd * Sun Nov 30 2003 Jeremy Katz - and librsvg2-devel (#111222) * Fri Nov 28 2003 Jeremy Katz - buildrequire libgnomeui-devel (#111164) * Tue Oct 28 2003 Jeremy Katz 1:2.0.1-1 - 2.0.1 - really remove duplicate desktop file * Tue Oct 21 2003 Jeremy Katz 1:2.0.0-6 - make the docs with the just built abiword so that we don't have to have abiword installed to build the docs (#107279) * Tue Oct 21 2003 Jeremy Katz 1:2.0.0-5 - fix linkage to glib 1.2 in hancom plugin (#106033) * Sun Oct 19 2003 Florian La Roche - add %%clean specfile target * Tue Oct 14 2003 Jeremy Katz 1:2.0.0-4 - remove duplicate desktop file (#107023) * Tue Sep 23 2003 Jeremy Katz 1:2.0.0-3 - include the help - show the clipart (#104577) * Mon Sep 15 2003 Jeremy Katz 1:2.0.0-2 - rebuild with newer libwpd and libots to get those plugins * Sun Sep 14 2003 Jeremy Katz 1:2.0.0-1 - 2.0.0 * Thu Sep 4 2003 Jeremy Katz 1:1.99.6-1 - 1.99.6 * Mon Aug 25 2003 Jeremy Katz 1:1.99.5-1 - 1.99.5 * Tue Aug 5 2003 Jeremy Katz 1:1.99.3-1 - 1.99.3 - put icon in the right place (#101646) - fix some 64bit casting issues - disable ots plugin for now, doesn't seem to build with ots 0.4.0 :/ - disable -pedantic -ansi so that it will build * Mon Jul 14 2003 Jeremy Katz 1:1.99.2-2 - ugly hack to deal with libtool silliness on x86_64 * Fri Jul 11 2003 Jeremy Katz 1:1.99.2-1 - 1.99.2 - add buildrequires to make sure the ots and wp plugins get built - no longer needs libgal2, remove buildrequires * Mon Jun 16 2003 Jeremy Katz 1:1.99.1-1 - 1.99.1 * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon May 26 2003 Jeremy Katz 1:1.9.1-3 - rebuild for new libgal2 * Mon May 19 2003 Jeremy Katz 1:1.9.1-2 - tweak plugins build * Mon May 12 2003 Jeremy Katz 1:1.9.1-0.2 - 1.9.1 - drop old patches, switch to using autoconf based build system instead of diving makefiles - build with gnome support - build with plugins - add patch to build on AMD64 * Mon Apr 28 2003 Tim Powers 1:1.0.5-2 - rebuild to fix broken libpspell dep * Mon Mar 24 2003 Jeremy Katz 1:1.0.5-1 - 1.0.5 * Mon Feb 10 2003 Jeremy Katz 1:1.0.4-2 - fix for abiword starting off the screen (#82425) * Thu Jan 23 2003 Jeremy Katz 1:1.0.4-1 - 1.0.4 * Wed Jan 22 2003 Tim Powers - rebuilt * Sun Dec 29 2002 Jeremy Katz 1:1.0.3-2 - make it build on x86_64 * Sun Dec 29 2002 Jeremy Katz 1:1.0.3-1 - 1.0.3 (#80560) - set umask before running mkfontdir in %%post - patch AbiWord script to convert utf8 locales into non-utf8 variants (#72633) * Mon Dec 02 2002 Elliot Lee 1.0.2-7 - Fix doc lines - Fix multilib * Sat Aug 10 2002 Elliot Lee 1.0.2-6 - rebuilt with gcc-3.2 (we hope) * Sat Aug 10 2002 Jeremy Katz 1.0.2-5 - fix help index symlink (#71219) * Thu Aug 1 2002 Jeremy Katz 1.0.2-4 - add abiword binary symlink for upstream compatibility (#70267) * Mon Jul 22 2002 Tim Powers 1.0.2-3 - rebuild using gcc-3.2-0.1 * Thu Jul 18 2002 Jeremy Katz 1.0.2-2 - use included desktop file (#64447) - use desktop-file-install * Wed Jun 26 2002 Jeremy Katz 1.0.2-1 - 1.0.2 - disable perl module build since we weren't including it anyway * Wed May 29 2002 Bernhard Rosenkraenzer 1.0.1-1 - 1.0.1 * Sun Apr 14 2002 Jeremy Katz 0.99.5-1 - zh_CN and zh_TW fonts.dir were flipped - update to 0.99.5 as it fixes some major bugs - define ABI_BUILD_VERSION so the about screen gives us a version * Mon Apr 8 2002 Bennhard Rosenkraenzer 0.99.4-2 - 1st try at fixing up CJK (#61590) - #if 0'ify font warning dialog (#62909, #64556) * Tue Apr 2 2002 Bernhard Rosenkraenzer 0.99.4-1 - Update to 0.99.4, fixes #61153 - Fix #61344 - Nuke the warning about being unable to add anything to font path, that's not how xfs works. * Thu Feb 28 2002 Bernhard Rosenkraenzer 0.99.2-1 - 0.99.2 - remove blank lines in fonts.dir * Thu Jan 31 2002 Bernhard Rosenkraenzer 0.99.1-1 - 0.99.1 * Wed Jan 30 2002 Alex Larsson 0.9.5-3 - Added patch to use libpng10 - Added patch to fix perl build problems. * Fri Nov 23 2001 Bernhard Rosenkraenzer 0.9.5-1 - 0.9.5 * Tue Oct 23 2001 Bernhard Rosenkraenzer 0.9.4.1-1 - Update to 0.9.4.1 (RFE #54806) - Add URL (RFE #54590) * Thu Jul 19 2001 Bernhard Rosenkraenzer 0.7.14-7 - Fix uninstall (#49350) * Sat Jul 7 2001 Tim Powers - rebuilt so that dirs aren't sgid root * Tue Jun 26 2001 Bernhard Rosenkraenzer 0.7.14-5 - Add build requirements (#45157) * Tue Jun 26 2001 Bernhard Rosenkraenzer 0.7.14-4 - Remove CVS admin files from documentation (#44916) * Mon Jun 18 2001 Florian La Roche - add s390x patch from * Sat Jun 09 2001 Florian La Roche - add s390 patch from Helge Deller * Tue May 22 2001 Bernhard Rosenkraenzer 0.7.14-1 - Update to 0.7.14 * Tue Feb 27 2001 Bernhard Rosenkraenzer - Handle MIME type stuff (Bug #27530) - Add BuildPrereqs for some of the less common stuff AbiWord uses (gal-devel, gnome-print-devel, libunicode-devel) * Tue Feb 20 2001 Bernhard Rosenkraenzer - 0.7.13 * Mon Jan 15 2001 Than Ngo - fixed broken code for building * Fri Dec 29 2000 Matt Wilson - 0.7.12 - copy fonts.dir to fonts.scale so mkfontdir doesn't blow it away * Tue Dec 12 2000 Bernhard Rosenkraenzer - Rebuild to get rid of 0777 dirs * Fri Nov 17 2000 Bernhard Rosenkraenzer - 0.7.11 * Sun Aug 20 2000 Preston Brown - fix path to chkfontpath, it was wrong. * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Mon Aug 7 2000 Jakub Jelinek - Don't ship AbiWord_s if we have AbiWord_d - Register AbiWord's fontpath with xfs * Wed Aug 2 2000 Bernhard Rosenkraenzer - Rebuild with new libpng. This fixes Bug #13707 - gotta love it when they change the ABI without increasing the soname! - fix tooltip (Bug #14711) - move binaries from /usr/share to /usr/lib * Wed Jul 12 2000 Jakub Jelinek - Fix build on ia64. * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jul 4 2000 Jakub Jelinek - Rebuild with new gcc. * Sat Jun 18 2000 Bernhard Rosenkraenzer - Fix build on ia64 * Fri Jun 17 2000 Bernhard Rosenkraenzer - 0.7.10 - update download location * Fri Jun 9 2000 Bernhard Rosenkraenzer - initial build for main CD - clean up specfile - fix build with gcc 2.96 and glibc 2.2 - exclude ia64 for now * Wed May 3 2000 Bernhard Rosenkraenzer - 0.7.9 * Wed Feb 2 2000 Bernhard Rosenkraenzer - 0.7.8 - move the desktop file to /etc/X11/applnk so it can be used in both GNOME and KDE - fix up handling of RPM_OPT_FLAGS * Thu Jan 20 2000 Tim Powers - bzipped source to conserve space. * Sun Jan 9 2000 Matt Wilson - enable GNOME, remove perl hack to do RPM_OPT_FLAGS - added libpng requirement. 0.7.7 requires 1.0.5 libpng ABI * Tue Jan 4 2000 Bernhard Rosenkraenzer - 0.7.7 - handle RPM_OPT_FLAGS * Mon Nov 15 1999 Tim Powers - first build for inclusion into Powertools. - some things in this spec file are from the abisuite-0.7.5-1mdk package