Sisyphus repository
Last update: 18 september 2019 | SRPMs: 17447 | Visits: 15122348
en ru br
ALT Linux repos
S:3.0.2-alt5
D:2.5.2-alt1
5.0: 2.6.5-alt1
4.1: 2.6.4-alt2.M41.1
4.0: 2.5.2-alt2
3.0: 2.2.7-alt1

Other repositories
Upstream:1.4rc5

Group :: Office
RPM: abiword

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable gnome
Name: abiword
Summary: Lean and fast full-featured word processor
Version: 2.6.5
Release: alt1
Group: Office
License: GPL
Url: http://www.abisource.com/
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Source: http://www.abisource.com/downloads/abiword/%version/source/abiword-%version.tar.gz
Source1: abiword.desktop
Source2: http://www.abisource.com/downloads/abiword/%version/source/abiword-plugins-%version.tar.gz
Source6: abiword-48.png.bz2
Source7: abiword-32.png.bz2
Source8: abiword-16.png.bz2
Source10: abiword.keys
Source11: abiword.mime

Patch12: %name-be_BY at classic.patch
Patch13: %name-2.4.0-libgda.patch
Patch14: %name-2.4.0-libgnomedb.patch
Patch15: %name-2.4.1-gochart.patch

#AutoReq: yes, noshell

Obsoletes: abisuite, abisuite-koi8, abisuite-cp1251, abisuite-iso8859-8
BuildRequires: bzlib-devel gcc-c++ glibc-devel-static libaiksaurus-gtk-devel libenchant-devel
BuildRequires: libfribidi-devel libgda-devel libgtkmathview-devel libgnomeprintui-devel
BuildRequires: liblink-grammar-devel libncurses-devel libots-devel libreadline-devel librsvg-devel libwmf-devel
BuildRequires: libwpd-devel linux-libc-headers perl-HTML-Tree t1lib-devel
BuildRequires: libwv-devel boost-devel libglade2-devel libpopt-devel
BuildRequires:  desktop-file-utils

%description
AbiWord is a cross-platform, Open Source Word Processor developed
by the people at AbiSource, Inc. and by developers from around the world.
(http://www.abisource.com)
It is a lean and fast full-featured word processor. It works on Microsoft
Windows and most Unix Systems. Features include:

  * Basic character formatting (bold, underline, italics, etc.)
  * Paragraph alignment
  * Spell-check
  * Import of Word97 and RTF documents
  * Export to RTF, Text, HTML, and LaTeX formats
  * Document Templates
  * Interactive rulers and tabs
  * Styles
  * Unlimited undo/redo
  * Multiple column control
  * Widow/orphan control
  * Find/Replace
  * Images
  and much more...

%package devel
Group: Development/C++
Summary: Headers for Abiword plugins
Requires: %name = %version-%release
Requires: libfribidi-devel >= 0.10.4

%description devel
Headers and pkgconfig support for  Abiword plugin building.

%prep
%setup -q -b 2

%build

%configure %{subst_enable gnome}  --with-sys-wv --enable-printing --disable-gucharmap --enable-libabiword
%make_build

export PKG_CONFIG_PATH=`pwd`
export LDFLAGS=-L`pwd`/src/wp/main/unix/

cd ../abiword-plugins-%version
%configure %{subst_enable gnome} --with-abiword=`pwd`/../abiword-%version --enable-libabiword
%make_build

%install
%make_install DESTDIR=%buildroot install

cd ../abiword-plugins-%version
%make_install DESTDIR=%buildroot install

mkdir -p $RPM_BUILD_ROOT%_datadir/mime-info
mkdir -p $RPM_BUILD_ROOT%_libdir/abiword-2.6/plugins
install -m 644 %SOURCE10 %SOURCE11  $RPM_BUILD_ROOT%_datadir/mime-info

sed -i 's/fribidi >= 0.10.4//g' %buildroot%_pkgconfigdir/abiword-2.6.pc
# (fg) Icons
mkdir -p $RPM_BUILD_ROOT%_liconsdir
mkdir -p $RPM_BUILD_ROOT%_iconsdir
mkdir -p $RPM_BUILD_ROOT%_miconsdir
mkdir -p $RPM_BUILD_ROOT%_datadir/pixmaps
bzcat %SOURCE6 > $RPM_BUILD_ROOT%_liconsdir/abiword.png
bzcat %SOURCE7 > $RPM_BUILD_ROOT%_iconsdir/abiword.png
bzcat %SOURCE8 > $RPM_BUILD_ROOT%_miconsdir/abiword.png

mv $RPM_BUILD_ROOT%_iconsdir/abiword_48.png $RPM_BUILD_ROOT%_datadir/pixmaps/

install -D %SOURCE1 %buildroot%_desktopdir/

%files
%doc docs
#_bindir/AbiWord-2.6
%_bindir/abiword
%dir %_libdir/abiword-2.6
%dir %_libdir/abiword-2.6/plugins
%dir %_libdir/abiword-2.6/plugins/AbiWord
%dir %_libdir/abiword-2.6/plugins/AbiWord/glade
%_miconsdir/*
%_liconsdir/*
%_iconsdir/%name.png
%_datadir/pixmaps/abiword_48.png
%_datadir/abiword-2.6
%_datadir/mime-info/*
%_desktopdir/abiword.desktop
%_libdir/abiword-2.6/plugins/*.so
%_libdir/abiword-2.6/plugins/AbiWord/glade/ots.glade
%_libdir/libabiword-2.6.so
%exclude %_libdir/abiword-2.6/plugins/*.la

%files devel
%_includedir/*
%_pkgconfigdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin