|
|
d36c512 |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
d36c512 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
d36c512 |
%endif
|
|
|
d36c512 |
|
|
|
d36c512 |
Name: batti
|
|
|
218ae22 |
Version: 0.3.8
|
|
|
5603908 |
Release: 7%{?dist}
|
|
|
d36c512 |
Summary: Simple battery monitor for the system tray
|
|
|
d36c512 |
|
|
|
d36c512 |
Group: Applications/System
|
|
|
d36c512 |
License: GPLv2+
|
|
|
d36c512 |
URL: http://batti-gtk.googlecode.com/
|
|
|
d36c512 |
Source0: http://batti-gtk.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
d36c512 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
d36c512 |
|
|
|
d36c512 |
BuildArch: noarch
|
|
|
d36c512 |
BuildRequires: python-devel
|
|
|
d36c512 |
BuildRequires: desktop-file-utils
|
|
|
d36c512 |
BuildRequires: gettext
|
|
|
d36c512 |
Requires: pygtk2
|
|
|
d36c512 |
Requires: dbus-python
|
|
|
d36c512 |
Requires: notify-python
|
|
|
d36c512 |
%if 0%{?fedora} >= 13
|
|
|
d36c512 |
Requires: upower
|
|
|
d36c512 |
%else
|
|
|
d36c512 |
Requires: DeviceKit-power
|
|
|
d36c512 |
%endif
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%description
|
|
|
d36c512 |
Batti is a simple battery monitor for the system tray, similar to batterymon.
|
|
|
d36c512 |
Unlike the latter batti uses UPower, and if that is missing DeviceKit.Power,
|
|
|
d36c512 |
for it's power information.
|
|
|
d36c512 |
|
|
|
d36c512 |
Features
|
|
|
d36c512 |
* one tray icon per inserted battery
|
|
|
d36c512 |
* tray icons (dis-)appear with the battery (un-)plugging
|
|
|
d36c512 |
* notification on low and critical battery status
|
|
|
d36c512 |
* use of GTK icon-theme
|
|
|
d36c512 |
* suspend/hibernate menu on left-click, if allowed by PolicyKit
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%prep
|
|
|
d36c512 |
%setup -q
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%build
|
|
|
d36c512 |
%{__python} setup.py build
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%install
|
|
|
d36c512 |
rm -rf $RPM_BUILD_ROOT
|
|
|
d36c512 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
d36c512 |
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
d36c512 |
%find_lang %{name}
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%clean
|
|
|
d36c512 |
rm -rf $RPM_BUILD_ROOT
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%post
|
|
|
d36c512 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%postun
|
|
|
d36c512 |
if [ "$1" -eq 0 ] ; then
|
|
|
d36c512 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
d36c512 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
d36c512 |
fi
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%posttrans
|
|
|
d36c512 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%files -f %{name}.lang
|
|
|
d36c512 |
%defattr(-,root,root,-)
|
|
|
d36c512 |
%doc AUTHORS COPYING
|
|
|
d36c512 |
%{_bindir}/%{name}
|
|
|
d36c512 |
%{python_sitelib}/%{name}*.egg-info
|
|
|
d36c512 |
%{python_sitelib}/%{name}/
|
|
|
d36c512 |
%{_datadir}/applications/batti.desktop
|
|
|
d36c512 |
%{_datadir}/icons/hicolor/*/*/%{name}*
|
|
|
d36c512 |
|
|
|
d36c512 |
|
|
|
d36c512 |
%changelog
|
|
|
5603908 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-7
|
|
|
5603908 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
5603908 |
|
|
|
16ac505 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-6
|
|
|
16ac505 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
16ac505 |
|
|
|
c6a13d8 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-5
|
|
|
c6a13d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c6a13d8 |
|
|
|
64cada7 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-4
|
|
|
64cada7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
64cada7 |
|
|
|
86a46fa |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-3
|
|
|
86a46fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
86a46fa |
|
|
|
853953b |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-2
|
|
|
853953b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
853953b |
|
|
|
218ae22 |
* Sun Jan 16 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.8-1
|
|
|
218ae22 |
- Update to 0.3.8 (#670030)
|
|
|
218ae22 |
|
|
|
966c5aa |
* Fri Jul 30 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.3.7-3
|
|
|
966c5aa |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
966c5aa |
|
|
|
d36c512 |
* Fri May 21 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.7-2
|
|
|
d36c512 |
- Fix License tag
|
|
|
d36c512 |
- Add COPYING to doc
|
|
|
d36c512 |
|
|
|
d36c512 |
* Sun May 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.7-1
|
|
|
d36c512 |
- Update to 0.3.7
|
|
|
d36c512 |
- BuildRequire gettext
|
|
|
d36c512 |
|
|
|
d36c512 |
* Thu May 13 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.5-1
|
|
|
d36c512 |
- Update to 0.3.5
|
|
|
d36c512 |
|
|
|
d36c512 |
* Fri Apr 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.4-1
|
|
|
d36c512 |
- Update to 0.3.4
|
|
|
d36c512 |
|
|
|
d36c512 |
* Tue Apr 13 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.1-1
|
|
|
d36c512 |
- Update to 0.3.1
|
|
|
d36c512 |
|
|
|
d36c512 |
* Thu Apr 08 2010 Christoph Wickert <cwickert@fedoraproject.org> -
|
|
|
d36c512 |
- Initial package
|
|
|
d36c512 |
|