Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
pyinputstats
pyinputstats.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pyinputstats.spec of Package pyinputstats
%global srcname pyInputStats Name: pyinputstats Version: 0.2.1 Release: 1 Summary: An application for mouse and keyboard statistics Group: Applications/System License: GPLv2+ URL: https://launchpad.net/pyinputstats Source0: http://launchpad.net/%{name}/trunk/1.0/+download/%{srcname}-%{version}.tar.gz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: desktop-file-utils Requires: python-xlib %description pyInputStats watches your mouse and your keyboard in order to generate some statistics. With pyInputStats you are able to answer substantial questions like: * How many meters do I move my mouse pointer every day? * How many times to I press a key on my keyboard? * Do I click my mouse more often on Fridays? * Do I make more mouse-meters in the morning hours? %prep %setup -q -n %{srcname}-%{version} # For the desktop file cp -p pyinputstatsmodules/images/ruler.png %{name}.png # Remove shebangs for Files in \ pyinputstatsmodules/{database.py,__init__.py,gui.py,collector.py,helpers.py} \ pygtk_chart/{chart.py,__init__.py,label.py,chart_object.py,pie_chart.py,basics.py,line_chart.py} \ ; do %{__sed} -i.orig -e 1d ${Files} touch -r ${Files}.orig ${Files} %{__rm} ${Files}.orig done %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} install -Dp -m 0644 %{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README %{_bindir}/%{name} %{python_sitelib}/pyinputstatsmodules/ %{python_sitelib}/pygtk_chart/ %{python_sitelib}/%{srcname}*.egg-info %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Thu Feb 09 2012 Huaren Zhong <huaren.zhong@gmail.com> - 0.2.1 - Rebuild for Fedora * Sat Mar 26 2011 Fabian Affolter <fabian@bernewireless.net> - 0.2.1-1 - Initial package for Fedora
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor