|
@@ -1,66 +1,70 @@
|
|
|
-%define desktop_file_utils_version 0.16
|
|
|
-%define abiver 3.0
|
|
|
+%define desktop_file_utils_version 0.26
|
|
|
|
|
|
Summary: The AbiWord word processor
|
|
|
Summary(ja): AbiWord ワードプロセッサ
|
|
|
Name: abiword
|
|
|
-Version: 3.0.1
|
|
|
-Release: 3%{?_dist_release}
|
|
|
Epoch: 1
|
|
|
-Group: Applications/Productivity
|
|
|
+Version: 3.0.4
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+%global abiver %(echo %{version} | cut -d . -f 1-2)
|
|
|
+%global docver 3.0.1
|
|
|
+Group: office
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: GPLv2+
|
|
|
+URL: http://www.abisource.com/
|
|
|
Source0: http://abisource.com/downloads/abiword/%{version}/source/abiword-%{version}.tar.gz
|
|
|
-Source3: http://abisource.com/downloads/abiword/%{version}/source/abiword-docs-%{version}.tar.gz
|
|
|
+Source1: http://abisource.com/downloads/abiword/%{docver}/source/abiword-docs-%{docver}.tar.gz
|
|
|
Source11: abiword.mime
|
|
|
+Source12: abiword.keys
|
|
|
+Source13: abiword.xml
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+Patch0: abiword-2.6.0-windowshelppaths.patch
|
|
|
+Patch1: abiword-2.8.3-desktop.patch
|
|
|
+Patch2: abiword-2.6.0-boolean.patch
|
|
|
+Patch3: abiword-3.0.0-librevenge.patch
|
|
|
+Patch4: abiword-3.0.2-explicit-python.patch
|
|
|
+Patch5: abiword-3.0.4-pygobject.patch
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-#Packager:
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-# for abiword
|
|
|
-BuildRequires: flex
|
|
|
+BuildRequires: autoconf-archive
|
|
|
+BuildRequires: automake
|
|
|
BuildRequires: bison
|
|
|
+BuildRequires: bzip2-devel
|
|
|
+BuildRequires: cairo-devel
|
|
|
+BuildRequires: dbus-glib-devel
|
|
|
+BuildRequires: desktop-file-utils
|
|
|
+BuildRequires: enchant2-devel
|
|
|
+BuildRequires: flex
|
|
|
+BuildRequires: fribidi-devel
|
|
|
BuildRequires: gcc-c++
|
|
|
-BuildRequires: gtk2-devel
|
|
|
+BuildRequires: gobject-introspection-devel
|
|
|
+BuildRequires: goffice-devel
|
|
|
+BuildRequires: gtk3-devel
|
|
|
+BuildRequires: libboost-devel
|
|
|
+BuildRequires: libgsf-devel
|
|
|
BuildRequires: libpng-devel
|
|
|
-BuildRequires: libxml2-devel
|
|
|
-BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
|
|
|
-BuildRequires: fribidi-devel
|
|
|
-BuildRequires: enchant-devel
|
|
|
-BuildRequires: libgnomeprint-devel
|
|
|
-BuildRequires: libgnomeprintui-devel
|
|
|
-BuildRequires: wv-devel
|
|
|
-BuildRequires: gucharmap-devel
|
|
|
-BuildRequires: libSM-devel
|
|
|
-
|
|
|
-# some plugin build deps
|
|
|
-BuildRequires: readline-devel
|
|
|
-BuildRequires: bzip2-devel
|
|
|
-BuildRequires: poppler-devel >= 0.14.2
|
|
|
-BuildRequires: libwpd-devel >= 0.8.0
|
|
|
BuildRequires: librsvg2-devel
|
|
|
-BuildRequires: libgsf-devel >= 1.12.1
|
|
|
-BuildRequires: libboost-devel >= 1.33.1
|
|
|
-
|
|
|
-# gnome build deps
|
|
|
-BuildRequires: libbonobo-devel
|
|
|
-BuildRequires: libbonoboui-devel
|
|
|
-BuildRequires: libgnomeui-devel
|
|
|
-
|
|
|
+BuildRequires: libsoup-devel
|
|
|
+BuildRequires: libwmf-devel
|
|
|
+BuildRequires: libxslt-devel
|
|
|
+BuildRequires: poppler-devel
|
|
|
+BuildRequires: popt-devel
|
|
|
+BuildRequires: python3-pygobject
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python3-setuptools
|
|
|
+BuildRequires: readline-devel
|
|
|
+BuildRequires: t1lib-devel
|
|
|
+BuildRequires: wv-devel
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
|
|
+Requires: libabiword = %{epoch}:%{version}-%{release}
|
|
|
+Requires: python3-pygobject
|
|
|
Requires(pre): desktop-file-utils >= %{desktop_file_utils_version}
|
|
|
Obsoletes: abiword-fonts abiword-plugins
|
|
|
|
|
|
-URL: http://www.abisource.com/
|
|
|
-
|
|
|
-Patch0: abiword-2.6.0-windowshelppaths.patch
|
|
|
-Patch1: abiword-2.6.4-desktop.patch
|
|
|
-Patch2: abiword-2.6.0-boolean.patch
|
|
|
-Patch3: abiword-2.8.6-no-undefined.patch
|
|
|
-
|
|
|
-
|
|
|
%description
|
|
|
AbiWord is a cross-platform Open Source word processor. The goal is to make
|
|
|
AbiWord full-featured, and remain lean.
|
|
@@ -69,10 +73,11 @@ AbiWord full-featured, and remain lean.
|
|
|
AbiWord はクロスプラットフォームのオープンソースなワードプロセッサーです。
|
|
|
多機能で機敏に動くことを目標としています。
|
|
|
|
|
|
+
|
|
|
%package -n libabiword
|
|
|
Summary: Library for developing applications based on AbiWord's core
|
|
|
Summary(ja): AbiWord コアで稼動するアプリケーションを開発するためのライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
|
|
|
%description -n libabiword
|
|
|
Library for developing applications based on AbiWord's core.
|
|
@@ -80,10 +85,11 @@ Library for developing applications based on AbiWord's core.
|
|
|
%description -n libabiword -l ja
|
|
|
AbiWord コアで稼動するアプリケーションを開発するためのライブラリです。
|
|
|
|
|
|
+
|
|
|
%package -n libabiword-devel
|
|
|
Summary: Files for developing with libabiword
|
|
|
Summary(ja): libabiword を用いた開発に必要なファイル群
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: libabiword = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
%description -n libabiword-devel
|
|
@@ -92,130 +98,101 @@ Includes and definitions for developing with libabiword.
|
|
|
%description -n libabiword-devel -l ja
|
|
|
libabiword で開発するためのインクルードファイル及び定義ファイルです。
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
-## %patch1 -p1 -b .desktop
|
|
|
-%patch2 -p1 -b .boolean
|
|
|
+%setup -q -a 1
|
|
|
|
|
|
-# setup abiword extras
|
|
|
-## %setup -q -T -b 2 -n abiword-extras-%{version}
|
|
|
+%patch1 -p1 -b .desktop
|
|
|
+%patch2 -p1 -b .boolean
|
|
|
+%patch3 -p0 -b .librevenge
|
|
|
+%patch4 -p1 -b .explicit_python
|
|
|
+%patch5 -p1 -b .pygo
|
|
|
|
|
|
# setup abiword documentation
|
|
|
-%setup -q -T -b 3 -n abiword-docs-%{version}
|
|
|
+pushd abiword-docs-%{docver}
|
|
|
%patch0 -p1 -b .windowshelppaths
|
|
|
+# some of the help dirs have bad perms (#109261)
|
|
|
+find . -type d -exec chmod -c o+rx {} \;
|
|
|
+popd
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-# build libabiword and abiword
|
|
|
-cd $RPM_BUILD_DIR/abiword-%{version}
|
|
|
-%configure -enable-static=no
|
|
|
-make %{?_smp_mflags}
|
|
|
-
|
|
|
-# build abiword-plugins
|
|
|
-## cd $RPM_BUILD_DIR/abiword-plugins-%{version}
|
|
|
-## export PKG_CONFIG_PATH="$RPM_BUILD_DIR/%{name}-%{version}"
|
|
|
-## CXXFLAGS="-L$RPM_BUILD_DIR/%{name}-%{version}/src/wp/main/unix/" %configure --disable-gda --enable-libabiword --with-abiword=$RPM_BUILD_DIR/%{name}-%{version}
|
|
|
-## # Remove libtool predep_objects and postdep_objects wonkiness so that
|
|
|
-## # building without -nostdlib doesn't include them twice. Because we
|
|
|
-## # already link with g++, weird stuff happens if you don't let the
|
|
|
-## # compiler handle this.
|
|
|
-## sed 's/^predep_objects=.*/predep_objects=\"\"/' < libtool > libtool.foo
|
|
|
-## sed 's/^postdep_objects=.*/postdep_objects=\"\"/' < libtool.foo > libtool.foobar
|
|
|
-## sed 's/-shared -nostdlib/-shared/' < libtool.foobar > libtool
|
|
|
-## make %{?_smp_mflags}
|
|
|
-
|
|
|
-# build abiword-extras
|
|
|
-## cd $RPM_BUILD_DIR/abiword-extras-%{version}
|
|
|
-## # abiword-extras looks at the abiword-%{version}.pc pkg-config file to get its location info
|
|
|
-## # however, that file is not installed yet, so just point to it in the abiword source tree
|
|
|
-## export PKG_CONFIG_PATH="$RPM_BUILD_DIR/%{name}-%{version}"
|
|
|
-## %configure
|
|
|
-## make
|
|
|
+# Needed while explicit-python.patch touches gi-overrides/Makefile.am
|
|
|
+aclocal
|
|
|
+automake
|
|
|
+
|
|
|
+export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS -DASIO_ENABLE_BOOST"
|
|
|
+%configure --enable-plugins --enable-clipart --enable-templates --enable-introspection
|
|
|
+%{make_build} V=1
|
|
|
|
|
|
# build the documentation
|
|
|
-cd $RPM_BUILD_DIR/abiword-docs-%{version}
|
|
|
-ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/wp/main/unix/abiword ./make-html.sh
|
|
|
+pushd abiword-docs-%{docver}
|
|
|
+ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/abiword ./make-html.sh
|
|
|
+popd
|
|
|
+
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
-# install abiword
|
|
|
-cd $RPM_BUILD_DIR/abiword-%{version}
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-# overwrite the static binary with the dynamic one
|
|
|
-## mv -f $RPM_BUILD_DIR/abiword-%{version}/src/wp/main/unix/abiword-dynamic $RPM_BUILD_ROOT%{_bindir}/abiword
|
|
|
-
|
|
|
-# Fix script permission
|
|
|
-#chmod +x $RPM_BUILD_ROOT%{_datadir}/%{name}-%{abiver}/scripts/abw2html.pl
|
|
|
-
|
|
|
-# install abiword-plugins
|
|
|
-## cd $RPM_BUILD_DIR/abiword-plugins-%{version}
|
|
|
-## make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-
|
|
|
-# install the extras
|
|
|
-## cd $RPM_BUILD_DIR/abiword-extras-%{version}
|
|
|
-## make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+%{make_install}
|
|
|
|
|
|
# install the documentation
|
|
|
-cd $RPM_BUILD_DIR/abiword-docs-%{version}
|
|
|
+pushd abiword-docs-%{docver}
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{abiver}/AbiWord/help
|
|
|
cp -rp help/* $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{abiver}/AbiWord/help/
|
|
|
-# some of the help dirs have bad perms (#109261)
|
|
|
-find $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{abiver}/AbiWord/help/ -type d -exec chmod -c o+rx {} \;
|
|
|
-
|
|
|
-# finish up
|
|
|
-## mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
|
|
|
-## cp $RPM_BUILD_DIR/abiword-extras-%{version}/icons/abiword_48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/abiword_48.png
|
|
|
-
|
|
|
-cd $RPM_BUILD_DIR/abiword-%{version}
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
-desktop-file-install \
|
|
|
- --dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
- --add-category X-Red-Hat-Extra --remove-category X-Red-Hat-Base \
|
|
|
- --add-category Applications --add-category Office \
|
|
|
- ./abiword.desktop
|
|
|
-# remove the original one (which has X-Red-Hat-Base) (#107023)
|
|
|
-#rm -f $RPM_BUILD_ROOT/%{_datadir}/applications/abiword.desktop
|
|
|
-
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime-info
|
|
|
-install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/mime-info
|
|
|
-
|
|
|
-# nuke .la files
|
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}-%{abiver}/plugins/*.la
|
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
-# nuke .a files
|
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
-# nuke custom dictionary files
|
|
|
-rm -f $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{abiver}/dictionary/ispell_dictionary_list.xml
|
|
|
+popd
|
|
|
+
|
|
|
+install -p -m 0644 -D %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/mime-info/abiword.mime
|
|
|
+install -p -m 0644 -D %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/mime-info/abiword.keys
|
|
|
+install -p -m 0644 -D %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/mime/packages/abiword.xml
|
|
|
+
|
|
|
+# Remove libtool archives and static libs
|
|
|
+find %{buildroot} -name '*.la' -delete
|
|
|
+find %{buildroot} -name '*.a' -delete
|
|
|
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post
|
|
|
-update-desktop-database -q %{_datadir}/applications
|
|
|
|
|
|
-%postun
|
|
|
-update-desktop-database -q %{_datadir}/applications
|
|
|
+%ldconfig_scriptlets -n libabiword
|
|
|
+
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%{_bindir}/abiword
|
|
|
+%{_datadir}/appdata/*.appdata.xml
|
|
|
%{_datadir}/applications/*
|
|
|
%{_datadir}/mime-info/*
|
|
|
+%{_datadir}/mime/packages/abiword.xml
|
|
|
%{_datadir}/icons/*/*/*/abiword.*
|
|
|
+%{_datadir}/%{name}-%{abiver}/AbiWord
|
|
|
%{_mandir}/man1/abiword.1.gz
|
|
|
|
|
|
%files -n libabiword
|
|
|
%doc $RPM_BUILD_DIR/%{name}-%{version}/docs $RPM_BUILD_DIR/%{name}-%{version}/COPYING $RPM_BUILD_DIR/%{name}-%{version}/COPYRIGHT.TXT $RPM_BUILD_DIR/%{name}-%{version}/README.TXT
|
|
|
%{_libdir}/abiword-%{abiver}
|
|
|
%{_libdir}/libabiword-%{abiver}.so
|
|
|
+%{_libdir}/girepository-1.0/Abi-3.0.typelib
|
|
|
%{_datadir}/abiword-%{abiver}
|
|
|
|
|
|
%files -n libabiword-devel
|
|
|
%{_includedir}/abiword-%{abiver}
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
+%{_datadir}/gir-1.0/Abi-3.0.gir
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Mar 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1:3.0.4-1
|
|
|
+- new upstream release.
|
|
|
+- updated Source11.
|
|
|
+- added Source12-13.
|
|
|
+- updated Patch0-2.
|
|
|
+- dropped Patch3.
|
|
|
+- imported Patch3-5 from rawhide.
|
|
|
+
|
|
|
* Sat Jul 02 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1:3.0.1-3
|
|
|
- rebuild with gcc-5.4.0
|
|
|
|