rpms/batti/devel batti.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christoph Wickert cwickert at fedoraproject.org
Tue Jun 1 08:33:37 UTC 2010


Author: cwickert

Update of /cvs/pkgs/rpms/batti/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25890/devel

Modified Files:
	.cvsignore sources 
Added Files:
	batti.spec import.log 
Log Message:
Initial import of batti. Review was at
https://bugzilla.redhat.com/show_bug.cgi?id=591982



--- NEW FILE batti.spec ---
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif

Name:           batti
Version:        0.3.7
Release:        2%{?dist}
Summary:        Simple battery monitor for the system tray

Group:          Applications/System
License:        GPLv2+
URL:            http://batti-gtk.googlecode.com/
Source0:        http://batti-gtk.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  desktop-file-utils
BuildRequires:  gettext
Requires:       pygtk2
Requires:       dbus-python
Requires:       notify-python
%if 0%{?fedora} >= 13
Requires:       upower
%else
Requires:       DeviceKit-power
%endif


%description
Batti is a simple battery monitor for the system tray, similar to batterymon. 
Unlike the latter batti uses UPower, and if that is missing DeviceKit.Power, 
for it's power information.

Features
* one tray icon per inserted battery
* tray icons (dis-)appear with the battery (un-)plugging
* notification on low and critical battery status
* use of GTK icon-theme
* suspend/hibernate menu on left-click, if allowed by PolicyKit


%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :


%postun
if [ "$1" -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi


%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{python_sitelib}/%{name}*.egg-info
%{python_sitelib}/%{name}/
%{_datadir}/applications/batti.desktop
%{_datadir}/icons/hicolor/*/*/%{name}*


%changelog
* Fri May 21 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.7-2
- Fix License tag
- Add COPYING to doc

* Sun May 16 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.7-1
- Update to 0.3.7
- BuildRequire gettext

* Thu May 13 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.5-1
- Update to 0.3.5

* Fri Apr 16 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.4-1
- Update to 0.3.4

* Tue Apr 13 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.1-1
- Update to 0.3.1

* Thu Apr 08 2010 Christoph Wickert <cwickert at fedoraproject.org> - 
- Initial package



--- NEW FILE import.log ---
batti-0_3_7-2_fc14:HEAD:batti-0.3.7-2.fc14.src.rpm:1275381167


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/batti/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	31 May 2010 19:32:12 -0000	1.1
+++ .cvsignore	1 Jun 2010 08:33:37 -0000	1.2
@@ -0,0 +1 @@
+batti-0.3.7.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/batti/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	31 May 2010 19:32:12 -0000	1.1
+++ sources	1 Jun 2010 08:33:37 -0000	1.2
@@ -0,0 +1 @@
+f855b28e4bb84fb33565d2668c33e221  batti-0.3.7.tar.gz



More information about the scm-commits mailing list