04fe124
%define majorversion 3
04fe124
%define minorversion 0
f154758
%define microversion 1
04fe124
%define svnver 0
9d8130a
a3f9555
Summary: Word processing program
4a03381
Name: abiword
a61c94b
Version: %{majorversion}.%{minorversion}.%{microversion}
Petr Machata 2eb4cbf
Release: 2%{?dist}
4a03381
Epoch: 1
4a03381
Group: Applications/Editors
25c487b
License: GPLv2+
04fe124
URL: http://www.abisource.com/
04fe124
9d8130a
Source0: http://abisource.com/downloads/abiword/%{version}/source/abiword-%{version}.tar.gz
89cda70
Source1: http://abisource.com/downloads/abiword/%{version}/source/abiword-docs-%{version}.tar.gz
4a03381
Source11: abiword.mime
e927801
Source12: abiword.keys
e927801
Source13: abiword.xml
04fe124
Patch0: abiword-2.6.0-windowshelppaths.patch
04fe124
Patch1: abiword-2.8.3-desktop.patch
04fe124
Patch2: abiword-2.6.0-boolean.patch
f154758
Patch3: abiword-3.0.0-librevenge.patch
f154758
Patch4: abiword-3.0.0-link-grammar-5.patch
f154758
Patch5: abiword-3.0.0-link-grammar-5-second.patch
04fe124
b80ffb4
BuildRequires: autoconf
b80ffb4
BuildRequires: automake
04fe124
BuildRequires: aiksaurus-devel
04fe124
BuildRequires: aiksaurus-gtk-devel
04fe124
BuildRequires: asio-devel
04fe124
BuildRequires: bison
04fe124
BuildRequires: boost-devel
04fe124
BuildRequires: bzip2-devel
04fe124
BuildRequires: cairo-devel
04fe124
BuildRequires: dbus-glib-devel
04fe124
BuildRequires: desktop-file-utils
04fe124
BuildRequires: enchant-devel
04fe124
BuildRequires: flex
04fe124
BuildRequires: fribidi-devel
6d6db2d
BuildRequires: gobject-introspection-devel
2b401d0
BuildRequires: goffice-devel
04fe124
BuildRequires: gtk3-devel
04fe124
BuildRequires: gtkmathview-devel
04fe124
BuildRequires: libgsf-devel
04fe124
BuildRequires: libpng-devel
c241d3f
BuildRequires: librevenge-devel
04fe124
BuildRequires: librsvg2-devel
04fe124
BuildRequires: libsoup-devel
04fe124
BuildRequires: libwmf-devel
04fe124
BuildRequires: libwpd-devel
04fe124
BuildRequires: libwpg-devel
04fe124
BuildRequires: libxslt-devel
04fe124
BuildRequires: link-grammar-devel
04fe124
BuildRequires: loudmouth-devel
04fe124
BuildRequires: ots-devel
04fe124
BuildRequires: poppler-devel
04fe124
BuildRequires: popt-devel
2b401d0
BuildRequires: pygobject3
6d6db2d
BuildRequires: python2-devel
2b401d0
BuildRequires: python-setuptools
04fe124
BuildRequires: readline-devel
04fe124
BuildRequires: t1lib-devel
04fe124
BuildRequires: telepathy-glib-devel
04fe124
BuildRequires: wv-devel
04fe124
BuildRequires: zlib-devel
04fe124
c704fb5
Requires: libabiword = %{epoch}:%{version}-%{release}
a61c94b
a61c94b
%description
a61c94b
AbiWord is a cross-platform Open Source word processor. It is full-featured,
a61c94b
while still remaining lean.
a61c94b
04fe124
a61c94b
%package -n libabiword
a61c94b
Summary: Library for developing applications based on AbiWord's core
a61c94b
Group: System Environment/Libraries
4a03381
dc0cbd1
%description -n libabiword
a61c94b
Library for developing applications based on AbiWord's core.
4a03381
04fe124
a61c94b
%package -n libabiword-devel
a61c94b
Summary: Files for developing with libabiword
a61c94b
Group: Development/Libraries
4393742
Requires: libabiword = %{epoch}:%{version}-%{release}
4a03381
a61c94b
%description -n libabiword-devel
a61c94b
Includes and definitions for developing with libabiword.
9d8130a
6d6db2d
6d6db2d
%package -n python-abiword
6d6db2d
Summary: Python bindings for developing with libabiword
6d6db2d
Group: Development/Libraries
6d6db2d
Requires: libabiword = %{epoch}:%{version}-%{release}
6d6db2d
Obsoletes: pyabiword <= 0.8.0
6d6db2d
Provides: pyabiword > 0.8.0
6d6db2d
6d6db2d
%description -n python-abiword
6d6db2d
Python bindings for developing with libabiword
6d6db2d
6d6db2d
4a03381
%prep
9d8130a
# setup abiword
9d8130a
%setup -q
89cda70
89cda70
# patch abiword
73b1a7b
%patch1 -p1 -b .desktop
9d8130a
%patch2 -p1 -b .boolean
f154758
%patch3 -p0 -b .librevenge
f154758
%patch4 -p1 -b .link-grammar-5
f154758
%patch5 -p1 -b .link-grammar-5-second
9d8130a
9d8130a
# setup abiword documentation
89cda70
%setup -q -T -b 1 -n abiword-docs-%{version}
9d8130a
%patch0 -p1 -b .windowshelppaths
9d8130a
4a03381
%build
b80ffb4
aclocal
b80ffb4
autoconf
b80ffb4
a61c94b
# build libabiword and abiword
9d8130a
cd $RPM_BUILD_DIR/abiword-%{version}
6d6db2d
%configure --enable-plugins --enable-clipart --enable-templates --enable-introspection
6d6db2d
# Build non SMP due to issues with gobject-introspection builds
6d6db2d
# make %{?_smp_mflags} V=1
6d6db2d
make V=1
9d8130a
9d8130a
# build the documentation
9d8130a
cd $RPM_BUILD_DIR/abiword-docs-%{version}
89cda70
ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/abiword ./make-html.sh
4a03381
4a03381
%install
9d8130a
cd $RPM_BUILD_DIR/abiword-%{version}
04fe124
make install DESTDIR=%{buildroot}
9d8130a
9d8130a
# install the documentation
9d8130a
cd $RPM_BUILD_DIR/abiword-docs-%{version}
9d8130a
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help
9d8130a
cp -rp help/* $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help/
4a03381
# some of the help dirs have bad perms (#109261)
9d8130a
find $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help/ -type d -exec chmod -c o+rx {} \;
4a03381
04fe124
install -p -m 0644 -D %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/mime-info/abiword.mime
04fe124
install -p -m 0644 -D %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/mime-info/abiword.keys
04fe124
install -p -m 0644 -D %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/mime/packages/abiword.xml
4a03381
04fe124
# Remove libtool archives and static libs
f154758
find %{buildroot} -name '*.la' -delete
f154758
find %{buildroot} -name '*.a' -delete
4a03381
4a03381
%post
Rex Dieter ba7be8d
/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
Rex Dieter ba7be8d
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
Rex Dieter ba7be8d
/usr/bin/update-desktop-database &> /dev/null || :
4a03381
4a03381
%postun
Rex Dieter ba7be8d
/usr/bin/update-desktop-database &> /dev/null || :
cf7e1f3
if [ $1 -eq 0 ] ; then
Rex Dieter ba7be8d
    /bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
Rex Dieter ba7be8d
    /bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
Rex Dieter ba7be8d
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
Rex Dieter ba7be8d
    /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
cf7e1f3
fi
cf7e1f3
cf7e1f3
%posttrans
Rex Dieter ba7be8d
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
Rex Dieter ba7be8d
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
cf7e1f3
4a03381
%files
4a03381
%{_bindir}/abiword
883c14b
%{_datadir}/applications/*.desktop
e927801
%{_datadir}/mime-info/abiword.mime
e927801
%{_datadir}/mime-info/abiword.keys
e927801
%{_datadir}/mime/packages/abiword.xml
f154758
%{_datadir}/icons/hicolor/*/apps/abiword.png
f154758
%{_datadir}/icons/hicolor/scalable/apps/abiword.svg
6fe85e5
# Abiword help
6fe85e5
%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord
eeb9351
%{_mandir}/man1/abiword.1.gz
a61c94b
a61c94b
%files -n libabiword
89cda70
%doc $RPM_BUILD_DIR/%{name}-%{version}/COPYING $RPM_BUILD_DIR/%{name}-%{version}/COPYRIGHT.TXT
a61c94b
%{_libdir}/libabiword-%{majorversion}.%{minorversion}.so
f154758
%{_libdir}/libAiksaurusGtk3*
a61c94b
%{_libdir}/%{name}-%{majorversion}.%{minorversion}
6d6db2d
%{_libdir}/girepository-1.0/Abi-3.0.typelib
a61c94b
%{_datadir}/%{name}-%{majorversion}.%{minorversion}
04fe124
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service
04fe124
%{_datadir}/telepathy/clients/AbiCollab.client
6fe85e5
# Abiword help - included in GUI app
6fe85e5
%exclude %{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord
a61c94b
a61c94b
%files -n libabiword-devel
a61c94b
%{_includedir}/%{name}-%{majorversion}.%{minorversion}
a61c94b
%{_libdir}/pkgconfig/%{name}-%{majorversion}.%{minorversion}.pc
6d6db2d
%{_datadir}/gir-1.0/Abi-3.0.gir
6d6db2d
6d6db2d
%files -n python-abiword
6d6db2d
%{python_sitearch}/*
9d8130a
4a03381
%changelog
Petr Machata 2eb4cbf
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1:3.0.1-2
Petr Machata 2eb4cbf
- Rebuild for boost 1.57.0
Petr Machata 2eb4cbf
f154758
* Wed Dec 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.1-1
f154758
- Update to 3.0.1 stable
f154758
6559a1e
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.0-14
6559a1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6559a1e
f7b8712
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 1:3.0.0-13
f7b8712
- Rebuilt for gobject-introspection 1.41.4
f7b8712
Rex Dieter ba7be8d
* Tue Jul 08 2014 Rex Dieter <rdieter@fedoraproject.org> 1:3.0.0-12
Rex Dieter ba7be8d
- update scriptlets (mimeinfo mostly)
Rex Dieter ba7be8d
5dfd4cb
* Mon Jun 30 2014 Jon Ciesla <limburgher@gmail.com> - 1:3.0.0-11
bafae00
- Corrected and second patches from Linas Vepstas.
5dfd4cb
c241d3f
* Tue Jun 24 2014 Jon Ciesla <limburgher@gmail.com> - 1:3.0.0-10
cf47a09
- Rebuild for new link-grammar, with patch for API change.
c241d3f
- Add librevenge BuildRequires, modified patch for current librevenge header placement.
c241d3f
df1d006
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.0-9
df1d006
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
df1d006
b80ffb4
* Tue May 27 2014 David Tardon <dtardon@redhat.com> - 1:3.0.0-8
b80ffb4
- switch to librevenge-based import libs
b80ffb4
Petr Machata af7619d
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1:3.0.0-7
Petr Machata af7619d
- Rebuild for boost 1.55.0
Petr Machata af7619d
241638a
* Tue Apr 22 2014 Tomáš Mráz <tmraz@redhat.com> - 1:3.0.0-6
241638a
- Rebuild for new libgcrypt
241638a
cf8678f
* Sat Feb 22 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-5
cf8678f
- Add patch to fix redraw issues of ruler
cf8678f
491567a
* Mon Nov  4 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-4
491567a
- Add patch to fix libabiword_init annotation
491567a
cf7e1f3
* Fri Oct 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-3
cf7e1f3
- Update icon cache on install/update/erase
cf7e1f3
2b401d0
* Wed Oct 16 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-2
6d6db2d
- Enable gobject-introspection and python bindings
6d6db2d
6d6db2d
* Mon Oct 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.0-1
04fe124
- Update to 3.0.0 stable
04fe124
f39d1cf
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.8.6-24
f39d1cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f39d1cf
Petr Machata 1e1a095
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1:2.8.6-23
Petr Machata 1e1a095
- Rebuild for boost 1.54.0
Petr Machata 1e1a095
883c14b
* Sun Feb 17 2013 Christoph Wickert <cwickert@fedoraproject.org> - 1:2.8.6-22
883c14b
- Make desktop file --vendor conditional
883c14b
- Remove obsolete category 'Applications" from desktop file
883c14b
a3f9555
* Sat Feb 09 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1:2.8.6-21
a3f9555
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
a3f9555
- clean up spec to follow current guidelines
a3f9555
- remove obsolete and unapplied boolean patch
a3f9555
019db7b
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1:2.8.6-20
019db7b
- rebuild due to "jpeg8-ABI" feature drop
019db7b
057f199
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1:2.8.6-19
057f199
- rebuild against new libjpeg
057f199
cbae8f8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.8.6-18
cbae8f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cbae8f8
4b422ea
* Mon Feb 27 2012 Tom Callaway <spot@fedoraproject.org> - 1:2.8.6-17
4b422ea
- fix build against modern glib, libpng
4b422ea
72542b2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.8.6-16
72542b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
72542b2
cbb317b
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1:2.8.6-15
cbb317b
- Rebuild for new libpng
cbb317b
09499a6
* Tue Aug  9 2011 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.6-14
09499a6
- rebuild with link-grammar now its back
09499a6
09499a6
* Tue Aug  2 2011 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.6-13
d197fb2
- rebuild for new asio
d197fb2
- drop obsolete OLPC and ARM includes
d197fb2
J.M. Maurer c92d41d
* Tue Aug 02 2011 Marc Maurer <uwog@abisource.com> - 1:2.8.6-12
J.M. Maurer c92d41d
- Fix a typo in the previous patch
J.M. Maurer c92d41d
J.M. Maurer 9ff04a6
* Tue Aug 02 2011 Marc Maurer <uwog@abisource.com> - 1:2.8.6-11
J.M. Maurer 9ff04a6
- Fix BZ 716005: --no-undefined is a linker flag, not a g++ flag
J.M. Maurer 9ff04a6
J.M. Maurer 2bcbae1
* Tue Aug 02 2011 Marc Maurer <uwog@abisource.com> - 1:2.8.6-10
J.M. Maurer 2bcbae1
- Mixed up the microversion and the release
J.M. Maurer 2bcbae1
uwog 6bebbf8
* Tue Aug 02 2011 Marc Maurer <uwog@abisource.com> - 1:2.8.6-9
uwog 6bebbf8
- Remove link-grammar from the BR and R until it is revived
uwog 6bebbf8
Chris Tyler e041fbc
* Thu May 05 2011 Chris Tyler <chris@tylers.info> - 1:2.8.6-8
Chris Tyler e041fbc
- Excluded asio-devel from ARM builds
Chris Tyler e041fbc
ddf4d7a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.8.6-7
ddf4d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ddf4d7a
e135ebd
* Thu Dec 30 2010 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.6-6
e135ebd
- Rebuild for library soname bumps
e135ebd
5efc495
* Wed Dec  8 2010 Caolán McNamara <caolanm@redhat.com> - 1:2.8.6-5
5efc495
- Rebuild for libwpd 0.9
5efc495
027ebc4
* Wed Dec  8 2010 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.6-4
027ebc4
- Rebuild for library soname bumps
027ebc4
Jesse Keating 1a555ca
* Wed Sep 29 2010 jkeating - 1:2.8.6-3
Jesse Keating 1a555ca
- Rebuilt for gcc bug 634757
Jesse Keating 1a555ca
6fe85e5
* Wed Sep 22 2010 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.6-2
6fe85e5
- Move abiword gui help from the library to the app. Fixes 578596
6fe85e5
J.M. Maurer 6114cf0
* Sat Aug 14 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.6-1
J.M. Maurer 6114cf0
- New upstream release
J.M. Maurer 6114cf0
e840716
* Sat Jun 05 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.5-1
J.M. Maurer 6114cf0
- New upstream release
e840716
87c5b3c
* Fri Apr 16 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.4-1
J.M. Maurer 6114cf0
- New upstream release
87c5b3c
5f6d095
* Thu Apr 08 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.3-2
5f6d095
- Update .desktop patch
5f6d095
724b479
* Thu Apr 08 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.3-1
724b479
- New upstream release
724b479
eeb9351
* Tue Mar 02 2010 Marc Maurer <uwog@abisource.com> - 1:2.8.2-1
eeb9351
- New upstream release
eeb9351
- Package the man page
eeb9351
0c2c45c
* Wed Dec 23 2009 Rahul Sundaram <sundaram@fedoraproject.org> -1:2.8.1-4
0c2c45c
- Rebuild again since the wv soname bump was accidental
0c2c45c
- Remove superflous BuildRoot definitions and removals
0c2c45c
4e300f0
* Mon Dec 21 2009 Peter Robinson <pbrobinson@gmail.com> - 1:2.8.1-3
4e300f0
- Rebuild against new libwv
4e300f0
021e5f0
* Sun Nov 01 2009 Marc Maurer <uwog@abisource.com> - 1:2.8.1-2
021e5f0
- Rebuild
021e5f0
967c393
* Sun Nov 01 2009 Marc Maurer <uwog@abisource.com> - 1:2.8.1-1
967c393
- New upstream release