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