6852fb7
Name:             gnumeric
6852fb7
Epoch:            1
7167888
Version:          1.12.44
c3c9234
Release:          4%{?dist}
c41feac
Summary:          Spreadsheet program for GNOME
45af3d8
#LGPLv2+:
45af3d8
#plugins/gda/plugin-gda.c
45af3d8
#plugins/fn-financial/sc-fin.c
45af3d8
#plugins/plan-perfect/charset.c
45af3d8
#src/widgets/gnumeric-lazy-list.h
45af3d8
#GPLv3+:
45af3d8
#src/parser.c
45af3d8
License:          GPLv2+ and GPLv3+ and LGPLv2+
87bea09
URL:              http://projects.gnome.org/gnumeric/
14243ea
Source:           ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.12/%{name}-%{version}.tar.xz
528a747
Patch0:           gnumeric-1.12.44-configure-use-python2.patch
3e0ae53
BuildRequires:    bison
87bea09
BuildRequires:    desktop-file-utils
47e01c1
BuildRequires:    docbook-dtds
638985d
BuildRequires:    goffice-devel >= 0.10.28
87bea09
BuildRequires:    intltool
15ad308
BuildRequires:    itstool
627fa9c
BuildRequires:    libgda-ui-devel
11a8878
BuildRequires:    perl-devel
11a8878
BuildRequires:    perl-generators
87bea09
BuildRequires:    perl(ExtUtils::Embed)
e8a86e1
BuildRequires:    perl(Getopt::Long)
5c3d65a
BuildRequires:    perl(IO::Compress::Gzip)
627fa9c
BuildRequires:    psiconv-devel
520a946
BuildRequires:    pygobject3-devel
a257c96
BuildRequires:    python2-devel
87bea09
BuildRequires:    zlib-devel
Richard Hughes 6d3db3c
BuildRequires:    libappstream-glib
87bea09
Requires:         hicolor-icon-theme
Caolan McNamara d516396
Caolan McNamara d516396
%description
Caolan McNamara d516396
Gnumeric is a spreadsheet program for the GNOME GUI desktop
Caolan McNamara d516396
environment.
Caolan McNamara d516396
6852fb7
Caolan McNamara d516396
%package devel
87bea09
Summary:          Files necessary to develop gnumeric-based applications
87bea09
Requires:         %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Caolan McNamara d516396
Caolan McNamara d516396
%description devel
Caolan McNamara d516396
Gnumeric is a spreadsheet program for the GNOME GUI desktop
Caolan McNamara d516396
environment. The gnumeric-devel package includes files necessary to
Caolan McNamara d516396
develop gnumeric-based applications.
Caolan McNamara d516396
6852fb7
1e5e77d
%package plugins-extras
73f7493
Summary:          Additional plugins for Gnumeric incl. Perl and Python 2 support
87bea09
Requires:         %{name}%{?_isa} = %{epoch}:%{version}-%{release}
4163911
Requires:         perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
73f7493
Requires:         python(abi) = %{python2_version}
1e5e77d
1e5e77d
%description plugins-extras
1e5e77d
This package contains the following additional plugins for gnumeric:
1e5e77d
* gda and gnomedb plugins:
1e5e77d
  Database functions for retrieval of data from a database.
1e5e77d
* perl plugin:
73f7493
  This plugin allows writing of plugins in Perl.
73f7493
* python-loader plugin:
73f7493
  This plugin allows writing of plugins in Python 2.
73f7493
* py-func plugin:
73f7493
  Sample Python 2 plugin providing some (useless) functions.
73f7493
* gnome-glossary:
73f7493
  Support for saving GNOME Glossary in .po files.
1e5e77d
1e5e77d
Caolan McNamara d516396
%prep
ce59e94
%autosetup -p1
1e5e77d
chmod -x plugins/excel/rc4.?
Caolan McNamara d516396
6852fb7
Caolan McNamara d516396
%build
d967bd7
%configure --disable-silent-rules PYTHON=/usr/bin/python2
7645631
# Don't use rpath!
7645631
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
7645631
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
b7f93a9
make %{?_smp_mflags}
Caolan McNamara d516396
6852fb7
Caolan McNamara d516396
%install
f17620f
%make_install
Caolan McNamara d516396
Richard Hughes 6d3db3c
# Update the screenshot shown in the software center
Richard Hughes 6d3db3c
#
Richard Hughes 6d3db3c
# NOTE: It would be *awesome* if this file was pushed upstream.
Richard Hughes 6d3db3c
#
Richard Hughes 6d3db3c
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
Richard Hughes 6d3db3c
#
Richard Hughes 6d3db3c
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/gnumeric.appdata.xml \
Richard Hughes 6d3db3c
  "https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnumeric/Screenshot from 2013-10-10 14:19:50.png"
Richard Hughes 6d3db3c
87bea09
%find_lang %{name} --all-name --with-gnome
Caolan McNamara d516396
c41feac
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
6b5f149
desktop-file-install --delete-original                                  \
6b5f149
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
6b5f149
  --vendor fedora                                                       \
6b5f149
%endif
Caolan McNamara d516396
  --dir $RPM_BUILD_ROOT%{_datadir}/applications                         \
Caolan McNamara d516396
  --add-category Office                                                 \
Caolan McNamara d516396
  --add-category Spreadsheet                                            \
6b5f149
  --remove-category Education                                           \
e9a7d2b
  --remove-category Science                                             \
Caolan McNamara d516396
  $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
Caolan McNamara d516396
e0a4580
#remove unused mime type icons
c2952c8
rm $RPM_BUILD_ROOT/%{_datadir}/pixmaps/gnome-application-*.png
c2952c8
rm $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}/gnome-application-*.png
e0a4580
Caolan McNamara d516396
#remove spurious .ico thing
c2952c8
rm $RPM_BUILD_ROOT/usr/share/pixmaps/win32-%{name}.ico
c2952c8
rm $RPM_BUILD_ROOT/usr/share/pixmaps/%{name}/win32-%{name}.ico
Caolan McNamara d516396
e0a4580
#remove .la files
c3afaee
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
e0a4580
73f7493
# Bytecompile Python 2 plugins
73f7493
%py_byte_compile %{__python2} $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/plugins
6852fb7
bb7fc0d
%ldconfig_scriptlets
9aeb7cb
9aeb7cb
Caolan McNamara d516396
%files -f %{name}.lang
f17620f
%doc HACKING AUTHORS ChangeLog NEWS BUGS README
f17620f
%license COPYING
Caolan McNamara d516396
%{_bindir}/*
0d85f87
%{_libdir}/libspreadsheet-%{version}.so
c41feac
%dir %{_libdir}/%{name}
c41feac
%{_libdir}/%{name}/%{version}
1e5e77d
%exclude %{_libdir}/%{name}/%{version}/plugins/perl-*
627fa9c
%exclude %{_libdir}/%{name}/%{version}/plugins/gdaif
627fa9c
%exclude %{_libdir}/%{name}/%{version}/plugins/psiconv
73f7493
%exclude %{_libdir}/%{name}/%{version}/plugins/gnome-glossary
73f7493
%exclude %{_libdir}/%{name}/%{version}/plugins/py-*
73f7493
%exclude %{_libdir}/%{name}/%{version}/plugins/python-*
16f52cf
%{_datadir}/glib-2.0/schemas/org.gnome.gnumeric.*
c41feac
%{_datadir}/pixmaps/%{name}
e9a7d2b
%{_datadir}/icons/hicolor/*/apps/%{name}.png
c41feac
%dir %{_datadir}/%{name}
c41feac
%{_datadir}/%{name}/%{version}
6b5f149
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
c41feac
%{_datadir}/applications/fedora-%{name}.desktop
6b5f149
%else
6b5f149
%{_datadir}/applications/%{name}.desktop
d22a2b2
%endif
72f9400
%{_datadir}/appdata/%{name}.appdata.xml
Caolan McNamara d516396
%{_mandir}/man1/*
Caolan McNamara d516396
Caolan McNamara d516396
%files devel
0d85f87
%{_libdir}/libspreadsheet.so
87bea09
%{_libdir}/pkgconfig/libspreadsheet-1.12.pc
87bea09
%{_includedir}/libspreadsheet-1.12
1e5e77d
1e5e77d
%files plugins-extras
1e5e77d
%{_libdir}/%{name}/%{version}/plugins/perl-*
627fa9c
%{_libdir}/%{name}/%{version}/plugins/gdaif
627fa9c
%{_libdir}/%{name}/%{version}/plugins/psiconv
73f7493
%{_libdir}/%{name}/%{version}/plugins/gnome-glossary
73f7493
%{_libdir}/%{name}/%{version}/plugins/py-*
73f7493
%{_libdir}/%{name}/%{version}/plugins/python-*
2044302
%{_libdir}/goffice/*/plugins/gnumeric/gnumeric.so
2044302
%{_libdir}/goffice/*/plugins/gnumeric/plugin.xml
Caolan McNamara d516396
6852fb7
Caolan McNamara d516396
%changelog
c3c9234
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 1:1.12.44-4
c3c9234
- Rebuilt for libcrypt.so.2 (#1666033)
c3c9234
73f7493
* Fri Jan 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.12.44-3
73f7493
- Move Python 2 plugins to gnumeric-plugins-extras to avoid unnecessary Python 2 dependency
54f7f43
- Drop pygtk2-devel BuildRequires
73f7493
528a747
* Sat Jan 05 2019 Björn Esser <besser82@fedoraproject.org> - 1:1.12.44-2
528a747
- Add patch to explicitly use python2 shebangs, fixes FTBFS
528a747
7167888
* Mon Dec 24 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.44-1
7167888
- Update to 1.12.44
7167888
- Drop included patches
7167888
0ede2a6
* Sun Aug 12 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.42-2
0ede2a6
- Patched the install location of tools and widget headers using an upstream
0ede2a6
  patch
0ede2a6
19ce915
* Sat Aug 11 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.42-1
19ce915
- Updated to 1.12.42
ce59e94
- Fixed build failure using a patch from upstream git
19ce915
229fb35
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.41-3
229fb35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
229fb35
864f77c
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.41-2
864f77c
- Perl 5.28 rebuild
864f77c
d967bd7
* Thu May 10 2018 Julian Sikorski <belegdol@fedoraproject.org> - 0:1.12.41-2
d967bd7
- Updated to 1.12.41
d967bd7
- Ensured python2 is called explicitly as per https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
d967bd7
0b5d0f7
* Sun May 06 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.40-1
0b5d0f7
- Updated to 1.12.40
0b5d0f7
bb7fc0d
* Sat Mar 17 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.39-1
bb7fc0d
- Updated to 1.10.39
bb7fc0d
- Removed and/or updated obsolete scriptlets
bb7fc0d
fb434bf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.38-3
fb434bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fb434bf
ee3ec44
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1:1.12.38-2
ee3ec44
- Rebuilt for switch to libxcrypt
ee3ec44
292fdce
* Sun Dec 31 2017 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.38-1
292fdce
- Updated to 1.12.38
292fdce
7b9f2c3
* Tue Nov 21 2017 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.36-1
7b9f2c3
- Updated to 1.12.36
7b9f2c3
5ce8802
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.35-3
5ce8802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5ce8802
070284e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.35-2
070284e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
070284e
03b9473
* Tue Jul 11 2017 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.35-1
03b9473
- Updated to 1.12.35
03b9473
- Corrected -plugins-extras subpackage summary (RH #1464742)
03b9473
d523412
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.34-2
d523412
- Perl 5.26 rebuild
d523412
428efa9
* Mon Mar 27 2017 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.34-1
428efa9
- Updated to 1.12.34
428efa9
- Dropped upstreamed patches
428efa9
99b8234
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.33-2
99b8234
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
99b8234
15ad308
* Tue Jan 31 2017 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.33-1
15ad308
- Updated to 1.12.33
15ad308
- Fixed missing $DESTDIR in doc/Makefile.{in,am}
47e01c1
- Added docbook-dtds and itstool to BuildRequires, removed rarian-compat
da0764c
- Patched to use xml-dtd-4.5 instead of xmlcharent
15ad308
541e211
* Sat Aug 27 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.32-1
541e211
- Updated to 1.12.32
541e211
2fdeef1
* Mon Jul 04 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.31-1
2fdeef1
- Updated to 1.12.31
2fdeef1
0bdc405
* Mon Jun 20 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.30-1
0bdc405
- Updated to 1.12.30
0bdc405
- Dropped upstreamed patches
0bdc405
- Spec file cleanups
0bdc405
abe00d2
* Tue May 17 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.29-3
abe00d2
- Perl 5.24 rebuild
abe00d2
f17620f
* Sun May 15 2016 Hans de Goede <hdegoede@redhat.com> - 1:1.12.29-2
f17620f
- Fix "usage of MIME type "zz-application/zz-winassoc-xls" is discouraged"
f17620f
  warning showing every time a rpm transaction runs update-desktop-database
f17620f
- Prune spec-file changelog
f17620f
638985d
* Sat May 07 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.29-1
638985d
- Updated to 1.12.29
638985d
9dfc5c6
* Wed Mar 23 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.28-1
9dfc5c6
- Updated to 1.12.28
9dfc5c6
198ad43
* Sun Feb 07 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.27-1
198ad43
- Updated to 1.12.27
3e0ae53
- Added bison to BuildRequires
198ad43
ac7cf65
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.26-2
ac7cf65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ac7cf65
c6e6405
* Thu Dec 31 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.26-1
c6e6405
- Updated to 1.12.26
c6e6405
00047a1
* Mon Dec 28 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.25-1
00047a1
- Updated to 1.12.25
00047a1
1d2a0b0
* Mon Oct 26 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.24-1
1d2a0b0
- Updated to 1.12.24
1d2a0b0
0f04fd2
* Thu Jul 30 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.23-1
0f04fd2
- Updated to 1.12.23
0f04fd2
c486079
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.12.22-3
c486079
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c486079
2db25e5
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.22-2
2db25e5
- Perl 5.22 rebuild
2db25e5
e124f41
* Thu May 28 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.22-1
e124f41
- Updated to 1.12.22
e124f41
768ca30
* Tue Apr 07 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.21-1
768ca30
- Updated to 1.12.21
768ca30
Richard Hughes 6d3db3c
* Mon Mar 30 2015 Richard Hughes <rhughes@redhat.com> - 1:1.12.20-2
Richard Hughes 6d3db3c
- Use better AppData screenshots
Richard Hughes 6d3db3c
5c44c07
* Fri Feb 06 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.20-1
5c44c07
- Updated to 1.12.20
5c44c07
c6b558a
* Thu Jan 29 2015 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.19-1
c6b558a
- Updated to 1.12.19
c6b558a
6e96d17
* Sat Sep 27 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.18-1
6e96d17
- Updated to 1.12.18
6e96d17
a1d3a69
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.17-3
a1d3a69
- Perl 5.20 rebuild
a1d3a69
c38e0bf
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.12.17-2
c38e0bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c38e0bf
46dad72
* Thu Jun 12 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.17-1
46dad72
- Updated to 1.12.17
46dad72
ecca3e3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.12.16-2
ecca3e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ecca3e3
46f62f7
* Wed May 28 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.16-1
46f62f7
- Updated to 1.12.16
46f62f7
912a85a
* Sun May 04 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.15-1
912a85a
- Updated to 1.12.15
912a85a
cde1814
* Mon Apr 21 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.14-1
cde1814
- Updated to 1.12.14
cde1814
78123cf
* Fri Mar 21 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.13-1
78123cf
- Updated to 1.12.13
78123cf
68dd831
* Mon Mar 17 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.12-2
68dd831
- Fixed crash on strange .xls files (RH #1076912)
68dd831
b0bfb23
* Tue Mar 04 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.12-1
b0bfb23
- Updated to 1.12.12
b0bfb23
0195ca3
* Wed Feb 19 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.11-1
0195ca3
- Updated to 1.12.11
0195ca3
2e1dae3
* Sun Feb 16 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.10-1
2e1dae3
- Updated to 1.12.10
2e1dae3
82439aa
* Wed Jan 01 2014 Julian Sikorski <belegdol@fedoraproject.org> - 1:1.12.9-1
82439aa
- Updated to 1.12.9