3abb5f5
# This package depends on automagic byte compilation
3abb5f5
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
3abb5f5
%global _python_bytecompile_extra 1
3abb5f5
3abb5f5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3abb5f5
3abb5f5
Name:           gnome-activity-journal
3abb5f5
Version:        0.8.0
3abb5f5
Release:        17%{?dist}
3abb5f5
Summary:        Browse and search your Zeitgeist activities
3abb5f5
3abb5f5
License:        GPLv3+
3abb5f5
URL:            https://launchpad.net/%{name}
3abb5f5
Source0:        http://launchpad.net/%{name}/0.8/%{version}/+download/%{name}-%{version}.tar.gz
3abb5f5
3abb5f5
# Simple patch to get rid of rpmlint error about non-executable script
3abb5f5
Patch1:         %{name}-non-executable-script-fix.patch
3abb5f5
# A patch to handle changes in dbus names in newer versions of zeitgeist. Fixes bug #821121.
3abb5f5
# Taken from here: http://bazaar.launchpad.net/~manishsinha/gnome-activity-journal/fixes-924988/revision/9/debian/patches/fix_histogram_issue.diff
3abb5f5
Patch2:         %{name}-fix-histogram-issue.patch
3abb5f5
3abb5f5
BuildArch:      noarch
3abb5f5
BuildRequires:  python2-devel python2-distutils-extra desktop-file-utils intltool
3abb5f5
Requires:       zeitgeist >= 0.8.0
3abb5f5
Requires:       hicolor-icon-theme
3abb5f5
Requires:       pygtk2 pygobject2
3abb5f5
Requires:       gnome-python2-gnome gnome-python2-gconf python2-cairo
3abb5f5
Requires:       python2-pyxdg python2-pygments
3abb5f5
3abb5f5
Requires(pre):   GConf2
3abb5f5
Requires(post):  GConf2
3abb5f5
Requires(preun): GConf2
3abb5f5
3abb5f5
%pre
3abb5f5
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf
3abb5f5
if [ "$1" -gt 1 ]; then
3abb5f5
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
3abb5f5
    gconftool-2 --makefile-uninstall-rule \
3abb5f5
      %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
3abb5f5
fi
3abb5f5
3abb5f5
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf
3abb5f5
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
3abb5f5
gconftool-2 --makefile-install-rule \
3abb5f5
  %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
3abb5f5
3abb5f5
%preun
3abb5f5
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf
3abb5f5
if [ "$1" -eq 0 ]; then
3abb5f5
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
3abb5f5
    gconftool-2 --makefile-uninstall-rule \
3abb5f5
      %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
3abb5f5
fi
3abb5f5
3abb5f5
%description
3abb5f5
GNOME Activity Journal is a tool for easily
3abb5f5
browsing and finding files on your computer.
3abb5f5
It shows a chronological journal of all file
3abb5f5
activity.
3abb5f5
3abb5f5
%prep
3abb5f5
%setup -q
3abb5f5
%patch1 -p1
3abb5f5
%patch2 -p1
3abb5f5
3abb5f5
%build
3abb5f5
%py2_build
3abb5f5
3abb5f5
3abb5f5
%install
3abb5f5
rm -rf $RPM_BUILD_ROOT
3abb5f5
%py2_install
3abb5f5
3abb5f5
# The gconf schema file gets installed in the wrong location so we move it
3abb5f5
mkdir -p %{buildroot}%{_sysconfdir}/gconf/schemas/
3abb5f5
mv %{buildroot}%{_datadir}/gconf/schemas/%{name}.schemas \
3abb5f5
   %{buildroot}%{_sysconfdir}/gconf/schemas/
3abb5f5
3abb5f5
%find_lang %{name}
3abb5f5
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
3abb5f5
3abb5f5
3abb5f5
%files -f %{name}.lang
3abb5f5
%doc README AUTHORS
3abb5f5
%{_bindir}/*
3abb5f5
%{_datadir}/gnome-activity-journal
3abb5f5
%{_datadir}/icons/hicolor/*/*
3abb5f5
%{_datadir}/pixmaps/*
3abb5f5
%{_datadir}/applications/*
3abb5f5
%{_datadir}/man/*/*
3abb5f5
%{python2_sitelib}/*
3abb5f5
3abb5f5
%{_datadir}/zeitgeist/_zeitgeist/engine/extensions/gnome_activity_journal.*
3abb5f5
3abb5f5
%{_sysconfdir}/gconf/schemas/%{name}.schemas
3abb5f5
3abb5f5
%changelog
3abb5f5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-17
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3abb5f5
3abb5f5
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-16
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3abb5f5
3abb5f5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-15
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3abb5f5
3abb5f5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-14
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3abb5f5
3abb5f5
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.0-13
3abb5f5
- Update Python 2 dependency declarations to new packaging standards
3abb5f5
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
3abb5f5
3abb5f5
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-12
3abb5f5
- Remove obsolete scriptlets
3abb5f5
3abb5f5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-11
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3abb5f5
3abb5f5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-10
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3abb5f5
3abb5f5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-9
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3abb5f5
3abb5f5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-8
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3abb5f5
3abb5f5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-7
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3abb5f5
3abb5f5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-6
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3abb5f5
3abb5f5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-5
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3abb5f5
3abb5f5
* Sun Jul 22 2012 Mads Villadsen <maxx@krakoa.dk> - 0.8.0-4
3abb5f5
- Add patch to fix issue running with newest version of zeitgeist. Fixes bug #821121.
3abb5f5
3abb5f5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3abb5f5
3abb5f5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3abb5f5
3abb5f5
* Sun Sep 11 2011 Mads Villadsen <maxx@krakoa.dk> - 0.8.0-1
3abb5f5
- Update to 0.8.0
3abb5f5
3abb5f5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3abb5f5
3abb5f5
* Thu Jan 27 2011 Mads Villadsen <maxx@krakoa.dk> - 0.6.0-1
3abb5f5
- Update to 0.6.0
3abb5f5
- Added drag and drop support
3abb5f5
- Added support for XChat, Bazaar
3abb5f5
- Added tray icon support
3abb5f5
- Minor interface changes
3abb5f5
- Various bug fixes
3abb5f5
3abb5f5
* Tue Sep 28 2010 Mads Villadsen <maxx@krakoa.dk> - 0.5.0.1-1
3abb5f5
- Update to 0.5.0.1
3abb5f5
- Fixes issues with hamster-applet
3abb5f5
- Removes some debug output
3abb5f5
- Minor bugfixes
3abb5f5
3abb5f5
* Mon Aug 23 2010 Mads Villadsen <maxx@krakoa.dk> - 0.5.0-1
3abb5f5
- Update to latest release
3abb5f5
- Add minor patch to make the version check work with zeitgeist 0.5.0
3abb5f5
3abb5f5
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.4.1-2.20100721bzr1010
3abb5f5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3abb5f5
3abb5f5
* Wed Jul 21 2010 Mads Villadsen <maxx@krakoa.dk> - 0.3.4.1-1.20100721bzr1010
3abb5f5
- Use a bzr version to get g-a-j working with new hamster-applet
3abb5f5
3abb5f5
* Sun May  9 2010 Mads Villadsen <maxx@krakoa.dk> - 0.3.4-1
3abb5f5
- Update to latest release
3abb5f5
- Fixes bugs #579024, #579148, #579144, #580740, #580309, #591444
3abb5f5
- Don't use --skip-build in install target as it breaks various part of the installation
3abb5f5
- Removed the install patch as the installation is better behaved now
3abb5f5
- Removed the startup shell script as it is no longer needed
3abb5f5
3abb5f5
* Sun Feb 21 2010 Mads Villadsen <maxx@krakoa.dk> - 0.3.3-1
3abb5f5
- Update to new release
3abb5f5
- Added a patch for better installation
3abb5f5
- spec file updated to handle GConf schema, icons, languages, more
3abb5f5
- Add intltool to BuildRequires
3abb5f5
3abb5f5
* Fri Jan 22 2010 Mads Villadsen <maxx@krakoa.dk> - 0.3.2-1
3abb5f5
- Initial package
3abb5f5