%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: referencer Summary: A document organiser and bibliography manager for Gnome Version: 1.1.6 Release: 16%{?dist} Group: Applications/System License: GPLv2 URL: http://icculus.org/referencer Source0: http://icculus.org/referencer/downloads/%{name}-%{version}.tar.gz Patch0: referencer-pythondir.patch # filed upstream: https://bugs.launchpad.net/referencer/+bug/661503 Patch1: referencer-poppler-0.15.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: poppler-glib-devel libgnomeuimm26-devel BuildRequires: boost-devel gcc-c++ python-devel BuildRequires: gettext perl(XML::Parser) BuildRequires: desktop-file-utils intltool gnome-doc-utils BuildRequires: scrollkeeper BuildRequires: libSM-devel libICE-devel Requires(post): scrollkeeper Requires(postun):scrollkeeper %description Referencer is a Gnome application to organise documents or references, and ultimately generate a BibTeX bibliography file. Its features include automatic metadata retrieval, smart web links, ability to import from BibTeX, Reference Manager and EndNote, and tagging. %prep %setup -q %patch0 -p0 -b .pyt %patch1 -p0 -b .poppler %build %configure --disable-update-mime-database make %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install desktop-file-install --delete-original \ --vendor fedora \ --remove-category Application \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}.desktop %find_lang %{name} %clean rm -rf %{buildroot} %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi scrollkeeper-update -q || : update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog README TODO %{_bindir}/referencer %{_datadir}/applications/fedora-referencer.desktop %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/mime/packages/referencer.xml %{_datadir}/pixmaps/referencer.svg %{_datadir}/referencer/ %{_datadir}/gnome/help/referencer-plugins/ %{_datadir}/gnome/help/referencer/ %{_datadir}/omf/referencer-plugins/ %{_datadir}/omf/referencer/ %{python_sitelib}/referencer/ %changelog * Sat Apr 09 2011 Deji Akingunola - 1.1.6-16 - Rebuild newer boost (boost-1.46.0) * Sun Mar 13 2011 Marek Kasik - 1.1.6-15 - Rebuild (poppler-0.16.3) * Wed Feb 09 2011 Fedora Release Engineering - 1.1.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Feb 06 2011 Thomas Spura - 1.1.6-13 - rebuild for new boost * Sun Jan 02 2011 Rex Dieter - 1.1.6-12 - rebuild (poppler) * Wed Dec 15 2010 Rex Dieter - 1.1.6-11 - rebuild (poppler) * Sat Nov 06 2010 Rex Dieter - 1.1.6-10 - rebuilt (poppler) * Fri Oct 15 2010 Alex Lancaster - 1.1.6-9 - Update with better patch from Marek Kasik, filed upstream: https://bugs.launchpad.net/referencer/+bug/661503 * Tue Oct 5 2010 Alex Lancaster - 1.1.6-8 - Add patch to fix API to use new poppler 0.15 - Add BR: libSM-devel libICE-devel, need to have them explicitly required * Thu Sep 28 2010 Deji Akingunola - 1.1.6-7 - Rebuild for poppler-0.15. * Thu Aug 19 2010 Rex Dieter - 1.1.6-6 - rebuild (poppler) * Tue Jul 27 2010 Bill Nottingham - 1.1.6-5 - Rebuilt for boost-1.44 * Thu Jul 22 2010 David Malcolm - 1.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jun 22 2010 Matthias Clasen - 1.1.6-3 - Rebuild against new poppler * Fri Jan 22 2010 Rahul Sundaram - 1.1.6-2 - Rebuild for Boost soname bump - Fix mixed use of tabs and spaces * Mon Aug 10 2009 Deji Akingunola - 1.1.6-1 - New upstream version * Sun Jul 26 2009 Fedora Release Engineering - 1.1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Jun 28 2009 Deji Akingunola - 1.1.5-7 - Fix gconf key lookup if GConf disabledplugin key is not set (Denis Leroy, Fedora bug #508011) * Wed Feb 25 2009 Fedora Release Engineering - 1.1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 05 2009 Deji Akingunola - 1.1.5-5 - Add a small patch to build with gcc-4.4 * Wed Dec 17 2008 Benjamin Kosnik - 1.1.5-4 - Rebuild for boost-1.37.0. * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.1.5-3 - Rebuild for Python 2.6 * Thu Nov 20 2008 Deji Akingunola - 1.1.5-2 - BR intltool * Thu Nov 20 2008 Deji Akingunola - 1.1.5-1 - Update to 1.1.5 * Sat Aug 30 2008 Deji Akingunola - 1.1.4-1 - Update to latest release * Thu Jul 10 2008 Deji Akingunola - 1.1.3-1 - Update to latest release * Thu May 22 2008 Deji Akingunola - 1.1.2-2 - Backport upstream fix for crash when importing bibtex file - Look for plugins in (python_sitelib)/referencer/ * Sat Apr 26 2008 Deji Akingunola - 1.1.2-1 - New release * Wed Mar 19 2008 Deji Akingunola - 1.1.1-1 - New release * Fri Feb 08 2008 Deji Akingunola - 1.1.0-1 - Latest upstream release * Wed Sep 19 2007 Deji Akingunola - 1.0.4-5 - Patch to build against newer poppler library * Wed Sep 05 2007 Deji Akingunola - 1.0.4-4 - Rebuild against newer poppler library * Sat Aug 25 2007 Deji Akingunola - 1.0.4-3 - Rebuild * Fri Aug 03 2007 Deji Akingunola - 1.0.4-2 - Modify the license tag, and - Rebuild for new boost library * Thu May 31 2007 Deji Akingunola - 1.0.4-1 - New release * Wed May 30 2007 Rick L Vinyard Jr - 1.0.3-3 - Fix the crash on x86_64 * Sat May 05 2007 Deji Akingunola - 1.0.3-2 - Preserve timestamp (from package review) * Sat May 05 2007 Deji Akingunola - 1.0.3-1 - Initial packaging for Fedora