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