Репозитории ALT
S: | 3.0.5-alt1.2 |
D: | 2.5.2-alt1 |
5.1: | 2.8.4-alt0.M51.2 |
4.1: | 2.6.4-alt2.M41.1 |
4.0: | 2.5.2-alt2 |
3.0: | 2.2.7-alt1 |
Другие репозитории
Upstream: | 1.4rc5 |
Группа :: Офис
Пакет: abiword
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable snapshot
%define abi_ver 3.0
%define ver_major 3.0
%define docs_ver %ver_major.1
%def_enable spell
%def_disable ots
%def_with goffice
%def_without champlain
%def_with libical
%def_without eds
%def_with python
%def_enable collabnet
Name: abiword
Version: %ver_major.5
Release: alt1.2
Summary: Lean and fast full-featured word processor
Group: Office
License: GPL-2.0
Url: http://www.abisource.com/
%if_disabled snapshot
Source: https://www.abisource.com/downloads/abiword/%version/source/%name-%version.tar.gz
#Source: https://github.com/AbiWord/abiword/archive/release-%version/%name-%version.tar.gz
%else
Vcs: https://github.com/AbiWord/abiword.git
Source: %name-%version.tar
%endif
Source11: abiword.mime
Source12: abiword.keys
Source13: abiword.xml
#Source20: abiword-3.0.4-ru-RU.po
#fedora patches
Patch11: abiword-2.8.3-desktop.patch
Patch12: abiword-2.6.0-boolean.patch
Patch13: abiword-3.0.0-librevenge.patch
Patch20: abiword-3.0.0-python-override.patch
Obsoletes: abisuite, abisuite-koi8, abisuite-cp1251, abisuite-iso8859-8
Obsoletes: %name-%abi_ver
Provides: %name-%abi_ver = %version-%release
Conflicts: %name-light
Requires: %name-data = %version-%release
Requires: %name-docs >= %docs_ver
BuildRequires: autoconf-archive gcc-c++ boost-devel /usr/bin/appstream-util libreadline-devel flex
BuildRequires: gobject-introspection-devel libgtk+3-gir-devel libgsf-gir-devel
BuildRequires: libgtk+3-devel librsvg-devel libfribidi-devel libredland-devel
BuildRequires: liblink-grammar-devel libgsf-devel bzlib-devel zlib-devel libjpeg-devel libpng-devel libxslt-devel
BuildRequires: libwv-devel libwpd10-devel libwpg-devel libwmf-devel libwps-devel libexpat-devel
BuildRequires: telepathy-glib-devel libdbus-glib-devel
#BuildRequires: libaiksaurus-devel
%{?_enable_spell:BuildRequires: libenchant-devel}
%{?_with_goffice:BuildRequires: libgnomeoffice0.10-devel}
%{?_with_champlain:BuildRequires: libchamplain-gtk3-devel}
%{?_with_libical:BuildRequires: libical-devel}
%{?_with_eds:BuildRequires: evolution-data-server-devel}
%{?_with_python:BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pygobject3 python3-module-setuptools}
%{?_enable_collabnet:BuildRequires: libgnutls-devel libsoup-devel libgcrypt-devel asio-devel}
%{?_enable_ots:BuildRequires: libots-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...
%package data
Summary: Arch independent files for AbiWord
Group: Office
BuildArch: noarch
Obsoletes: %name-%abi_ver-data
Provides: %name-%abi_ver-data = %version-%release
%description data
This package provides noarch data needed for AbiWord to work.
%package devel
Group: Development/C++
Summary: Headers for Abiword plugins
Requires: %name = %version-%release
Obsoletes: %name-%abi_ver-devel
Provides: %name-%abi_ver-devel = %version-%release
%description devel
Headers and pkgconfig support for Abiword plugin building.
Conflicts: %name-devel %name-light-devel
%package gir
Summary: GObject introspection data for the %name
Group: System/Libraries
Requires: %name = %version-%release
Obsoletes: %name-%abi_ver-gir
Provides: %name-%abi_ver-gir = %version-%release
%description gir
GObject introspection data for the %name
%package gir-devel
Summary: GObject introspection devel data for the %name
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release
Obsoletes: %name-%abi_ver-gir-devel
Provides: %name-%abi_ver-gir-devel = %version-%release
%description gir-devel
GObject introspection devel data for the AbiWord
%package -n python3-module-%name
Summary: Python 3 bindings for developing with AbiWord
Group: Development/Python3
Requires: %name-gir = %version-%release
Requires: typelib(Gtk) = 3.0
%description -n python3-module-%name
Python 3 bindings for developing with AbiWord library
%prep
%setup %{?_disable_snapshot:-n %name-%version}
#cp %SOURCE20 po/ru-RU.po
%patch11 -p1 -b .desktop
%patch12 -p1 -b .boolean
%patch13 -p0 -b .librevenge
%patch20 -p1 -b python
sed -i "s|python|\$(PYTHON)|" src/gi-overrides/Makefile.am
%build
%add_optflags -std=c++11 %(getconf LFS_CFLAGS)
%autoreconf
%configure \
--enable-print \
--enable-plugins \
--enable-templates \
--enable-clipart \
--enable-introspection \
%{subst_enable spell} \
%{subst_with goffice} \
%{subst_with champlain} \
%{subst_with libical} \
%{?_without_eds:--without-evolution-data-server} \
%{?_enable_collabnet:--enable-collab-backend-service} \
--disable-static \
PYTHON=%__python3
%make_build
%install
%makeinstall_std
install -p -m 0644 -D %SOURCE11 %buildroot%_datadir/mime-info/abiword.mime
install -p -m 0644 -D %SOURCE12 %buildroot%_datadir/mime-info/abiword.keys
install -p -m 0644 -D %SOURCE13 %buildroot%_datadir/mime/packages/abiword.xml
%files
%_bindir/%name
%_libdir/lib%name-%ver_major.so
%dir %_libdir/%name-%ver_major
%dir %_libdir/%name-%ver_major/plugins
%_libdir/%name-%ver_major/plugins/*.so
%exclude %_libdir/abiword-%ver_major/plugins/*.la
%{?_enable_collabnet:%_datadir/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service}
%{?_enable_collabnet:%_datadir/telepathy/clients/AbiCollab.client}
%doc README COPYRIGHT.TXT
%files data
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/*/*
%_datadir/%name-%ver_major/
%_datadir/mime-info/*
%_datadir/mime/packages/*
%_datadir/appdata/%name.appdata.xml
%_man1dir/*
%files devel
%_includedir/*
%_pkgconfigdir/*
%files gir
%_typelibdir/*.typelib
%files gir-devel
%_girdir/*.gir
%files -n python3-module-%name
%python3_sitelibdir/gi/overrides/*
%changelog
…
Полный changelog можно просмотреть здесь
%define abi_ver 3.0
%define ver_major 3.0
%define docs_ver %ver_major.1
%def_enable spell
%def_disable ots
%def_with goffice
%def_without champlain
%def_with libical
%def_without eds
%def_with python
%def_enable collabnet
Name: abiword
Version: %ver_major.5
Release: alt1.2
Summary: Lean and fast full-featured word processor
Group: Office
License: GPL-2.0
Url: http://www.abisource.com/
%if_disabled snapshot
Source: https://www.abisource.com/downloads/abiword/%version/source/%name-%version.tar.gz
#Source: https://github.com/AbiWord/abiword/archive/release-%version/%name-%version.tar.gz
%else
Vcs: https://github.com/AbiWord/abiword.git
Source: %name-%version.tar
%endif
Source11: abiword.mime
Source12: abiword.keys
Source13: abiword.xml
#Source20: abiword-3.0.4-ru-RU.po
#fedora patches
Patch11: abiword-2.8.3-desktop.patch
Patch12: abiword-2.6.0-boolean.patch
Patch13: abiword-3.0.0-librevenge.patch
Patch20: abiword-3.0.0-python-override.patch
Obsoletes: abisuite, abisuite-koi8, abisuite-cp1251, abisuite-iso8859-8
Obsoletes: %name-%abi_ver
Provides: %name-%abi_ver = %version-%release
Conflicts: %name-light
Requires: %name-data = %version-%release
Requires: %name-docs >= %docs_ver
BuildRequires: autoconf-archive gcc-c++ boost-devel /usr/bin/appstream-util libreadline-devel flex
BuildRequires: gobject-introspection-devel libgtk+3-gir-devel libgsf-gir-devel
BuildRequires: libgtk+3-devel librsvg-devel libfribidi-devel libredland-devel
BuildRequires: liblink-grammar-devel libgsf-devel bzlib-devel zlib-devel libjpeg-devel libpng-devel libxslt-devel
BuildRequires: libwv-devel libwpd10-devel libwpg-devel libwmf-devel libwps-devel libexpat-devel
BuildRequires: telepathy-glib-devel libdbus-glib-devel
#BuildRequires: libaiksaurus-devel
%{?_enable_spell:BuildRequires: libenchant-devel}
%{?_with_goffice:BuildRequires: libgnomeoffice0.10-devel}
%{?_with_champlain:BuildRequires: libchamplain-gtk3-devel}
%{?_with_libical:BuildRequires: libical-devel}
%{?_with_eds:BuildRequires: evolution-data-server-devel}
%{?_with_python:BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pygobject3 python3-module-setuptools}
%{?_enable_collabnet:BuildRequires: libgnutls-devel libsoup-devel libgcrypt-devel asio-devel}
%{?_enable_ots:BuildRequires: libots-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...
%package data
Summary: Arch independent files for AbiWord
Group: Office
BuildArch: noarch
Obsoletes: %name-%abi_ver-data
Provides: %name-%abi_ver-data = %version-%release
%description data
This package provides noarch data needed for AbiWord to work.
%package devel
Group: Development/C++
Summary: Headers for Abiword plugins
Requires: %name = %version-%release
Obsoletes: %name-%abi_ver-devel
Provides: %name-%abi_ver-devel = %version-%release
%description devel
Headers and pkgconfig support for Abiword plugin building.
Conflicts: %name-devel %name-light-devel
%package gir
Summary: GObject introspection data for the %name
Group: System/Libraries
Requires: %name = %version-%release
Obsoletes: %name-%abi_ver-gir
Provides: %name-%abi_ver-gir = %version-%release
%description gir
GObject introspection data for the %name
%package gir-devel
Summary: GObject introspection devel data for the %name
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release
Obsoletes: %name-%abi_ver-gir-devel
Provides: %name-%abi_ver-gir-devel = %version-%release
%description gir-devel
GObject introspection devel data for the AbiWord
%package -n python3-module-%name
Summary: Python 3 bindings for developing with AbiWord
Group: Development/Python3
Requires: %name-gir = %version-%release
Requires: typelib(Gtk) = 3.0
%description -n python3-module-%name
Python 3 bindings for developing with AbiWord library
%prep
%setup %{?_disable_snapshot:-n %name-%version}
#cp %SOURCE20 po/ru-RU.po
%patch11 -p1 -b .desktop
%patch12 -p1 -b .boolean
%patch13 -p0 -b .librevenge
%patch20 -p1 -b python
sed -i "s|python|\$(PYTHON)|" src/gi-overrides/Makefile.am
%build
%add_optflags -std=c++11 %(getconf LFS_CFLAGS)
%autoreconf
%configure \
--enable-print \
--enable-plugins \
--enable-templates \
--enable-clipart \
--enable-introspection \
%{subst_enable spell} \
%{subst_with goffice} \
%{subst_with champlain} \
%{subst_with libical} \
%{?_without_eds:--without-evolution-data-server} \
%{?_enable_collabnet:--enable-collab-backend-service} \
--disable-static \
PYTHON=%__python3
%make_build
%install
%makeinstall_std
install -p -m 0644 -D %SOURCE11 %buildroot%_datadir/mime-info/abiword.mime
install -p -m 0644 -D %SOURCE12 %buildroot%_datadir/mime-info/abiword.keys
install -p -m 0644 -D %SOURCE13 %buildroot%_datadir/mime/packages/abiword.xml
%files
%_bindir/%name
%_libdir/lib%name-%ver_major.so
%dir %_libdir/%name-%ver_major
%dir %_libdir/%name-%ver_major/plugins
%_libdir/%name-%ver_major/plugins/*.so
%exclude %_libdir/abiword-%ver_major/plugins/*.la
%{?_enable_collabnet:%_datadir/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service}
%{?_enable_collabnet:%_datadir/telepathy/clients/AbiCollab.client}
%doc README COPYRIGHT.TXT
%files data
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/*/*
%_datadir/%name-%ver_major/
%_datadir/mime-info/*
%_datadir/mime/packages/*
%_datadir/appdata/%name.appdata.xml
%_man1dir/*
%files devel
%_includedir/*
%_pkgconfigdir/*
%files gir
%_typelibdir/*.typelib
%files gir-devel
%_girdir/*.gir
%files -n python3-module-%name
%python3_sitelibdir/gi/overrides/*
%changelog
…
Полный changelog можно просмотреть здесь