File lsw.spec of Package lsw
#
# spec file for package lsw (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.
Summary: Lists the titles of all running X windows to stdout
Name: lsw
Version: 0.1
Release: 1
Source0: %{name}-%{version}.tar.gz
Source1: http://code.suckless.org/dl/tools/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-defs.patch
Vendor: %{vendor}
URL: http://tools.suckless.ora/%{name}
License: X11/MIT
Requires: xorg-x11
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-util-devel
Group: System/GUI/Other
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
Lists the titles of all running X windows to
stdout, similar to ls(1). Might be useful for
script integration.
%prep
%setup -q
%patch0 -p1
%build
%install
%{__make} DESTDIR=$RPM_BUILD_ROOT clean install
install -d -m 0755 %{buildroot}/%{_docdir}/%{name}
install -m 0644 README %{buildroot}/%{_docdir}/%{name}
install -m 0644 LICENSE %{buildroot}/%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%doc README LICENSE
%changelog
* Thu Jul 9 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.1
- Initial package.