File clickity.spec of Package clickity

# norootforbuild

Name:               clickity
Version:            0.2.0
Release:            0
Summary:            Tray Program that simulates Mouse Clicks and Drags
Source:             https://prdownloads.sourceforge.net/clickity/clickity-%{version}.tar.gz
Source99:           rpmlintrc
Patch1:             clickity-paths.patch
Patch2:             clickity-fix_desktop.patch
URL:                http://sourceforge.net/apps/mediawiki/clickity/index.php?title=Main_Page
Group:              System/X11/Utilities
License:            MIT
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      python python-devel
BuildRequires:      python-gtk >= 2.12
BuildRequires:      perl
BuildRequires:      update-desktop-files
%if 0%{?suse_version} >= 1120
BuildArch:          noarch
%endif
%py_requires

%description
Clickity is a tray-icon program for simulating mouse clicks and drags that are
difficult to perform because of limited hand use or limited pointing hardware.

It will run on any X system that supports tray icons, as well as Microsoft
Windows systems, and does not require an integrated desktop environment or
accessiblity framework to be installed.

Clickity displays an icon corresponding to the action it will perform when
activated either by holding down and then releasing the left mouse button or by
moving the pointer and letting it dwell in position. Actions include single
clicks, double clicks and drags of the left, right and middle buttons, as well
as scroll wheel motion.

%prep
%setup -q
%patch1
%patch2

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
    --prefix="%{_prefix}" \
    --root="%{buildroot}" \
    --record-rpm=files.lst

%__perl -n -i -e 'print unless m,%{_mandir},' files.lst
%__perl -n -i -e 'print unless m,%{_datadir}/(applications|pixmaps)$,' files.lst

%__install -D -m0644 clickity.cfg.sample "%{buildroot}/etc/clickity/clickity.cfg"

%suse_update_desktop_file -r "%{name}" Utility Accessibility

%clean
%__rm -rf "%{buildroot}"

%files -f files.lst
%defattr(-,root,root)
%doc README clickity.cfg.sample
%dir /etc/clickity
%config(noreplace) /etc/clickity/clickity.cfg
%doc %{_mandir}/man1/clickity.1%{ext_man}

%changelog
# vim: set sw=4 ts=4 et nu:
openSUSE Build Service is sponsored by