36577e7
%{!?python_sitelib: %global python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
9e13bf3
9e13bf3
Name:           gtg
71f3126
Version:        0.3.1
36577e7
Release:        19%{?dist}
9e13bf3
Summary:        Personal organizer for the GNOME desktop
9e13bf3
9e13bf3
Group:          Applications/Productivity
9e13bf3
License:        GPLv3+
41e5758
URL:            http://gtgnome.net/
9e13bf3
BuildArch:      noarch
71f3126
Source0:        https://launchpad.net/gtg/trunk/%{version}/+download/%{name}-%{version}.tar.gz
c568ef3
Patch1:         gtg-desktop.patch
7692b39
Patch2:         gtg-export-no-pdftk.patch
84e893f
8995a34
BuildRequires:  python2-devel
9e13bf3
BuildRequires:  gettext
9e13bf3
BuildRequires:  desktop-file-utils
8995a34
BuildRequires:  python2-pyxdg
8995a34
Requires:       pygtk2 pygtk2-libglade python2-configobj python2-pyxdg python2-cairo gnome-python2-gnome
3678617
Requires:       python-liblarch >= 2.1.0
3678617
Requires:       python-liblarch_gtk
8995a34
Requires:       python2-dbus
71f3126
Requires:       hicolor-icon-theme
9e13bf3
75f6dde
# For RTM backend
8995a34
Requires:       python2-dateutil
ec9ba04
# Bugzilla backend?
8995a34
Requires:       python2-notify
75f6dde
9e13bf3
%description
9e13bf3
Getting Things GNOME! (GTG) is a personal organizer for the GNOME desktop
9e13bf3
environment inspired by the Getting Things Done (GTD) methodology. GTG is
9e13bf3
designed with flexibility, adaptability, and ease of use in mind so it can be
9e13bf3
used as more than just GTD software.
9e13bf3
9e13bf3
9e13bf3
%prep
9e13bf3
%setup -q
c568ef3
%patch1 -p1 -b .desktop
7692b39
%patch2 -p1 -b .nopdftk
9e13bf3
sed -i -e "s|#!/usr/bin/env python||" GTG/gtg.py
9e13bf3
9e13bf3
9e13bf3
%build
36577e7
%{__python2} setup.py build
9e13bf3
9e13bf3
%install
9e13bf3
rm -rf $RPM_BUILD_ROOT
36577e7
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
ed4e663
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/GTG/plugins/geolocalized_tasks
ed4e663
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/GTG/plugins/geolocalized-tasks.gtg-plugin
9e13bf3
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
9e13bf3
Richard Hughes 71597a7
# Register as an application to be visible in the software center
Richard Hughes 71597a7
#
Richard Hughes 71597a7
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 71597a7
# project, translated and installed into the right place during `make install`.
Richard Hughes 71597a7
#
Richard Hughes 71597a7
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 71597a7
#
Richard Hughes 71597a7
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 71597a7
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 71597a7
Richard Hughes 71597a7
Richard Hughes 71597a7
Richard Hughes 71597a7
BugReportURL: https://bugs.launchpad.net/gtg/+bug/1266100
Richard Hughes 71597a7
SentUpstream: 2014-09-18
Richard Hughes 71597a7
-->
Richard Hughes 71597a7
<application>
Richard Hughes 71597a7
  <id type="desktop">gtg.desktop</id>
Richard Hughes 71597a7
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 71597a7
  <description>
Richard Hughes 71597a7
    

Richard Hughes 71597a7
      Getting Things Gnome is a personal tasks and ToDo list organizer for inspired by
Richard Hughes 71597a7
      the Getting Things Done (GTD) methodology.
Richard Hughes 71597a7
    

Richard Hughes 71597a7
    

Richard Hughes 71597a7
      GTG is intended to help you track everything you need to do and need to know,
Richard Hughes 71597a7
      from small tasks to large projects.
Richard Hughes 71597a7
    

Richard Hughes 71597a7
    
Richard Hughes 71597a7
  </description>
Richard Hughes 71597a7
  <url type="homepage">https://wiki.gnome.org/gtg/</url>
Richard Hughes 71597a7
  <screenshots>
Richard Hughes 71597a7
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gtg/a.png</screenshot>
Richard Hughes 71597a7
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gtg/b.png</screenshot>
Richard Hughes 71597a7
  </screenshots>
Richard Hughes 71597a7
  
Richard Hughes 71597a7
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
Richard Hughes 71597a7
   -->
Richard Hughes 71597a7
</application>
Richard Hughes 71597a7
EOF
Richard Hughes 71597a7
c568ef3
%find_lang %{name} --with-gnome
9e13bf3
9e13bf3
9e13bf3
9e13bf3
9e13bf3
%files -f %{name}.lang
9e13bf3
%doc AUTHORS CHANGELOG LICENSE README
d327d86
%{_bindir}/gtg
c568ef3
%{_bindir}/gtcli
d327d86
%{_bindir}/gtg_new_task
c568ef3
%{_datadir}/dbus-1/services/org.gnome.GTG.service
Richard Hughes 71597a7
%{_datadir}/appdata/%{name}.appdata.xml
9e13bf3
%{_datadir}/applications/%{name}.desktop
9e13bf3
%{_datadir}/%{name}
9e13bf3
%{_datadir}/icons/hicolor/*/apps/%{name}.*
36577e7
%{python2_sitelib}/*
d327d86
%{_mandir}/man1/*.1.gz
71f3126
%{_datadir}/icons/hicolor/*/apps/gtg*
71f3126
%{_datadir}/icons/hicolor/*/apps/backend*
71f3126
%{_datadir}/icons/hicolor/*/actions/gtg*
71f3126
%{_datadir}/icons/hicolor/*/categories/gtg*
71f3126
%{_datadir}/icons/hicolor/*/categories/search*
71f3126
%{_datadir}/icons/hicolor/*/categories/items-tags*
71f3126
%{_datadir}/icons/hicolor/*/emblems/gtg*
71f3126
%{_datadir}/icons/hicolor/svg/gtg*
71f3126
%{_datadir}/icons/ubuntu-mono-dark/
71f3126
%{_datadir}/icons/ubuntu-mono-light/
9e13bf3
9e13bf3
9e13bf3
%changelog
36577e7
* Thu Jul 19 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.1-19
36577e7
- Update for https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
36577e7
f1e1ad5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-18
f1e1ad5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f1e1ad5
8995a34
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.1-17
8995a34
- Update Python 2 dependency declarations to new packaging standards
8995a34
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8995a34
eba212c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-16
eba212c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eba212c
0fa5638
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.1-15
0fa5638
- Remove obsolete scriptlets
0fa5638
f1a8ccd
* Tue Nov 21 2017 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.1-14
f1a8ccd
- Rebuild for liblarch update
f1a8ccd
034ef7b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-13
034ef7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
034ef7b
98525fd
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-12
98525fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
98525fd
5a7b8b9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-11
5a7b8b9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5a7b8b9
8b549b7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-10
8b549b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8b549b7
be02114
* Sun Jan 10 2016 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-9
be02114
- remove useless line with define macro
be02114
7692b39
* Wed Dec 23 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-8
7692b39
- Add patch to remove pdftk dep. #1133565
7692b39
ec9ba04
* Tue Jul 28 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-7
ec9ba04
- Add notify Requires
ec9ba04
61fe7f9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-6
61fe7f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
61fe7f9
Richard Hughes 71597a7
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.3.1-5
Richard Hughes 71597a7
- Add an AppData file for the software center
Richard Hughes 71597a7
b4dacb7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
b4dacb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b4dacb7
75f6dde
* Thu Dec 26 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-3
75f6dde
- Add optional dep for RTM backend. 
75f6dde
41e5758
* Sun Dec 01 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-2
41e5758
- Update URL
41e5758
71f3126
* Wed Nov 27 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.1-0
71f3126
- Update to latest release
71f3126
15e8f5d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
15e8f5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
15e8f5d
240ed5e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
240ed5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
240ed5e
3678617
* Fri Nov  9 2012 Yanko Kaneti <yaneti@declera.com> 0.3-2
3678617
- Add missing requires on python-liblarch(_gtk)
3678617
c568ef3
* Fri Nov  9 2012 Yanko Kaneti <yaneti@declera.com> 0.3-1
c568ef3
- New upstream release - 0.3
c568ef3
84e893f
* Wed Jul 18 2012 Yanko Kaneti <yaneti@declera.com> 0.2.4-8
84e893f
- Add patch for crash bug 841179 (lp bug 744294)
84e893f
84e893f
* Thu Jun 14 2012 Yanko Kaneti <yaneti@declera.com> 0.2.4-7
ed4e663
- Remove the geolocalized_tasks plugin which uses pyclutter,
ed4e663
  which uses gtk3. Bug #817841
ed4e663
7cea03e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
7cea03e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7cea03e
fb9d2af
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-5
fb9d2af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fb9d2af
5ca6a23
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.2.4-3
5ca6a23
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
5ca6a23
8569d64
* Thu Jun 10 2010 Yanko Kaneti <yaneti@declera.com> 0.2.4-2
8569d64
- Avoid "RuntimeError: not holding the import lock" with recent pythons, from upstream
8569d64
- Alternative X test, avoiding the xorg-x11-utils dependency
8569d64
- Requires dbus-python
8569d64
b80175c
* Sun Apr 11 2010 Yanko Kaneti <yaneti@declera.com> 0.2.4-1
b80175c
- New bugfix release from upstream
b80175c
094d864
* Mon Mar  4 2010 Yanko Kaneti <yaneti@declera.com> 0.2.3-1
094d864
- "A bit of polishing." - from upstream
094d864
7f5cce8
* Mon Mar  1 2010 Yanko Kaneti <yaneti@declera.com> 0.2.2-1
7f5cce8
- New upstream release.
7f5cce8
  http://gtg.fritalk.com/post/2010/03/01/Getting-Things-GNOME!-0.2.2-(Protector)-release-is-out!
7f5cce8
e9036fb
* Fri Feb 19 2010 Yanko Kaneti <yaneti@declera.com> 0.2.1-3
e9036fb
- Fixup the last fixup. Again preventing crash on startup.
e9036fb
0d9c09e
* Sun Feb 14 2010 Yanko Kaneti <yaneti@declera.com> 0.2.1-2
0d9c09e
- Pull upstream fix for bug 565224. Prevents crash on startup
0d9c09e
c19b1bf
* Sun Jan 31 2010 Yanko Kaneti <yaneti@declera.com> 0.2.1-1
c19b1bf
- Upstream bugfix release
c19b1bf
14d743c
* Sun Jan 31 2010 Yanko Kaneti <yaneti@declera.com> 0.2-3
14d743c
- Pull an upstream fix for missing tomboy.ui - bug 560316
14d743c
2316427
* Mon Dec 14 2009 Yanko Kaneti <yaneti@declera.com> 0.2-2
d327d86
- 0.2 final.
d327d86
  http://gtg.fritalk.com/post/2009/12/10/The-new-Getting-Things-GNOME!-0.2-Gorignak-has-landed!
d327d86
297d026
* Thu Dec  3 2009 Yanko Kaneti <yaneti@declera.com> 0.1.9-1
297d026
- 0.2 beta.
297d026
  http://gtg.fritalk.com/post/2009/12/02/Getting-Things-GNOME!-0.1.9-is-out!
297d026
- Remove some no longer necessary patching
297d026
- BR: pyxdg
297d026
ce0ecaa
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-4
ce0ecaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ce0ecaa
9e13bf3
* Tue Jul 14 2009 Yanko Kaneti <yaneti@declera.com> 0.1.2-3
9e13bf3
- Use %%{__python} instead of python
9e13bf3
9e13bf3
* Mon Jul 13 2009 Yanko Kaneti <yaneti@declera.com> 0.1.2-2
9e13bf3
- Implement review feedback
9e13bf3
  https://bugzilla.redhat.com/show_bug.cgi?id=510994#c1
9e13bf3
9e13bf3
* Mon Jul 13 2009 Yanko Kaneti <yaneti@declera.com> 0.1.2-1
9e13bf3
- Initial packaging