1 |
Name: abiword |
2 |
Summary: Lean and fast full-featured word processor |
3 |
Version: 2.9.3 |
4 |
Release: %mkrel 4 |
5 |
Group: Office |
6 |
URL: http://www.abisource.com/ |
7 |
License: GPLv2+ |
8 |
Source0: http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz |
9 |
Patch0: abiword-2.9.3-eds-3.6.patch |
10 |
BuildRequires: bison |
11 |
BuildRequires: desktop-file-utils |
12 |
BuildRequires: pkgconfig(aiksaurus-1.0) |
13 |
BuildRequires: pkgconfig(cairo-pdf) |
14 |
BuildRequires: pkgconfig(cairo-ps) |
15 |
BuildRequires: pkgconfig(champlain-gtk-0.12) |
16 |
BuildRequires: pkgconfig(dbus-glib-1) >= 0.70 |
17 |
BuildRequires: pkgconfig(enchant) >= 1.2.0 |
18 |
BuildRequires: pkgconfig(fribidi) >= 0.10.4 |
19 |
BuildRequires: pkgconfig(gaiksaurus-1.0) |
20 |
BuildRequires: pkgconfig(gio-2.0) |
21 |
BuildRequires: pkgconfig(glib-2.0) >= 2.6.0 |
22 |
BuildRequires: pkgconfig(gnutls) |
23 |
BuildRequires: pkgconfig(gobject-2.0) >= 2.6.0 |
24 |
BuildRequires: pkgconfig(gthread-2.0) >= 2.6.0 |
25 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.8 |
26 |
BuildRequires: pkgconfig(gtk+-unix-print-3.0) |
27 |
BuildRequires: pkgconfig(libebook-1.2) |
28 |
BuildRequires: pkgconfig(libecal-1.2) |
29 |
BuildRequires: pkgconfig(libgoffice-0.10) |
30 |
BuildRequires: pkgconfig(libgsf-1) >= 1.14.4 |
31 |
BuildRequires: pkgconfig(libical) >= 0.46 |
32 |
BuildRequires: pkgconfig(libots-1) >= 0.5.0 |
33 |
BuildRequires: pkgconfig(libpng) |
34 |
BuildRequires: pkgconfig(librsvg-2.0) >= 2.16.0 |
35 |
BuildRequires: pkgconfig(libsoup-2.4) |
36 |
BuildRequires: pkgconfig(libwpd-0.9) >= 0.9.0 |
37 |
BuildRequires: pkgconfig(libwpd-stream-0.9) >= 0.9.0 |
38 |
BuildRequires: pkgconfig(libwpg-0.2) >= 0.2.0 |
39 |
BuildRequires: pkgconfig(libwps-0.2) >= 0.1.0 |
40 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.0 |
41 |
BuildRequires: pkgconfig(link-grammar) >= 4.2.1 |
42 |
BuildRequires: pkgconfig(loudmouth-1.0) >= 1.3.2 |
43 |
BuildRequires: pkgconfig(mathview-frontend-libxml2) >= 0.7.5 |
44 |
BuildRequires: pkgconfig(pangocairo) |
45 |
BuildRequires: pkgconfig(rasqal) >= 0.9.17 |
46 |
BuildRequires: pkgconfig(redland) >= 1.0.10 |
47 |
BuildRequires: pkgconfig(wv-1.0) >= 1.2.0 |
48 |
BuildRequires: boost-devel |
49 |
BuildRequires: libgcrypt-devel |
50 |
BuildRequires: libjpeg-devel |
51 |
BuildRequires: libpsiconv-devel |
52 |
BuildRequires: libwmf-devel |
53 |
BuildRequires: gnome-common |
54 |
|
55 |
Obsoletes: abiword-plugin-abicollab < 2.7.2 |
56 |
Obsoletes: abiword-plugin-abicommand < 2.7.2 |
57 |
Obsoletes: abiword-plugin-abigimp < 2.7.2 |
58 |
Obsoletes: abiword-plugin-abigoffice < 2.7.2 |
59 |
Obsoletes: abiword-plugin-abigrammar < 2.7.2 |
60 |
Obsoletes: abiword-plugin-abimathview < 2.7.2 |
61 |
Obsoletes: abiword-plugin-abipsion < 2.7.2 |
62 |
Obsoletes: abiword-plugin-aiksaurus < 2.7.2 |
63 |
Obsoletes: abiword-plugin-babelfish < 2.7.2 |
64 |
Obsoletes: abiword-plugin-freetranslation < 2.7.2 |
65 |
Obsoletes: abiword-plugin-google < 2.7.2 |
66 |
Obsoletes: abiword-plugin-graphics < 2.7.2 |
67 |
Obsoletes: abiword-plugin-impexp < 2.7.2 |
68 |
Obsoletes: abiword-plugin-ots < 2.7.2 |
69 |
Obsoletes: abiword-plugin-shell < 2.7.2 |
70 |
Obsoletes: abiword-plugin-urldict < 2.7.2 |
71 |
Obsoletes: abiword-plugin-wikipedia < 2.7.2 |
72 |
Obsoletes: abiword-plugin-gdict < 2.7.2 |
73 |
Obsoletes: %{_lib}abiword < 2.7.2 |
74 |
|
75 |
Suggests: abiword-doc |
76 |
|
77 |
%description |
78 |
AbiWord is a cross-platform, open source, lean and fast full-featured word |
79 |
processor. It works on Most Unix systems, Microsoft Windows and Mac OS X. |
80 |
|
81 |
Abiword with the GNOME front-end is part of the GNOME Office Suite. |
82 |
See http://www.gnomeoffice.org for details. |
83 |
|
84 |
%package devel |
85 |
Summary: Devel files for Abiword |
86 |
Group: Development/Other |
87 |
Requires: %{name} = %{version} |
88 |
|
89 |
%description devel |
90 |
This pacakage contains devel files for Abiword, mainly header files |
91 |
and pkg files. |
92 |
|
93 |
%prep |
94 |
%setup -q -n %{name}-%{version} |
95 |
%patch0 -p0 |
96 |
sed -i -e 's/goffice_req >= 0.10.0/goffice_req/' -e 's/libgoffice-0.10 >= 0.10.0/libgoffice-0.10/' \ |
97 |
configure plugin-configure.m4 plugins/goffice/plugin.m4 configure.in |
98 |
|
99 |
%build |
100 |
%define Werror_cflags %nil |
101 |
# find plugins Makefile templates |
102 |
find plugins -name Makefile.am | sed 's|.am$||g' > plugin-makefiles.m4 |
103 |
|
104 |
# create plugin list |
105 |
(cd ./plugins && find . -maxdepth 1 -type d | grep -v '^\.$' | grep -v '\./\.' | sed 's|\./||g' | xargs echo) > plugin-list.m4 |
106 |
|
107 |
# create conditionals for builtin plugins |
108 |
(for plugin in `cat plugin-list.m4`; do |
109 |
u=`echo $plugin | tr '[:lower:]' '[:upper:]'` |
110 |
echo 'AM_CONDITIONAL(['$u'_BUILTIN], test "$enable_'$plugin'_builtin" = "yes")' |
111 |
done) > plugin-builtin.m4 |
112 |
|
113 |
# find extra m4 files provided by plugins and symlink them |
114 |
for f in ` find ./plugins -name '*.m4' | grep -v 'plugin\.m4'`; do |
115 |
ln -sf $f |
116 |
done |
117 |
|
118 |
autoreconf -fi |
119 |
%configure2_5x --disable-static --enable-plugins --enable-clipart --enable-templates |
120 |
%make |
121 |
|
122 |
%install |
123 |
rm -fr %buildroot |
124 |
%makeinstall_std |
125 |
|
126 |
find %buildroot -name *.la|xargs rm |
127 |
|
128 |
desktop-file-install --vendor="" \ |
129 |
--remove-category="X-Red-Hat-Base" \ |
130 |
--dir %buildroot%{_datadir}/applications \ |
131 |
%buildroot%{_datadir}/applications/%name.desktop |
132 |
|
133 |
%files |
134 |
%{_bindir}/abiword |
135 |
%{_datadir}/abiword* |
136 |
%{_libdir}/libabiword*.so |
137 |
%{_libdir}/abiword-* |
138 |
%{_mandir}/man1/abiword.1.* |
139 |
%{_iconsdir}/*/*/*/* |
140 |
%{_datadir}/applications/*.desktop |
141 |
|
142 |
%files devel |
143 |
%{_includedir}/* |
144 |
%{_libdir}/pkgconfig/*.pc |