X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=abiword.spec;h=4a31ffc927f7539fd81e46f74579764f94dccd42;hb=6a7a2dfbb9ea572bb3f83bf88dd3447c23408b4c;hp=646b265190e53cbf83f907d7da383d2380ff9251;hpb=0cf209bf5c6f94f7a15a2b769f52ab132be83113;p=packages%2Fabiword.git diff --git a/abiword.spec b/abiword.spec index 646b265..4a31ffc 100644 --- a/abiword.spec +++ b/abiword.spec @@ -1,61 +1,65 @@ # -# TODO: -# - installed, but unpackaged files -# /usr/share/mime-info/abiword.keys -# -%bcond_without gda # libgda support +%bcond_with gda # libgda support +%bcond_without goffice # without plugin-goffice %bcond_without gnome # without GNOME libs %bcond_with gnomevfs # gnome-vfs support -%bcond_with goffice # without plugin-goffice %bcond_with ots # try build plugin-ots (requires ots >= 0.5.0) # -%define mver 2.8 +%define mver 3.0 # Summary: Multi-platform word processor Summary(pl.UTF-8): Wieloplatformowy procesor tekstu Name: abiword -Version: 2.8.1 -Release: 3 +Version: 3.0.1 +Release: 1 Epoch: 1 -License: GPL +License: GPL v2+ Group: X11/Applications/Editors Source0: http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz -# Source0-md5: 284fe25289c160c3797b527a8aacad12 +# Source0-md5: f3f8052e7b4979a43b75775a381e6cb8 Patch0: %{name}-desktop.patch -Patch1: libpngX.patch +Patch1: %{name}-mht.patch +Patch2: %{name}-librevenge.patch +Patch3: %{name}-link-grammar-5.patch +Patch4: %{name}-link-grammar-5-second.patch URL: http://www.abisource.com/ BuildRequires: aiksaurus-gtk-devel >= 1.2.1 -BuildRequires: aspell-devel >= 0.60.4 BuildRequires: autoconf BuildRequires: automake BuildRequires: boost-devel >= 1.33.1 BuildRequires: bzip2-devel BuildRequires: cairo-devel -BuildRequires: curl-devel BuildRequires: enchant-devel >= 1.2.6 +BuildRequires: eps-devel +BuildRequires: evolution-data-server-devel BuildRequires: fontconfig-devel >= 1:2.3.95 BuildRequires: fribidi-devel >= 0.10.4 BuildRequires: glib2-devel >= 1:2.12.1 -#BuildRequires: gnome-scan-devel < 0.6 BuildRequires: gtk+2-devel >= 2:2.12.0 BuildRequires: gtkmathview-devel >= 0.7.6 BuildRequires: gucharmap-devel >= 1.7.0 -%{?with_gda:BuildRequires: libgda-devel >= 1:1.2.3} -%{?with_gda:BuildRequires: libgnomedb-devel >= 1:1.2.0} -BuildRequires: libgnomeprintui-devel >= 2.12.1 +%if %{with gda} +BuildRequires: libgda-devel >= 1:1.2.4-16 +BuildRequires: libgnomedb-devel >= 1:1.2.0 +%else +Obsoletes: abiword-plugin-gda +%endif BuildRequires: libgnomeui-devel >= 2.15.91 -BuildRequires: libgoffice-devel >= 0.6.0 -%{?with_goffice:BuildRequires: libgoffice-devel >= 0.8.0} -%{?with_gnomevfs:BuildRequires: libgsf-gnome-devel >= 1.14.1} +%if %{with goffice} +BuildRequires: libgoffice-devel >= 0.8.0 +%else +Obsoletes: abiword-plugin-goffice +%endif BuildRequires: libgsf-devel >= 1.14.9 BuildRequires: libjpeg-devel BuildRequires: libpng-devel +BuildRequires: librevenge-devel BuildRequires: librsvg-devel >= 1:2.16.0 BuildRequires: libtool BuildRequires: libwmf-devel >= 2:0.2.8.4 -BuildRequires: libwpd-devel >= 0.8.5 -BuildRequires: libwpg-devel >= 0.1.0 -BuildRequires: libwps-devel >= 0.1.0 +BuildRequires: libwpd-devel >= 0.9.0 +BuildRequires: libwpg-devel >= 0.2.0 +BuildRequires: libwps-devel >= 0.2.0 BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: link-grammar-devel >= 4.2.1 BuildRequires: loudmouth-devel >= 1.0.1 @@ -66,6 +70,7 @@ BuildRequires: pkgconfig >= 0.9.0 BuildRequires: popt-devel BuildRequires: psiconv-devel >= 0.9.6 BuildRequires: readline-devel +BuildRequires: sed >= 4.0 BuildRequires: t1lib-devel BuildRequires: wv-devel >= 1.2.1 Requires(post,postun): desktop-file-utils @@ -105,6 +110,7 @@ Obsoletes: abiword-plugin-sdw Obsoletes: abiword-plugin-t602 Obsoletes: abiword-plugin-urldict Obsoletes: abiword-plugin-wikipedia +Obsoletes: abiword-plugin-wordperfect Obsoletes: abiword-plugin-wml Obsoletes: abiword-plugin-xhtml Obsoletes: abiword-plugin-xslfo @@ -148,14 +154,14 @@ bliskoznacznych. %package plugin-collab Summary: Remote collaborate for AbiWord -Summary(pl): Zdalna współpraca dla AbiWorda +Summary(pl.UTF-8): Zdalna współpraca dla AbiWorda Group: X11/Applications/Editors Requires: %{name} = %{epoch}:%{version}-%{release} %description plugin-collab Allows to collaborate with a remote user. -%description plugin-collab -l pl +%description plugin-collab -l pl.UTF-8 Wtyczka pozwalająca na współpracę z innym użytkownikiem przez sieć. %package plugin-command @@ -311,11 +317,9 @@ Jest to teczka clipartów używanych przez AbiWorda. %setup -q %patch0 -p1 %patch1 -p1 - -# use generic icon name -sed -i -e 's|abiword_48.png|abiword.png|' Makefile.am -sed -i -e 's|abiword_48|abiword|' src/wp/ap/gtk/ap_UnixFrameImpl.cpp -mv abiword_48.png abiword.png +%patch2 -p0 +%patch3 -p1 +%patch4 -p1 %build %{__aclocal} -I . @@ -327,13 +331,7 @@ mv abiword_48.png abiword.png --disable-static \ --enable-clipart \ --enable-plugins=auto \ - --enable-printing \ - --enable-scripting \ - --enable-templates \ - --enable-threads \ - --with-libxml2 \ - --with-pspell \ - --with-sys-wv + --enable-templates %{__make} @@ -341,20 +339,21 @@ mv abiword_48.png abiword.png rm -rf $RPM_BUILD_ROOT %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT \ - icondir=%{_pixmapsdir} + DESTDIR=$RPM_BUILD_ROOT # Remove useless files -rm -f $RPM_BUILD_ROOT%{_libdir}/abiword-%{mver}/plugins/*.la +%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/abiword-%{mver}/plugins/*.la %clean rm -rf $RPM_BUILD_ROOT %post %update_desktop_database_post +%update_icon_cache hicolor %postun %update_desktop_database_postun +%update_icon_cache hicolor %files %defattr(644,root,root,755) @@ -371,8 +370,13 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/abiword-%{mver}/templates %{_datadir}/abiword-%{mver}/ui %{_datadir}/abiword-%{mver}/xsltml +%{_datadir}/abiword-%{mver}/mime-info +%{_datadir}/abiword-%{mver}/omml_xslt %{_desktopdir}/*.desktop -%{_pixmapsdir}/*.png +%{_iconsdir}/hicolor/*/apps/abiword.* +%{_mandir}/man1/abiword.1* +%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service +%{_datadir}/telepathy/clients/AbiCollab.client # These don't add any additional dependencies so there's no reason to split %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/applix.so @@ -381,6 +385,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/clarisworks.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/docbook.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/eml.so +%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/epub.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/freetranslation.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/garble.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gdict.so @@ -409,7 +414,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/urldict.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wikipedia.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wml.so -%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so +#%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/xslfo.so %files devel @@ -421,6 +426,8 @@ rm -rf $RPM_BUILD_ROOT %files plugin-aiksaurus %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/aiksaurus.so +%attr(755,root,root) %{_libdir}/libAiksaurusGtk3--export-dynamic.so +%attr(755,root,root) %{_libdir}/libAiksaurusGtk3.so %files plugin-collab %defattr(644,root,root,755) @@ -468,9 +475,9 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wmf.so -%files plugin-wordperfect -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so +#%files plugin-wordperfect +#%defattr(644,root,root,755) +#%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so %files clipart %defattr(644,root,root,755)