2 # - split into subpackages (plugins)
3 Summary: AbiWord - advanced wordprocessor
4 Summary(pl): AbiWord - zaawansowany procesor tekstu
9 Group: X11/Applications
10 Source0: http://savannah.gnu.org/download/abiword/1.0.0/source/%{name}-%{version}.tar.gz
11 Source1: %{name}.desktop
12 URL: http://www.abisource.com/
13 BuildRequires: Aiksaurus-devel
14 BuildRequires: ImageMagick-c++-devel
15 BuildRequires: ImageMagick-devel
16 BuildRequires: ORBit-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: bzip2-devel
20 BuildRequires: expat-devel
21 BuildRequires: gettext-devel
22 BuildRequires: gnome-libs-devel
23 BuildRequires: libjpeg-devel
24 BuildRequires: libpng-devel
25 BuildRequires: libtool
26 BuildRequires: libxml2-devel
27 BuildRequires: pspell-devel
28 BuildRequires: readline-devel
29 BuildRequires: zipios++-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _prefix /usr/X11R6
33 %define _mandir %{_prefix}/man
34 %define _sysconfdir /etc/X11/GNOME
37 AbiWord is a free word processing program similar to Microsoft Word.
38 It is suitable for typing papers, letters, reports, memos, and so
42 AbiWord jest darmowym procesorem tekstu podobnym do Microsoft Word.
43 Jest idealnym narzêdziem do pisania dokumentów, listów, raportów itp.
51 gettextize --copy --force
52 if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
53 CPPFLAGS="`pkg-config libpng12 --cflags`"
55 %configure CPPFLAGS="$CPPFLAGS" \
62 %{__make} -f GNUmakefile
65 find . -name autogen.sh -type f -exec /bin/sh -c "echo \"libtoolize --copy --force\" >> {}" ";"
66 ./autogen.sh; ./autogen.sh
67 %configure CPPFLAGS="$CPPFLAGS `%{_bindir}/gtk-config --cflags`" \
68 --prefix=%{_libdir}/AbiSuite \
72 --with-abiword=$PWD/../abi/
73 %{__make} -f GNUmakefile
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_applnkdir}/Office/Wordprocessors,%{_pixmapsdir}}
79 %{__make} -C abi -f GNUmakefile install \
80 DESTDIR=$RPM_BUILD_ROOT
81 %{__make} -C abiword-plugins -f GNUmakefile install \
82 DESTDIR=$RPM_BUILD_ROOT
84 ln -sf %{_libdir}/AbiSuite/AbiWord/plugins $RPM_BUILD_ROOT%{_datadir}/AbiSuite/AbiWord/plugins
85 ln -sf %{_bindir}/AbiWord $RPM_BUILD_ROOT%{_bindir}/abiword
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Office/Wordprocessors
88 install $RPM_BUILD_ROOT%{_datadir}/AbiSuite/icons/abiword_48.png $RPM_BUILD_ROOT%{_pixmapsdir}
90 gzip -9nf abi/CREDITS.TXT
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc abi/docs/*.abw abi/*.gz
98 %attr(755,root,root) %{_bindir}/*
100 %dir %{_libdir}/AbiSuite
101 %dir %{_libdir}/AbiSuite/AbiWord
102 %dir %{_libdir}/AbiSuite/AbiWord/plugins
103 %attr(755,root,root) %{_libdir}/AbiSuite/AbiWord/plugins/*.so
104 %attr(755,root,root) %{_libdir}/AbiSuite/AbiWord/plugins/*.la
105 %{_applnkdir}/Office/Wordprocessors/*