%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define bzr_revision 1010 Name: gnome-activity-journal Version: 0.3.4.1 Release: 2.20100721bzr1010%{?dist} # to check out this version do: # bzr co -r 1010 lp:gnome-activity-journal gnome-activity-journal-0.3.4.1-bzr1010 # rm -rf gnome-activity-journal-0.3.4.1-bzr1010/.bzr # tar zcf gnome-activity-journal-0.3.4.1-bzr1010.tar.gz gnome-activity-journal-0.3.4.1-bzr1010 Summary: Browse and search your Zeitgeist activities Group: Applications/File License: GPLv3+ URL: https://launchpad.net/%{name} Source0: http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}-bzr%{bzr_revision}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Simple patch to get rid of rpmlint error about non-executable script Patch1: %{name}-non-executable-script-fix.patch BuildArch: noarch BuildRequires: python-devel python-distutils-extra desktop-file-utils intltool Requires: zeitgeist >= 0.3.1 Requires: hicolor-icon-theme Requires: pygtk2 pygobject2 Requires: gnome-python2-gnome gnome-python2-gconf pycairo Requires: pyxdg python-pygments Requires(pre): GConf2 Requires(post): GConf2 Requires(preun): GConf2 %pre # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || : fi %post # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : %preun # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : fi %postun # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans # From https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %description GNOME Activity Journal is a tool for easily browsing and finding files on your computer. It shows a chronological journal of all file activity. %prep %setup -q -n %{name}-%{version}-bzr%{bzr_revision} %patch1 -p1 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT # The gconf schema file gets installed in the wrong location so we move it mkdir -p %{buildroot}%{_sysconfdir}/gconf/schemas/ mv %{buildroot}%{_datadir}/gconf/schemas/%{name}.schemas \ %{buildroot}%{_sysconfdir}/gconf/schemas/ %find_lang %{name} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc README AUTHORS %{_bindir}/* %{_datadir}/gnome-activity-journal %{_datadir}/icons/hicolor/*/* %{_datadir}/pixmaps/* %{_datadir}/applications/* %{_datadir}/man/*/* %{python_sitelib}/* %{_sysconfdir}/gconf/schemas/%{name}.schemas %changelog * Wed Jul 21 2010 David Malcolm - 0.3.4.1-2.20100721bzr1010 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Jul 21 2010 Mads Villadsen - 0.3.4.1-1.20100721bzr1010 - Use a bzr version to get g-a-j working with new hamster-applet * Sun May 9 2010 Mads Villadsen - 0.3.4-1 - Update to latest release - Fixes bugs #579024, #579148, #579144, #580740, #580309, #591444 - Don't use --skip-build in install target as it breaks various part of the installation - Removed the install patch as the installation is better behaved now - Removed the startup shell script as it is no longer needed * Sun Feb 21 2010 Mads Villadsen - 0.3.3-1 - Update to new release - Added a patch for better installation - spec file updated to handle GConf schema, icons, languages, more - Add intltool to BuildRequires * Fri Jan 22 2010 Mads Villadsen - 0.3.2-1 - Initial package