File abiword.spec of Package abiword

#
# spec file for package abiword (Version 2.6.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


BuildRequires:  aspell-devel boost-devel eel-devel enchant-devel fribidi-devel gcc-c++ gnutls-devel goffice-devel gucharmap-devel libgnomedb-devel libgnomeprintui-devel libgsf-devel librsvg-devel libtiff-devel libwnck-devel loudmouth-devel mDNSResponder-devel nautilus-devel python-devel readline-devel update-desktop-files wv-devel
BuildRequires:  libgda-3_0-devel libwpd-devel link-grammar-devel psiconv-devel
BuildRequires:  asio-devel
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif

Name:           abiword
Summary:        A Multiplatform Word Processor
Version:        2.6.4
Release:        42
License:        GPL v2 or later
Group:          Productivity/Office/Word Processor
Source0:        %{name}-%{version}.tar.bz2
Source2:        %{name}-plugins-%{version}.tar.bz2
Url:            http://www.abisource.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Conflicts:      abiword-unstable

%description
AbiWord is a multiplatform 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.



Authors:
--------
    Thomas Fletcher <thomasf@qnx.com>
    Jeff Hostetler <jeff@abisource.com>
    Paul Rohr <paul@abisource.com>
    Bob Sievers <bob@abisource.com>
    Eric Sink <eric@abisource.com>
    Shaw Terwilliger <sterwill@abisource.com>

%package -n libabiword-2_6
License:        GPL v2 or later
Requires:       link-grammar
Summary:        A Multiplatform Word Processor
Group:          Productivity/Office/Word Processor

%description -n libabiword-2_6
AbiWord is a multiplatform 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.



Authors:
--------
    Thomas Fletcher <thomasf@qnx.com>
    Jeff Hostetler <jeff@abisource.com>
    Paul Rohr <paul@abisource.com>
    Bob Sievers <bob@abisource.com>
    Eric Sink <eric@abisource.com>
    Shaw Terwilliger <sterwill@abisource.com>

%package -n libabiword-2_6-devel
License:        GPL v2 or later
Summary:        A Multiplatform Word Processor
Group:          Productivity/Office/Word Processor
Requires:       libabiword-2_6 = %{version}-%{release}
Requires:       glib2-devel, gtk2-devel, pango-devel, libglade2-devel, libgnomeui-devel
Requires:       libgnomeprint-devel, libgnomeprintui-devel
Requires:       freetype2-devel, gucharmap-devel
Requires:       xorg-x11-devel, fontconfig-devel, gnome-vfs2-devel
Requires:       libgsf-devel, enchant-devel, fribidi-devel, wv-devel, libpng-devel

%description -n libabiword-2_6-devel
AbiWord is a multiplatform 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.



Authors:
--------
    Thomas Fletcher <thomasf@qnx.com>
    Jeff Hostetler <jeff@abisource.com>
    Paul Rohr <paul@abisource.com>
    Bob Sievers <bob@abisource.com>
    Eric Sink <eric@abisource.com>
    Shaw Terwilliger <sterwill@abisource.com>

%package devel
License:        GPL v2 or later
Summary:        A Multiplatform Word Processor (Development files)
Requires:       %{name} = %{version}-%{release}
Group:          Development/Libraries/C and C++
Requires:       glib2-devel, gtk2-devel, pango-devel, libglade2-devel, libgnomeui-devel
Requires:       libgnomeprint-devel, libgnomeprintui-devel
Requires:       freetype2-devel, gucharmap-devel
Requires:       xorg-x11-devel, fontconfig-devel, gnome-vfs2-devel
Requires:       libgsf-devel, enchant-devel, fribidi-devel, wv-devel, libpng-devel

%description devel
AbiWord is a multiplatform 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.

This package contain the development files.



Authors:
--------
    Thomas Fletcher <thomasf@qnx.com>
    Jeff Hostetler <jeff@abisource.com>
    Paul Rohr <paul@abisource.com>
    Bob Sievers <bob@abisource.com>
    Eric Sink <eric@abisource.com>
    Shaw Terwilliger <sterwill@abisource.com>

%prep
%setup -b2 -n %{name}-%{version}

%build
%configure --enable-libabiword
%__make
cd ../abiword-plugins-%version
%configure --with-abiword=../abiword-%{version}
%__make

%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
install -m644 abiword_48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
rm $RPM_BUILD_ROOT%{_datadir}/icons/abiword_48.png 
chmod a+x $RPM_BUILD_ROOT%{_datadir}/abiword-2.6/scripts/abw2html.pl
cd ../abiword-plugins-%version
%makeinstall
%suse_update_desktop_file -n %{name} Office WordProcessor
rm $RPM_BUILD_ROOT%{_libdir}/abiword-2.6/plugins/*.*a
%if 0%{?suse_version} > 1020
# create symlinks for man pages
%fdupes -s $RPM_BUILD_ROOT/%{_mandir}
# create hardlinks for the rest
%fdupes $RPM_BUILD_ROOT
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libabiword-2_6 -p /sbin/ldconfig

%postun -n libabiword-2_6 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc BiDiReadme.txt BUILD.TXT COPYING COPYRIGHT.TXT CREDITS.TXT docs README.TXT
%{_bindir}/*
%dir %{_libdir}/abiword-2.6
%dir %{_libdir}/abiword-2.6/plugins
%{_libdir}/abiword-2.6/plugins/*
%dir %{_datadir}/abiword-2.6
%{_datadir}/abiword-2.6/*
%{_datadir}/applications/abiword.desktop
%{_datadir}/pixmaps/abiword_48.png
%dir %{_datadir}/mime-info
%{_datadir}/mime-info/abiword.keys

%files devel
%defattr(-, root, root)
%dir %{_includedir}/abiword-2.6/
%{_includedir}/abiword-2.6/abiwidget.h
%{_includedir}/abiword-2.6/xap_UnixTableWidget.h
%{_libdir}/pkgconfig/abiword-2.6.pc

%files -n libabiword-2_6
%defattr(-, root, root)
%doc $RPM_BUILD_DIR/%{name}-%{version}/docs $RPM_BUILD_DIR/%{name}-%{version}/COPYING $RPM_BUILD_DIR/%{name}-%{version}/COPYRIGHT.TXT $RPM_BUILD_DIR/%{name}-%{version}/README.TXT
%{_libdir}/libabiword-*.so

%files -n libabiword-2_6-devel
%defattr(-, root, root)
%{_includedir}/abiword-2.6/libabiword.h

%changelog
* Fri Aug 29 2008 cyberorg@opensuse.org
- Enable libabiword required for OLPC's Write application
* Fri Jul 18 2008 jpr@suse.de
- Update to 2.6.4
  * Fixed inconsistent text rendering and layout with different zoom
  levels on Unix platforms.
  * The usual set of OpenDocument filter updates, most notably the
  added ability to import MathML formulas.
  * Add the ability to export specific pages and page ranges on the
  command line using the PostScript and PDF exporters on Linux.
- Drop abiword-no-return.diff, it was upstreamed
* Wed May 07 2008 hfiguiere@suse.de
- Patch : abiword-no-return-diff: fix now fatal compilation warnings.
* Mon Apr 07 2008 hfiguiere@suse.de
- Upgrade to AbiWord 2.6.2
  * Make the presentation plugin work.
  * Fix a bunch of small bugs in our XSL-FO, Applix, LaTeX, WML and HTML
  import/export filters.
- Remove all current patches
- Don't disable AbiCollab on configure
* Sun Apr 06 2008 hfiguiere@suse.de
- Add asio-devel in BuildRequires to enable AbiCollab
- Remove duplicate BuildRequires.
- Fix a warning with non executable script.
- Split -devel files.
* Thu Apr 03 2008 hfiguiere@suse.de
- Fix a bad build failure from last minute related to %%fdupes
  misuse
* Thu Apr 03 2008 hfiguiere@suse.de
- Upgrade to AbiWord 2.6 (bnc#374240)
  * New pango renderer (but support for asian languages)
  * GNOME Office plugin
  * Gnome-VFS support
  * Better ODF support
  * OOX support
  * Lot of bug fixes (bnc#234432)
- Grammar checking support
* Tue Nov 06 2007 maw@suse.de
- Add abiword-gcc4.3-fixes.patch, which fixes the build against
  newer versions of poppler
- Use %%fdupes.
* Fri Nov 02 2007 sbrabec@suse.cz
- Reverted one chunk of poppler patch to follow poppler changes.
* Tue Oct 23 2007 meissner@suse.de
- fixed gcc 4.3 build
* Thu Oct 11 2007 sbrabec@suse.cz
- poppler devel package names prepended by "lib".
* Mon Oct 08 2007 sbrabec@suse.cz
- Fixed build with poppler 0.6.
* Tue Jul 31 2007 jpr@suse.de
-Update to 2.4.6
- Fix IDEF vulnerabilities IDEF1613 and IDEF1614 in the MS Word
  import library wvWare
- Fix a longstanding bug that made AbiWord crash on Windows when the
  WordPerfect plugin was installed
- Massive updates to the OpenDocument, WML, XSL-FO and AbiCommand plugins
-Remove upstreamed patch
* Fri Mar 16 2007 sbrabec@suse.cz
- Added c++ packages to BuildRequires.
* Wed Feb 21 2007 mvaner@suse.cz
- Array bounds (#242029)
  - array-bounds.patch
* Thu Jan 04 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Tue Dec 19 2006 meissner@suse.de
- fixed build fail due to warnings.
* Tue Nov 07 2006 ro@suse.de
- fix icon permission
* Wed Nov 01 2006 jhargadon@suse.de
- added a patch to remove call to FcFini from the XAP_UnixApp
  destructor to resolve crashes that occur during shutdown of the
  application.
* Sat Sep 30 2006 aj@suse.de
- Cleanup BuildRequires.
* Sat Sep 02 2006 jhargadon@suse.de
- update to version 2.4.5
- many bug fixes
- grammar checker added
- added tight mage wrapping
- added equations
- added OpenDocument support
- added Gnome-Office charting
- patch for compiler warnings
* Thu Aug 31 2006 gekker@suse.de
- Remove unnecessary gal2-devel from BuildRequires
* Thu Aug 10 2006 gekker@suse.de
- Fix missing sentinel warnings
* Fri Jul 07 2006 aj@suse.de
- Fix build with new poppler version.
* Mon Mar 27 2006 olh@suse.de
- remove -ansi -pedantic from CFLAGS to allow compilation with
  perl use64bitint and c++
* Fri Feb 24 2006 sbrabec@suse.cz
- Improved Categories.
* Mon Feb 06 2006 ro@suse.de
- use -fstack-protector only for > 10.0
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 sbrabec@suse.cz
- Updated to version 2.4.2.
* Fri Jan 13 2006 meissner@suse.de
- Added -fno-strict-aliasing -fstack-protector.
* Fri Nov 04 2005 sbrabec@suse.cz
- Updated to version 2.4.1.
* Mon Oct 31 2005 ro@suse.de
- remove extra qualifications to fix build with gcc-4.1
* Wed Oct 19 2005 sbrabec@suse.cz
- Build with libwpd.
* Wed Oct 05 2005 sbrabec@suse.cz
- Updated to version 2.4.0.
- Fixed more buffer overflows in RTF importer (#120097).
* Tue Sep 27 2005 sbrabec@suse.cz
- Updated to version 2.2.10 (#118545, CESA-2005-004 - rev 1).
* Thu Jul 28 2005 sbrabec@suse.cz
- Updated to version 2.2.9.
* Sat Jul 09 2005 gekker@suse.de
- Fix uninitialzed variables and remove .la files
* Mon May 23 2005 schwab@suse.de
- Fix missing declaration.
* Tue Apr 26 2005 sbrabec@suse.cz
- Updated to version 2.2.7.
* Fri Apr 15 2005 sbrabec@suse.de
- Fixed cast from pointer to integer.
* Tue Feb 22 2005 sbrabec@suse.cz
- Updated to version 2.2.4.
* Sun Jan 23 2005 meissner@suse.de
- use system wv lib, drop -fstrict-aliasing.
* Thu Jan 20 2005 sbrabec@suse.cz
- Updated to version 2.2.3.
* Tue Jan 11 2005 sbrabec@suse.cz
- Update to version 2.2.2.
* Fri Dec 10 2004 ro@suse.de
- install icon file
* Thu Nov 11 2004 sbrabec@suse.cz
- Fixed buffer overflow in the wvHandleDateTimePicture function in wv
  library: CAN-2004-0645 (#47767).
* Tue Sep 14 2004 ro@suse.de
- added ImageMagick-Magick++-devel to neededforbuild
* Tue Jun 29 2004 ro@suse.de
- added libtiff to neededforbuild
* Thu May 13 2004 clahey@suse.de
- Added patch to fix two missing return values.
* Tue May 11 2004 ro@suse.de
- added libcroco,libcroco-devel to neededforbuild
* Wed Apr 21 2004 sbrabec@suse.cz
- Updated to version 2.0.6.
* Wed Mar 17 2004 sbrabec@suse.cz
- Updated to version 2.0.5.
* Mon Mar 08 2004 sbrabec@suse.cz
- Updated to version 2.0.4.
* Sat Feb 21 2004 ro@suse.de
- updated neededforbuild
* Fri Feb 20 2004 sbrabec@suse.cz
- Package renamed to abiword.
* Mon Feb 16 2004 sbrabec@suse.cz
- Updated to version 2.0.3.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Wed Oct 29 2003 sbrabec@suse.cz
- Removed garbage from spec file (move to pixmaps).
* Wed Oct 29 2003 sbrabec@suse.cz
- Updated to version 2.0.1.
- Fixed wv wmf to png support.
* Tue Oct 28 2003 ro@suse.de
- added gtksourceview to neededforbuild
* Thu Sep 18 2003 meissner@suse.de
- drop glib and glib-devel from neededforbuild, no longer needed.
* Tue Sep 16 2003 sbrabec@suse.cz
- Provide and obsolete abiword (bug #31002).
* Mon Sep 01 2003 adrian@suse.de
- install desktop file
* Thu Aug 28 2003 sbrabec@suse.cz
- Updated to version 1.99.5.
- Added gnome-libs-devel to neededforbuild (for gnome-config).
- Fixed Python 2.3 support.
* Tue Aug 26 2003 sbrabec@suse.cz
- Fixed GNOME-DB support.
* Wed Aug 20 2003 sbrabec@suse.cz
- Updated to version 1.99.4.
* Tue Aug 19 2003 sbrabec@suse.cz
- Updated neededforbuild (rename of librsvg2, eel2).
* Mon Aug 18 2003 sbrabec@suse.cz
- Use libgda instead of libgda2 (package was renamed).
* Thu Jul 31 2003 sf@suse.de
- fixed broken VA_COPY (use __va_copy)
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Jun 16 2003 sbrabec@suse.cz
- Initial SuSE version of GNOME2 port.
openSUSE Build Service is sponsored by