Blame SPECS/gnome-documents.spec

cd0455
%define evince_version 3.13.3
7cec7b
%define gettext_version 0.19.8
7cec7b
%define gjs_version 1.48.0
7cec7b
%define gtk3_version 3.22.15
7cec7b
%define tracker_version 0.17.3
7cec7b
%define libgepub_version 0.6
d4f982
d4f982
Name:           gnome-documents
7cec7b
Version:        3.28.2
8540c9
Release:        2%{?dist}
d4f982
Summary:        A document manager application for GNOME
d4f982
d4f982
License:        GPLv2+
4f50f5
URL:            https://wiki.gnome.org/Apps/Documents
7cec7b
Source0:        https://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz
7cec7b
7cec7b
# Fix the build with Python 2
7cec7b
Patch1:         gnome-documents-python2.patch
4f50f5
4f50f5
# https://bugzilla.redhat.com/show_bug.cgi?id=985887
4f50f5
# https://bugzilla.redhat.com/show_bug.cgi?id=1444437
7cec7b
Patch2:         gnome-documents-skydrive-and-lok-fixes.patch
4f50f5
7cec7b
# https://bugzilla.redhat.com/show_bug.cgi?id=1569793
7cec7b
Patch3:         gnome-documents-tracker.patch
408152
7cec7b
# https://bugzilla.redhat.com/show_bug.cgi?id=1611565
7cec7b
Patch4:         gnome-documents-dont-attempt-to-load-collections.patch
408152
8540c9
# https://bugzilla.redhat.com/show_bug.cgi?id=1690935
8540c9
Patch5:         gnome-documents-meson.build-allow-libgdprivate-1.0.so-to-find-libgd.patch
8540c9
4f50f5
BuildRequires:  pkgconfig(evince-document-3.0) >= %{evince_version}
4f50f5
BuildRequires:  pkgconfig(evince-view-3.0) >= %{evince_version}
4f50f5
BuildRequires:  pkgconfig(webkit2gtk-4.0)
4f50f5
BuildRequires:  pkgconfig(gtk+-3.0) >= %{gtk3_version}
408152
BuildRequires:  pkgconfig(gjs-1.0) >= %{gjs_version}
7cec7b
BuildRequires:  pkgconfig(tracker-control-1.0) >= %{tracker_version}
7cec7b
BuildRequires:  pkgconfig(tracker-sparql-1.0) >= %{tracker_version}
4f50f5
BuildRequires:  pkgconfig(goa-1.0)
4f50f5
BuildRequires:  pkgconfig(gnome-desktop-3.0)
4f50f5
BuildRequires:  pkgconfig(libgdata)
7cec7b
BuildRequires:  pkgconfig(libgepub-0.6) >= %{libgepub_version}
4f50f5
BuildRequires:  pkgconfig(zapojit-0.0)
4f50f5
BuildRequires:  pkgconfig(libsoup-2.4)
d4f982
BuildRequires:  liboauth-devel
d4f982
BuildRequires:  desktop-file-utils
7cec7b
BuildRequires:  gettext >= %{gettext_version}
d4f982
BuildRequires:  itstool
d4f982
BuildRequires:  inkscape
7cec7b
BuildRequires:  meson
d4f982
BuildRequires:  poppler-utils
d4f982
BuildRequires:  docbook-style-xsl
d4f982
cd0455
Requires:       evince-libs%{?_isa} >= %{evince_version}
7cec7b
Requires:       gettext%{?isa} >= %{gettext_version}
7cec7b
Requires:       gjs%{?_isa} >= %{gjs_version}
cd0455
Requires:       gtk3%{?_isa} >= %{gtk3_version}
7cec7b
Requires:       gnome-online-miners
7cec7b
Requires:       libgepub%{?_isa} >= %{libgepub_version}
4f50f5
Requires:       libreofficekit
4f50f5
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
cd0455
d4f982
%description
d4f982
gnome-documents is a document manager application for GNOME,
d4f982
aiming to be a simple and elegant replacement for using Files to show
d4f982
the Documents directory.
d4f982
4f50f5
%package libs
4f50f5
Summary: Common libraries and data files for %{name}
4f50f5
%description libs
4f50f5
%{summary}.
4f50f5
d4f982
%prep
d4f982
%setup -q
408152
%patch1 -p1
408152
%patch2 -p1
7cec7b
%patch3 -p1
7cec7b
%patch4 -p1
8540c9
%patch5 -p1
d4f982
d4f982
%build
7cec7b
%meson -Dgetting_started=true
7cec7b
%meson_build
d4f982
d4f982
%install
7cec7b
%meson_install
4f50f5
4f50f5
# Disable gnome-books
4f50f5
rm -f $RPM_BUILD_ROOT/%{_bindir}/gnome-books
4f50f5
rm -f $RPM_BUILD_ROOT/%{_datadir}/dbus-1/services/org.gnome.Books.service
4f50f5
rm -f $RPM_BUILD_ROOT/%{_datadir}/glib-2.0/schemas/org.gnome.books.gschema.xml
4f50f5
rm -f $RPM_BUILD_ROOT/%{_datadir}/applications/org.gnome.Books.desktop
4f50f5
rm -f $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/*/apps/org.gnome.Books.png
4f50f5
rm -f $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Books-symbolic.svg
4f50f5
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/gnome-books.1*
7cec7b
rm -f $RPM_BUILD_ROOT/%{_datadir}/metainfo/org.gnome.Books.appdata.xml
4f50f5
cd0455
%find_lang %{name} --with-gnome
d4f982
7cec7b
%check
7cec7b
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Documents.desktop
7cec7b
d4f982
%post
d4f982
/sbin/ldconfig
d4f982
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
d4f982
d4f982
%postun
d4f982
/sbin/ldconfig
d4f982
if [ $1 -eq 0 ] ; then
d4f982
    touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
d4f982
    gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
d4f982
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
d4f982
fi
d4f982
d4f982
%posttrans
d4f982
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
d4f982
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
d4f982
d4f982
%files -f %{name}.lang
4f50f5
%license COPYING
4f50f5
%doc README AUTHORS NEWS TODO
d4f982
%{_bindir}/%{name}
4f50f5
%{_datadir}/dbus-1/services/org.gnome.Documents.service
4f50f5
%{_datadir}/glib-2.0/schemas/org.gnome.documents.gschema.xml
4f50f5
%{_datadir}/applications/org.gnome.Documents.desktop
4f50f5
%{_datadir}/icons/hicolor/*/apps/org.gnome.Documents.png
4f50f5
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Documents-symbolic.svg
4f50f5
%{_mandir}/man1/gnome-documents.1*
d4f982
# co-own these directories
d4f982
%dir %{_datadir}/gnome-shell
d4f982
%dir %{_datadir}/gnome-shell/search-providers
cd0455
%{_datadir}/gnome-shell/search-providers/org.gnome.Documents.search-provider.ini
7cec7b
%{_datadir}/metainfo/org.gnome.Documents.appdata.xml
d4f982
4f50f5
%files libs
4f50f5
%{_datadir}/%{name}
4f50f5
%{_datadir}/glib-2.0/schemas/org.gnome.Documents.enums.xml
4f50f5
%{_libdir}/gnome-documents/
4f50f5
d4f982
%changelog
8540c9
* Wed Mar 20 2019 Debarshi Ray <rishi@fedoraproject.org> - 3.28.2-2
8540c9
- Make documents show up when started through search provider
8540c9
  Resolves: #1690935
8540c9
7cec7b
* Fri Aug 24 2018 Debarshi Ray <rishi@fedoraproject.org> - 3.28.2-1
7cec7b
- Update to 3.28.2
7cec7b
- Rebased downstream patches
7cec7b
- Fix crash on right-click on local collection
7cec7b
  Resolves: #1611565
7cec7b
7cec7b
* Tue Aug 14 2018 Debarshi Ray <rishi@fedoraproject.org> - 3.28.1-2
7cec7b
- Stop the garbage collector from complaining during shutdown
7cec7b
  Resolves: #1608936
7cec7b
7cec7b
* Wed Jun 06 2018 Debarshi Ray <rishi@fedoraproject.org> - 3.28.1-1
7cec7b
- Update to 3.28.1
7cec7b
- Rebased downstream patches
7cec7b
- Revert to using Python 2 and Tracker 1.0
7cec7b
- Resolves: #1568171
7cec7b
408152
* Tue Dec 12 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-8
408152
- Initialize the getting started PDF only when presenting a UI, and before any
408152
  SPARQL has been submitted
408152
- Suppress WARNINGs from GJS 1.50.0 by using var instead of let/const for
408152
  exported symbols
408152
- Use the standard dialect of String.prototype.replace
408152
  Resolves: #1517770
408152
408152
* Wed Dec 06 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-7
408152
- Suppress WARNINGs from GJS 1.50.0 about replacing GObject signal methods
408152
  Resolves: #1517770
408152
408152
* Mon Nov 27 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-6
408152
- Adjust the LOKDocView detection to work with GJS 1.48.0
408152
- Suppress WARNINGs from GJS 1.50.0 by using var instead of let/const for
408152
  exported symbols
408152
  Resolves: #1517704
408152
4f50f5
* Fri Jun 09 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-5
4f50f5
- Fix CRITICALs on invoking the application when a primary instance is present
4f50f5
  Resolves: #1436566
4f50f5
4f50f5
* Thu May 11 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-4
4f50f5
- Fix crash on repeated opening of presentations
4f50f5
  Resolves: #1444437
4f50f5
4f50f5
* Fri Apr 21 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-3
4f50f5
- Disable the print button in the selection toolbar when printing isn't
4f50f5
  supported
4f50f5
  Resolves: #1438362
4f50f5
4f50f5
* Tue Apr 04 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-2
4f50f5
- Unable to preview LOKDocView-supported documents from OneDrive
4f50f5
  Resolves: #1436682
4f50f5
4f50f5
* Mon Mar 27 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.2-1
4f50f5
- Update to 3.22.2
4f50f5
- Thumbnail OneDrive entries once they are loaded
4f50f5
  Resolves: #985887, #1386892
4f50f5
4f50f5
* Wed Mar 22 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.1-2
4f50f5
- Drop gnome-books due to unavailability of gnome-epub-thumbnailer
4f50f5
  Resolves: #1433418
4f50f5
4f50f5
* Sun Mar 12 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.1-1
4f50f5
- Update to 3.22.1
4f50f5
  Resolves: #1386892
4f50f5
46f955
* Wed Jun 15 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-3
46f955
- Prevent nested collections
46f955
  Resolves: #958690
46f955
cd0455
* Wed May 20 2015 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-2
cd0455
- Show a back button when loading
cd0455
  Resolves: #1057160
cd0455
cd0455
* Fri May 15 2015 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-1
cd0455
- Update to 3.14.3
cd0455
  Update translations
cd0455
  Resolves: #1174601
cd0455
cd0455
* Mon Mar 23 2015 Richard Hughes <rhughes@redhat.com> - 3.14.2-1
cd0455
- Update to 3.14.2
cd0455
  Resolves: #1174601
cd0455
242d67
* Fri Mar  7 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-10
242d67
- get_pretty_name mixes up ASCII and UTF8 characters
242d67
  Resolves: #1073383
242d67
242d67
* Wed Feb 26 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-9
242d67
- The sharing dialog is Google specific
242d67
  Resolves: #1062608
242d67
242d67
* Tue Feb 25 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-8
242d67
- Fix the patch to preview encrypted PDFs
242d67
- Fix the patch to protect against spurious view-as signals
242d67
  Resolves: #959175
242d67
242d67
* Tue Feb 11 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-7
242d67
- Use decimal instead of octal literal
242d67
  Resolves: #1035573
242d67
242d67
* Tue Feb 11 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-6
242d67
- No indication of a document failing to print
242d67
  Resolves: #162299
242d67
242d67
* Mon Feb 10 2014 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-5
242d67
- Protect against spurious changed::view-as signals
242d67
  Resolves: #1056032
242d67
242d67
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.5-4
242d67
- Mass rebuild 2014-01-24
242d67
242d67
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.5-3
242d67
- Mass rebuild 2013-12-27
242d67
242d67
* Wed Dec 11 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.5-2
242d67
- Update translations
242d67
  Resolves: #1030340
242d67
d4f982
* Thu Oct 24 2013 Debarshi Ray <rishi@fedoraproject.org> - 3.8.5-1
d4f982
- Update to 3.8.5
d4f982
d4f982
* Fri Aug 30 2013 Debarshi Ray <rishi@fedoraproject.org> - 3.8.4-1
d4f982
- Update to 3.8.4
d4f982
d4f982
* Thu Jul 11 2013 Debarshi Ray <rishi@fedoraproject.org> - 3.8.3.1-2
d4f982
- Backport support for previewing password protected PDFs (GNOME #700716)
d4f982
d4f982
* Fri Jun 14 2013 Debarshi Ray <rishi@fedoraproject.org> - 3.8.3.1-1
d4f982
- Update to 3.8.3.1
d4f982
d4f982
* Sun Jun  9 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.3-1
d4f982
- Update to 3.8.3
d4f982
d4f982
* Mon May 13 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.2.1-1
d4f982
- Update to 3.8.2.1
d4f982
d4f982
* Tue Apr 16 2013 Richard Hughes <rhughes@redhat.com> - 3.8.1-1
d4f982
- Update to 3.8.1
d4f982
d4f982
* Thu Mar 28 2013 Cosimo Cecchi <cosimoc@gnome.org> - 3.8.0-2
d4f982
- Enable generation of getting-started tutorial PDF
d4f982
d4f982
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
d4f982
- Update to 3.8.0
d4f982
d4f982
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.92-1
d4f982
- Update to 3.7.92
d4f982
d4f982
* Thu Mar  7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
d4f982
- Update to 3.7.91
d4f982
d4f982
* Tue Feb 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.90-1
d4f982
- Update to 3.7.90
d4f982
d4f982
* Thu Feb 21 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-3
d4f982
- Rebuilt for cogl soname bump
d4f982
d4f982
* Wed Feb 20 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-2
d4f982
- Rebuilt for libgnome-desktop soname bump
d4f982
d4f982
* Thu Feb 07 2013 Richard Hughes <rhughes@redhat.com> - 3.7.5-1
d4f982
- Update to 3.7.5
d4f982
d4f982
* Fri Jan 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 3.7.4-2
d4f982
- Rebuild for new cogl
d4f982
d4f982
* Tue Jan 15 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.4-1
d4f982
- Update to 3.7.4
d4f982
d4f982
* Fri Dec 21 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.3-1
d4f982
- Update to 3.7.3
d4f982
d4f982
* Tue Nov 20 2012 Richard Hughes <hughsient@gmail.com> - 3.7.2-1
d4f982
- Update to 3.7.2
d4f982
d4f982
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.2-1
d4f982
- Update to 3.6.2
d4f982
d4f982
* Mon Oct 15 2012 Cosimo Cecchi <cosimoc@redhat.com> - 3.6.1-1
d4f982
- Update to 3.6.1
d4f982
d4f982
* Tue Sep 25 2012 Cosimo Cecchi <cosimoc@redhat.com> - 3.6.0-1
d4f982
- Update to 3.6.0
d4f982
d4f982
* Tue Sep 18 2012 Cosimo Cecchi <cosimoc@redhat.com> - 3.5.92-1
d4f982
- Update to 3.5.92
d4f982
d4f982
* Sun Sep 09 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.91-2
d4f982
- Rebuild against new cogl/clutter
d4f982
d4f982
* Tue Sep 04 2012 Cosimo Cecchi <cosimoc@redhat.com> - 3.5.91-1
d4f982
- Update to 3.5.91
d4f982
d4f982
* Tue Aug 28 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.90-2
d4f982
- Rebuild against new cogl/clutter
d4f982
d4f982
* Tue Aug 21 2012 Elad Alfassa <elad@fedoraproject.org> - 3.5.90-1
d4f982
- Update to latest upstream release
d4f982
d4f982
* Fri Aug 10 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.5.5-1
d4f982
- Update to 0.5.5
d4f982
d4f982
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
d4f982
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d4f982
d4f982
* Tue Jul 17 2012 Richard Hughes <hughsient@gmail.com> - 0.5.4-1
d4f982
- Update to 0.5.4
d4f982
d4f982
* Wed Jun 27 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.5.3-1
d4f982
- Update to 0.5.3
d4f982
d4f982
* Thu Jun 07 2012 Matthias Clasen <mclasen@redhat.com> - 0.5.2.1-2
d4f982
- Rebuild
d4f982
d4f982
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 0.5.2.1-1
d4f982
- Update to 0.5.2.1
d4f982
d4f982
* Sat May 05 2012 Kalev Lember <kalevlember@gmail.com> - 0.5.1-1
d4f982
- Update to 0.5.1
d4f982
d4f982
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 0.4.1-1
d4f982
- Update to 0.4.1
d4f982
d4f982
* Mon Mar 26 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.4.0.1-1
d4f982
- Update to 0.4.0.1
d4f982
d4f982
* Mon Mar 26 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.4.0-2
d4f982
- Rebuild against current libevdocument3 soname
d4f982
d4f982
* Mon Mar 26 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.4.0-1
d4f982
- Update to 0.4.0
d4f982
d4f982
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> - 0.3.92-4
d4f982
- Rebuild for libevdocument3 soname bump
d4f982
d4f982
* Tue Mar 20 2012 Adam Williamson <awilliam@redhat.com> - 0.3.92-3
d4f982
- revert unoconv requirement, it pulls LO into the live image
d4f982
d4f982
* Tue Mar 20 2012 Adam Williamson <awilliam@redhat.com> - 0.3.92-2
d4f982
- requires: unoconv (RHBZ #754516)
d4f982
d4f982
* Tue Mar 20 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.3.92-1
d4f982
- Update to 0.3.92
d4f982
d4f982
* Sat Mar 10 2012 Matthias Clasen <mclasen@redhat.com> - 0.3.91-2
d4f982
- Rebuild against new cogl
d4f982
d4f982
* Tue Mar 06 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.3.91-1
d4f982
- Update to 0.3.91
d4f982
d4f982
* Sun Feb 26 2012 Matthias Clasen <mclasen@redhat.com> - 0.3.90-1
d4f982
- Update to 0.3.90
d4f982
d4f982
* Thu Jan 19 2012 Matthias Clasen <mclasen@redhat.com> - 0.3.4-2
d4f982
- Rebuild against new cogl
d4f982
d4f982
* Tue Jan 17 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.3.4-1
d4f982
- Update to 0.3.4
d4f982
d4f982
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
d4f982
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d4f982
d4f982
* Tue Dec 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.3.3-1
d4f982
- Update to 0.3.3
d4f982
d4f982
* Wed Nov 23 2011 Matthias Clasen <mclasen@redhat.com> - 0.3.2-1
d4f982
- Update to 0.3.2
d4f982
d4f982
* Tue Oct 18 2011 Elad Alfassa <elad@fedoraproject.org> - 0.2.1-1
d4f982
- New upstream release
d4f982
d4f982
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 0.2.0-1
d4f982
- Update to 0.2.0
d4f982
d4f982
* Tue Sep 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.1.92-2
d4f982
- Rebuild against newer clutter
d4f982
d4f982
* Tue Sep 20 2011 Elad Alfassa <elad@fedoraproject.org> - 0.1.92-1
d4f982
- Update to 0.1.92
d4f982
d4f982
* Wed Sep  7 2011 Matthias Clasen <mclasen@redhat.com> - 0.1.91-1
d4f982
- Update to 0.1.91
d4f982
d4f982
* Sat Sep 03 2011 Elad Alfassa <elad@fedoraproject.org> - 0.1.90-2
d4f982
- Fix #735341
d4f982
d4f982
* Fri Sep 02 2011 Elad Alfassa <elad@fedoraproject.org> - 0.1.90-1
d4f982
- Initial packaging.
d4f982