abiword/abiword.spec

356 lines
12 KiB
RPMSpec
Raw Normal View History

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