7fb0b6b
Name:           gtimelog
9c0dd87
Version:        0.11.2
e9ffd91
Release:        2%{?dist}
7fb0b6b
Summary:        Unobtrusively keep track of your time
7fb0b6b
7fb0b6b
License:        GPLv2
7fb0b6b
URL:            http://mg.pov.lt/gtimelog/
7fb0b6b
Source0:        https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
e9ffd91
Patch0:         gtimelog-0.11.2-break-with-three-asterisks.patch
7fb0b6b
7fb0b6b
BuildArch:      noarch
7fb0b6b
BuildRequires:  python3-devel
e7b8afa
BuildRequires:  python3-freezegun
e7b8afa
BuildRequires:  python3-mock
7fb0b6b
BuildRequires:  /usr/bin/appstream-util
7fb0b6b
BuildRequires:  /usr/bin/desktop-file-install
168bf5a
BuildRequires:  /usr/bin/msgfmt
7fb0b6b
BuildRequires:  /usr/bin/rst2man
7fb0b6b
Requires:       gtk3
7fb0b6b
Requires:       python3-gobject
168bf5a
Recommends:     yelp
7fb0b6b
7fb0b6b
%description
7fb0b6b
GTimeLog is a small GTK+ app for keeping track of your time. It's main goal is
7fb0b6b
to be as unobtrusive as possible.
7fb0b6b
7fb0b6b
%prep
7fb0b6b
%setup -q
e9ffd91
%patch0 -p1
7fb0b6b
7fb0b6b
7fb0b6b
%build
7fb0b6b
%{__python3} setup.py build
7fb0b6b
# Generates the man pages.
7fb0b6b
make all
7fb0b6b
7fb0b6b
7fb0b6b
%install
7fb0b6b
%{__python3} setup.py install --skip-build --root %{buildroot}
7fb0b6b
desktop-file-install %{name}.desktop
7fb0b6b
# Needed for the desktop file.
7fb0b6b
install -d %{buildroot}/%{_datadir}/pixmaps
7fb0b6b
mv %{buildroot}%{python3_sitelib}/%{name}/*.png %{buildroot}/%{_datadir}/pixmaps
7fb0b6b
install -Dpm 644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
e7b8afa
install -Dpm 644 %{name}.appdata.xml %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
168bf5a
install -Dpm 644 src/gtimelog/data/org.gtimelog.gschema.xml %{buildroot}/%{_datadir}/glib-2.0/schemas/org.gtimelog.gschema.xml
7fb0b6b
7fb0b6b
7fb0b6b
%check
7fb0b6b
# Runs tests on the source tree.
7fb0b6b
%{__python3} ./runtests
7fb0b6b
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
7fb0b6b
7fb0b6b
7fb0b6b
%files
168bf5a
%doc CHANGES.rst CONTRIBUTING.rst src/gtimelog/CONTRIBUTORS.rst README.rst TODO.rst
7fb0b6b
%license COPYING
7fb0b6b
%{_bindir}/%{name}
7fb0b6b
%{_datadir}/appdata/%{name}.appdata.xml
7fb0b6b
%{_datadir}/applications/%{name}.desktop
168bf5a
%{_datadir}/glib-2.0/schemas/org.gtimelog.gschema.xml
7fb0b6b
%{_datadir}/pixmaps/%{name}*.png
7fb0b6b
%{_mandir}/man1/%{name}.1*
7fb0b6b
%{python3_sitelib}/%{name}*
7fb0b6b
7fb0b6b
7fb0b6b
7fb0b6b
%changelog
e9ffd91
* Sun Feb 17 2019 Till Hofmann <thofmann@fedoraproject.org> - 0.11.2-2
e9ffd91
- Add patch to correctly deal with three asterisks
e9ffd91
9c0dd87
* Sun Feb 17 2019 Till Hofmann <thofmann@fedoraproject.org> - 0.11.2-1
9c0dd87
- Update to 0.11.2
9c0dd87
496cdb9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-5
496cdb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
496cdb9
5f97b70
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
5f97b70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5f97b70
6bb2afa
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11-3
6bb2afa
- Rebuilt for Python 3.7
6bb2afa
6463755
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
6463755
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6463755
168bf5a
* Tue Dec 19 2017 David King <amigadave@amigadave.com> - 0.11-1
168bf5a
- Update to 0.11 (#1381205)
168bf5a
4cc30ea
* Tue Oct 31 2017 David King <amigadave@amigadave.com> - 0.10.3-1
4cc30ea
- Update to 0.10.3 (#1419155)
4cc30ea
15fb23d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
15fb23d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
15fb23d
9936c38
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
9936c38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9936c38
8bf1d60
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-2
8bf1d60
- Rebuild for Python 3.6
8bf1d60
ac06e01
* Mon Oct 03 2016 David King <amigadave@amigadave.com> - 0.10.2-1
ac06e01
- Update to 0.10.2 (#1381205)
ac06e01
7e52031
* Mon Sep 26 2016 David King <amigadave@amigadave.com> - 0.10.1-1
7e52031
- Update to 0.10.1 (#1378640)
7e52031
1ea9437
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
1ea9437
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1ea9437
1730a71
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
1730a71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1730a71
a9a076b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
a9a076b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a9a076b
e7b8afa
* Wed Sep 30 2015 David King <amigadave@amigadave.com> - 0.10.0-1
e7b8afa
- Update to 0.10.0 (#1267408)
e7b8afa
e3e09ed
* Wed Sep 30 2015 David King <amigadave@amigadave.com> - 0.9.3-1
e3e09ed
- Update to 0.9.3
e3e09ed
25845f4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
25845f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
25845f4
7fb0b6b
* Thu Apr 09 2015 David King <amigadave@amigadave.com> - 0.9.2-1
7fb0b6b
- Initial packaging (#1210252)