# # spec file for package abiword (Version 1.9.1) # # Based on the spec file from the abiword tarball # # please send bugfixes or comments to feedback@usr-local-bin.org. # # BUILD OPTIONS: 1 for yes, 0 for no %define enable_static 0 %define enable_debug 0 %define enable_gnome 1 %define enable_perl 1 %define enable_jpeg 1 %define enable_expat 0 %define enable_optimize 1 %define enable_pspell 1 %if %{enable_pspell} %define build_pspell yes %else %define build_pspell no %endif %define AbiSuite AbiSuite-2.0 %define AbiWord AbiWord-2.0 %define version_flag ABI_BUILD_VERSION=%{version} %define ABIPREFIX %{_libdir}/%{AbiWord} # PLUGIN OPTIONS: 1 for yes, 0 for no %define enable_tools 1 %define enable_impexp 1 %define name abiword %define prefix /usr %define version 1.9.1 %define release SuSE.ulb.2 %if %{enable_gnome} %define gnome --enable-gnome %else %define gnome --disable-gnome %endif %if %{enable_debug} %define debug --enable-debug %else %define debug --disable-debug %endif %if %{enable_tools} %define plugin_tools --enable-abicommand --enable-abigimp --enable-aiksaurus --enable-babelfish --enable-freetranslation --disable-gdict --enable-referee --enable-urldict --enable-wikipedia --disable-magick --enable-shell %else %define plugin_tools --disable-abicommand --disable-abigimp --disable-aiksaurus --disable-babelfish --disable-freetranslation --disable-gdict --disable-referee --disable-urldict --disable-wikipedia --disable-magick --disable-shell %endif %if %{enable_impexp} #%define plugin_impexp --enable-gdkpixbuf --enable-bmp --enable-jpeg --enable-wmf --enable-applix --enable-bz2abw --enable-clarisworks --enable-docbook --enable-eml --enable-hancom --enable-hrtext --enable-html --enable-iscii-text --enable-kword --enable-latex --enable-mif --enable-mswrite --enable-nroff --enable-OpenWriter --enable-pdb --enable-psion --enable-pw --enable-sdw --enable-t602 --enable-wml --enable-wordperfect --enable-xhtml --enable-xsl-fo %define plugin_impexp --enable-gdkpixbuf --enable-bmp --enable-jpeg --enable-wmf --enable-applix --enable-bz2abw --enable-clarisworks --enable-eml --enable-hancom --enable-hrtext --enable-html --enable-iscii-text --enable-kword --enable-latex --enable-mif --enable-mswrite --enable-nroff --enable-OpenWriter --enable-pdb --enable-psion --enable-pw --enable-sdw --enable-t602 --enable-wml --enable-wordperfect --enable-xhtml --enable-xsl-fo --enable-librsvg --enable-docbook %else %define plugin_impexp --disable-gdkpixbuf --disable-bmp --disable-jpeg --disable-wmf --disable-applix --disable-bz2abw --disable-clarisworks --disable-docbook --disable-eml --disable-hancom --disable-hrtext --disable-html --disable-iscii-text --disable-kword --disable-latex --disable-mif --disable-mswrite --disable-nroff --disable-OpenWriter --disable-pdb --disable-psion --disable-pw --disable-sdw --disable-t602 --disable-wml --disable-wordperfect --disable-xhtml --disable-xsl-fo %endif Name: %{name} Summary: Multi-platform word processor Version: %{version} Release: %{release} Source: %{name}-%{version}.tar.gz patch1: abi-inst-new.dif Group: Applications/Publishing URL: http://www.abisource.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot License: GPL Packager: James Ogley Autoreqprov: on %description AbiWord is a multi-platform word processor with a GTK+ interface on the UNIX platform. For extended functionality and integration this version is compiled with GNOME support. Abiword with the GNOME front-end is part of the GNOME Office Suite. AbiWord is made available under the GNU GPL license. %if %{enable_perl} %package perl Summary: Perl Bindings Module Group: Development/Libraries Requires: perl >= 5.005 BuildRequires: perl >= 5.005 %description perl Perl Module containing classes for AbiWord Scripting. %endif %if %{enable_tools} %package plugins-tools Summary: Various tools that can be used to extend AbiWord's capabilities. Group: Applications/Productivity Provides: abiword-plugins Obsoletes: abiword-plugins Requires: abiword %description plugins-tools This is a set of plugins for AbiWord. It includes eml: Use mathematical notation in AbiWord. abicommand: Perform AbiWord operations from the command prompt. abigimp: Process images in AbiWord using the Gimp. abimagick: Process images in AbiWord using ImageMagick. wikipedia: Access the Wikipedia reference from AbiWord. urldict: Cross-platform url dictionary plugin. gdict: Use the gnome dictionary application from within AbiWord. aiksaurus: Use the Aiksaurus thesaurus in AbiWord. babelfish: Translate text online using Babelfish. ScriptHappy: Run other programs in a shell and direct the output to AbiWord. %endif %if %{enable_impexp} %package plugins-impexp Summary: Plugins to import and export otherwise unsupported formats. Group: Applications/Productivity Provides: abiword-plugins Obsoletes: abiword-plugins Requires: abiword %{?_with_libwpd:Requires: libwpd} BuildRequires: bzip2-devel, libgsf-devel, librsvg-devel %{?_with_libwpd:BuildRequires: libwpd-devel} %description plugins-impexp This is a set of plugins for AbiWord. It includes support for OpenWriter, bzipped AbiWord, and (x)html document formats. Additionally, it adds support for certain image types to AbiWord builds that were not gnome-enabled. %endif %package clipart Summary: AbiWord Clipart Group: Applications/Productivity %description clipart This is the clipart portfolio used by AbiWord. %prep %__rm -rf $RPM_BUILD_ROOT %setup -q -n %{name}-%{version}/abi %build ./autogen.sh ./configure %{gnome} --enable-xft %{debug} --prefix=%{_prefix} --exec-prefix=%{_prefix} --with-pspell=%{build_pspell} %__make %if %{enable_tools} || %{enable_impexp} cd ../abiword-plugins ./nextgen.sh %configure --prefix=%{_prefix} --disable-nroff --disable-eg %{plugin_tools} %{plugin_impexp} %__make cd ../abi %endif %install umask 022 %if %{enable_tools} || %{enable_impexp} cd ../abiword-plugins %__make DESTDIR=$RPM_BUILD_ROOT install cd ../abi %endif %__make DESTDIR=$RPM_BUILD_ROOT install # Manual fixes to Abi package %__ln_s -f %{_bindir}/AbiWord-2.0 $RPM_BUILD_ROOT/%{_bindir}/abiword-2.0 # Creates GNOME menu entries %__mkdir_p $RPM_BUILD_ROOT/opt/gnome2/share/pixmaps %__cp $RPM_BUILD_DIR/%{name}-%{version}/abidistfiles/icons/abiword_48.png $RPM_BUILD_ROOT/opt/gnome2/share/pixmaps/abiword_48.png %__mkdir_p $RPM_BUILD_ROOT/opt/gnome2/share/applications/ %__cp $RPM_BUILD_DIR/%{name}-%{version}/abi/src/pkg/linux/rpm/data/abiword.desktop $RPM_BUILD_ROOT/opt/gnome2/share/applications/abiword.desktop %__perl -p -i -e "s|Exec=abiword|Exec=abiword-2.0|" $RPM_BUILD_ROOT/opt/gnome2/share/applications/abiword.desktop # Copies oaf files #%__mkdir_p $RPM_BUILD_ROOT/opt/gnome2/share/gnome-2.0/ui #%__mv $RPM_BUILD_ROOT/usr/share/%{AbiSuite}/abi-nautilus-view-file.xml $RPM_BUILD_ROOT/opt/gnome2/share/gnome-2.0/ui/ ??? %__mkdir_p $RPM_BUILD_ROOT/opt/gnome2/lib/bonobo/servers %__mv $RPM_BUILD_ROOT/usr/share/%{AbiSuite}/GNOME_AbiWord_Control_2_0.server $RPM_BUILD_ROOT/opt/gnome2/lib/bonobo/servers/ # Fix for wrong file rights on fonts,icons,clipart %__chmod 644 $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/icons/* %__chmod 644 $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/clipart/* %__chmod 644 $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/templates/* # this files are installed but they've already been copied to a better place #%__rm -f $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/GNOME_AbiWord_Control_1_0.oaf #%__rm -f $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/Nautilus_View_AbiWord.oaf %__rm -f $RPM_BUILD_ROOT/%{_datadir}/%{AbiSuite}/nautilus-abiword-content-view-ui.xml %__rm -f $RPM_BUILD_ROOT/%{_bindir}/abiword %__rm -f $RPM_BUILD_ROOT/%{_libdir}/%{AbiWord}/plugins/*.la %__rm -f $RPM_BUILD_ROOT/%{_libdir}/%{AbiWord}/plugins/*.a %clean %__rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name} %files %defattr(755,root,root,755) %{_bindir}/* %{_datadir}/%{AbiSuite}/AbiWord/scripts/* %defattr(644,root,root,755) %{_datadir}/%{AbiSuite}/AbiWord.exe.MANIFEST %{_datadir}/%{AbiSuite}/abi-nautilus-view-file.xml #%{_datadir}/%{AbiSuite}/COPYING %{_datadir}/%{AbiSuite}/README %{_datadir}/%{AbiSuite}/AbiWord/readme.txt #%{_datadir}/%{AbiSuite}/AbiWord/help/en-US %{_datadir}/%{AbiSuite}/AbiWord/glade %{_datadir}/%{AbiSuite}/AbiWord/strings %{_datadir}/%{AbiSuite}/AbiWord/system.profile* %if !%{enable_pspell} %{_datadir}/%{AbiSuite}/dictionary/*american*.hash* %{_datadir}/%{AbiSuite}/dictionary/ispell_dictionary_list.xml %endif %{_datadir}/%{AbiSuite}/icons %{_datadir}/%{AbiSuite}/templates /opt/gnome2/share/pixmaps/* /opt/gnome2/share/applications/abiword.desktop #%{_datadir}/oaf/* /opt/gnome2/lib/bonobo/servers/* #%{_datadir}/gnome-2.0/ui/* %if %{enable_tools} %files plugins-tools %defattr(644,root,root,755) # comment if not working #%{_libdir}/%{AbiWord}/plugins/libAbiCommand.so #%{_libdir}/%{AbiWord}/plugins/libAbiAikSaurus.so %{_libdir}/%{AbiWord}/plugins/libAbiBabelfish.so %{_libdir}/%{AbiWord}/plugins/libAbiFreeTranslation.so #%{_libdir}/%{AbiWord}/plugins/libAbiGdict.so %{_libdir}/%{AbiWord}/plugins/libAbiGimp.so %{_libdir}/%{AbiWord}/plugins/libAbiGoogle.so %{_libdir}/%{AbiWord}/plugins/libAbiURLDict.so %{_libdir}/%{AbiWord}/plugins/libAbiWikipedia.so %{_libdir}/%{AbiWord}/plugins/libAbiReferee.so %{_libdir}/%{AbiWord}/plugins/libAbiScriptHappy.so %endif %if %{enable_impexp} %files plugins-impexp %defattr(644,root,root,755) %{_libdir}/%{AbiWord}/plugins/libAbiApplix.so %{_libdir}/%{AbiWord}/plugins/libAbiBMP.so %{_libdir}/%{AbiWord}/plugins/libAbiBZ2.so %{_libdir}/%{AbiWord}/plugins/libAbiClarisWorks.so %{_libdir}/%{AbiWord}/plugins/libAbiCoquille.so %{_libdir}/%{AbiWord}/plugins/libAbiDocBook.so %{_libdir}/%{AbiWord}/plugins/libAbiEML.so %{_libdir}/%{AbiWord}/plugins/libAbiGdkPixbuf.so %{_libdir}/%{AbiWord}/plugins/libAbiHancom.so %{_libdir}/%{AbiWord}/plugins/libAbiHRText.so #%{_libdir}/%{AbiWord}/plugins/libAbiHTML.so %{?_with_libwpd:%{_libdir}/%{AbiWord}/plugins/libAbiWordPerfect.so} %{_libdir}/%{AbiWord}/plugins/libAbiISCII.so %{_libdir}/%{AbiWord}/plugins/libAbiJPEG.so %{_libdir}/%{AbiWord}/plugins/libAbiKWord.so %{_libdir}/%{AbiWord}/plugins/libAbiLaTeX.so %{_libdir}/%{AbiWord}/plugins/libAbiMIF.so %{_libdir}/%{AbiWord}/plugins/libAbiMSWrite.so %{_libdir}/%{AbiWord}/plugins/libAbiNroff.so %{_libdir}/%{AbiWord}/plugins/libAbiOpenWriter.so %{_libdir}/%{AbiWord}/plugins/libAbiPW.so %{_libdir}/%{AbiWord}/plugins/libAbiPalmDoc.so %{_libdir}/%{AbiWord}/plugins/libAbiRSVG.so %{_libdir}/%{AbiWord}/plugins/libAbiSDW.so %{_libdir}/%{AbiWord}/plugins/libAbiT602.so %{_libdir}/%{AbiWord}/plugins/libAbiWML.so #%{_libdir}/%{AbiWord}/plugins/libAbiWordPerfect.so %{_libdir}/%{AbiWord}/plugins/libAbiXHTML.so %{_libdir}/%{AbiWord}/plugins/libAbiXSLFO.so %endif %files clipart %defattr(644,root,root,755) %{_datadir}/%{AbiSuite}/clipart %changelog * Mon May 12 2003 James Ogley - Adapt for usr local bin SuSE packages * Wed Apr 16 2003 Rui M. Seabra - Remove unecessary comments * Fri Feb 28 2003 Rui M. Seabra - adapt to new installation changes * Fri Feb 21 2003 Rui M. Seabra - ... a lot of things I forgot to put in here - adapt to new installation changes * Sun Oct 20 2002 Rui M. Seabra - Use pspell conditionally - Include some more files that were missing - Make abiword be a link to abiword-2.0 if there isn't an older installation of abiword on the same bindir * Tue Oct 16 2002 Rui M. Seabra - oops! Change && to || or you will not get the other type of plugins if you disable one type * Sun Oct 13 2002 Rui M. Seabra - If both import and export plugins are disabled, don't run configure or make any plugins * Sun Sep 29 2002 Rui M. Seabra - Whole lotta changes due to the -2.0 change for launching betas * Fri Sep 5 2002 Marc Maurer - Only generate the embeddable package when GNOME is enabled * Fri Aug 23 2002 Rui M. Silva Seabra - Make spec compile abiword for gtk2. * Fri Jun 14 2002 Rui M. Silva Seabra - Make rpm set better permissions on files AND dirs * Thu Jun 13 2002 Rui M. Silva Seabra - Make rpm spec work again. - Include all plugins that seem to build - fix package embeddable (wasn't created) * Sun Jun 9 2002 Mark Gilbert Rui M. Silva Seabra - Pretty much a total rewrite of the way plugins are handled. * Wed May 14 2002 J.M. Maurer - Require libxml2 instead of libxml for the XML build * Sat Apr 6 2002 Joaquín Cuenca Abela Rui M. Silva Seabra - Add %post fonts and %postun fonts to use (if found) redhat's chkfontpath program to add abiword's font path on install and remove it on uninstall * Sun Mar 31 2002 Rui M. Silva Seabra - Partially solve bug http://bugzilla.abisource.com/show_bug.cgi?id=1938 Added postun to remove the symlink * Thu Mar 28 2002 Rui M. Silva Seabra - Solved bug http://bugzilla.abisource.com/show_bug.cgi?id=1938 fonts.dir and fonts.scale will no longer be replaced. * Mon Mar 25 2002 Rui M. Silva Seabra - Removed ispell dictionaries to rpm spec too much clutter and one too many sad voices * Thu Mar 17 2002 Francis James Franklin - Added festvox, abigimp & shell importer plugin to list * Thu Mar 14 2002 Rui M. Silva Seabra - Added ispell dictionaries to rpm spec - fix permissions and owners * Thu Feb 21 2002 Francis James Franklin - Added HTML importer plugin to list * Thu Dec 27 2001 Rui M. Silva Seabra - Simplified spec's ifs, gdkpixbuf plugin is installed by default in gnome build * Sun Dec 9 2001 Rui M. Silva Seabra - The spec now compiles plugins (for the time being, this is not an option) * Sat Nov 24 2001 Rui M. Silva Seabra - Made some minor corrections * Sat Nov 24 2001 Francis James Franklin - Made spec ready to be included in tree * Sat Nov 3 2001 Rui M. Silva Seabra - Seperated the help packages. * Fri Oct 26 2001 Rui M. Silva Seabra - Tweaked spec to make gtk build not include gnome files. - Increase requirements details. - Start preparations for _real_ perl enabled builds. * Wed Oct 24 2001 Rui M. Silva Seabra - Separated fonts and clipart into sub packages. * Tue Oct 23 2001 Rui M. Silva Seabra - Applied Michele Baldessari 's patch to correct some bugs. * Mon Sep 10 2001 Rui M. Silva Seabra - Unified Gtk+/Gnome rpm specs into The One Spec * Thu Jun 28 2001 Martin Sevior - tweaked stuff for 0.90 - all ispell dictionaries found are installed * Sun Dec 9 2000 Christian Schaller - Updates for RedHat 6.2 - Updated for AbiWord 0.7.12 - Major rewrite of compilation and files part of SPEC file * Sat May 20 2000 Christian Schaller - Updated to version 0.7.9 - Changed icon from xpm to png - Made sure Icon had correct rights * Wed Mar 1 2000 Christian Schaller - Updated for TurboLinux 6.0 - Updated to 0.7.8 - Updated for Gnome-enablement - Minor SPEC file changes * Tue Jan 25 2000 Chmouel Boudjnah 0.7.7-2mdk - Fix alpha/sparc compilation. * Thu Jan 13 2000 Saugey Vincent - update to 0.7.7 * Thu Oct 21 1999 Thierry Vignaud - update to 0.7.6 * Thu Sep 23 1999 Chmouel Boudjnah - Build for cooker. * Fri Sep 10 1999 Daouda LO - Mandrake adaptations - bzipped the sources - Make the package relocatable * Sun Sep 05 1999 Vu Hung Quan - update to 0.7.5 ; redhat adaptation * Sat Jun 26 1999 Bernhard Rosenkraenzer - create (more or less) generic spec file...