Sisyphus repository
Last update: 17 september 2019 | SRPMs: 17435 | Visits: 15113321
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 

%define name abiword
%define version 2.2.7

%define release alt1
%define build_cvs 0

Name: %name
Summary: Lean and fast full-featured word processor
Version: %version
Release: %release
Group: Office
License: GPL
Url: http://www.abisource.com/
%if %build_cvs
Source: http://download.abisource.com/releases/%version/src/lf/abiword-%{version}cvs.tar.gz
%else
Source: http://download.abisource.com/releases/%version/src/lf/abiword-%version.tar.gz
%endif
Source6: abiword-48.png.bz2
Source7: abiword-32.png.bz2
Source8: abiword-16.png.bz2
Source10: abiword.keys
Source11: abiword.mime
Source12: be-templates.tar
Source13: be-profiles.tar

#Patch10: %name-2.1.2-gda.patch

#Patch11: %name-2.1.2-belarusian.patch
Patch12: %name-2.1.3-be_SU.patch

AutoReq: yes, noshell
Obsoletes: abisuite, abisuite-koi8, abisuite-cp1251, abisuite-iso8859-8
BuildPreReq: gcc-c++-common
BuildPreReq: gcc >= 3.4.3
BuildPreReq: gcc-c++ >= 3.4.3
# Automatically added by buildreq on Tue Apr 27 2004
BuildRequires: ORBit2-devel libexpat-devel libots-devel libwpd-devel XFree86-devel XFree86-libs bzlib-devel esound fontconfig-devel freetype2-devel glib2-devel gnome-libs-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libcroco-devel libeel2-devel libenchant-devel libfribidi-devel libgail-devel libglade2-devel libgnome-devel libgnome-keyring libgnomecanvas-devel libgnomeprint2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libgtk+2-devel libgucharmap-devel libjpeg-devel libnautilus-devel libncurses-devel libpango-devel libpng-devel libpopt-devel libreadline-devel librsvg2-devel libstdc++-devel libwmf-devel libxml2-devel pkgconfig python-dev zlib-devel

%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...

%prep
%if %build_cvs
%setup -q -n %name
%else
%setup -q -n %name-%version
%endif
#%patch10 -p1
#%patch11 -p1
%patch12 -p1


%build
cd abi

%if %build_cvs
./autogen.sh --prefix=%prefix
%configure --enable-gnome
%else
%configure --enable-gnome
%endif
%make
cd ../abiword-plugins
%if %build_cvs
./nextgen.sh
%configure --disable-magick --enable-AbiGdkPixbuf
%else
%configure --disable-magick --enable-AbiGdkPixbuf
%endif
#--disable-gda
%install
cd abi
%makeinstall
cd ../abiword-plugins
%makeinstall DESTDIR=$RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%_datadir/mime-info
install -m 644 %SOURCE10 %SOURCE11  $RPM_BUILD_ROOT%_datadir/mime-info

# (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/

# (fg) Menu entry

mkdir -p $RPM_BUILD_ROOT%_menudir
cat >$RPM_BUILD_ROOT%_menudir/%name <<EOF
?package(%name): command="%_bindir/abiword" section="Office/Wordprocessors" \
icon="abiword.png" needs="x11" title="AbiWord" \
longtitle="RTF and Microsoft Word (up to 97) document editor"
EOF

# be profiles

tar xf %SOURCE12 -C $RPM_BUILD_ROOT%_datadir/AbiSuite-2.2/

# be templates

tar xf %SOURCE13 -C $RPM_BUILD_ROOT%_datadir/AbiSuite-2.2/AbiWord/



%post
%update_menus

%postun
%clean_menus

%files
%doc abi/docs
%_bindir/AbiWord-2.2
%_bindir/abiword
%_libdir/bonobo/*
%_libdir/AbiWord-2.2/plugins/*.so
%_libdir/AbiWord-2.2/plugins/AbiWord/*
%_miconsdir/*
%_liconsdir/*
%_iconsdir/%name.png
%_menudir/%name
%_datadir/pixmaps/abiword_48.png
%_datadir/AbiSuite-2.2
%_datadir/applications/*
%_datadir/mime-info/*

%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