File ledmon-caps.spec of Package ledmon-caps

#
# spec file for package ledmon (Version 0.1)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

%define rname ledmon

Summary: Command line oriented Keyboard led status monitor
Name: ledmon-caps
Version: 0.1
Release: 3
Source: %{rname}-%{version}.tar.bz2
Patch0: %{rname}-%{version}.patch
Patch1: %{rname}-%{version}.64.patch
Patch2: %{rname}-%{version}-caps.patch
Vendor: %{vendor}
URL: http://git.complete.org/ledmon?a=tree
License: GPL
Group: System/GUI/Other
Requires: xorg-x11
Conflicts: %{rname}
BuildRequires: xorg-x11-devel xorg-x11-libXau-devel xorg-x11-libxcb-devel
BuildRoot: %{_builddir}/%{rname}-%{version}-build


%description
Ledmon is a very simple and small program for
monitoring the keyboard leds status whenever your
keyboard lacks status indicators or they are
located in an uncomfortable position for you to
see.

It was mainly conceived as an addition for Xmobar
but may fulfill its purpose in countless
environments.

This version was patched to show only caps lock
mode for laptops were numlock works in a different
way.
 

%prep
%setup -q -n %{rname}
if [ "`arch`" = 'x86_64' ]
then
%patch1 -p1
else
%patch0 -p1
fi
%patch2 -p1

%build
%{__make}

%debug_package


%install
%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_bindir}
%{__install} -m 0755 ledmon $RPM_BUILD_ROOT%{_bindir}
%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}
%{__install} -m 0644 COPYRIGHT $RPM_BUILD_ROOT%{_docdir}/%{name}


%clean
%{__rm} -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{rname}
%doc %{_docdir}/%{name}
%doc %{_docdir}/%{name}/COPYRIGHT


%changelog
* Tue Jun 30 2009 Mario García H. <code933k@gmail.com> - 0.1-4
- Caps version added.
* Tue Jun 30 2009 Mario García H. <code933k@gmail.com> - 0.1-1
- Initial package.
openSUSE Build Service is sponsored by