7c10167
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7c10167
5ac860f
%define bzr_revision 1010
7c10167
Name:           gnome-activity-journal
5ac860f
Version:        0.3.4.1
7037305
Release:        2.20100721bzr1010%{?dist}
5ac860f
# to check out this version do:
5ac860f
#    bzr co -r 1010 lp:gnome-activity-journal gnome-activity-journal-0.3.4.1-bzr1010
5ac860f
#    rm -rf gnome-activity-journal-0.3.4.1-bzr1010/.bzr
5ac860f
#    tar zcf gnome-activity-journal-0.3.4.1-bzr1010.tar.gz gnome-activity-journal-0.3.4.1-bzr1010
7c10167
Summary:        Browse and search your Zeitgeist activities
7c10167
7c10167
Group:          Applications/File
7c10167
License:        GPLv3+
7c10167
URL:            https://launchpad.net/%{name}
5ac860f
Source0:        http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}-bzr%{bzr_revision}.tar.gz
7c10167
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7c10167
7c10167
# Simple patch to get rid of rpmlint error about non-executable script
7c10167
Patch1:         %{name}-non-executable-script-fix.patch
7c10167
7c10167
BuildArch:      noarch
7c10167
BuildRequires:  python-devel python-distutils-extra desktop-file-utils intltool
d25dc27
Requires:       zeitgeist >= 0.3.1
7c10167
Requires:       hicolor-icon-theme
7c10167
Requires:       pygtk2 pygobject2
7c10167
Requires:       gnome-python2-gnome gnome-python2-gconf pycairo
7c10167
Requires:       pyxdg python-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
%post
7c10167
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
7c10167
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
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
%postun
7c10167
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
7c10167
if [ $1 -eq 0 ] ; then
7c10167
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
7c10167
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
7c10167
fi
7c10167
7c10167
%posttrans
7c10167
# From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
7c10167
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
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
5ac860f
%setup -q -n %{name}-%{version}-bzr%{bzr_revision}
7c10167
%patch1 -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
%clean
7c10167
rm -rf $RPM_BUILD_ROOT
7c10167
7c10167
7c10167
%files -f %{name}.lang
7c10167
%defattr(-,root,root,-)
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
7c10167
%{_sysconfdir}/gconf/schemas/%{name}.schemas
7c10167
7c10167
%changelog
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