File wmname.spec of Package wmname
#
# spec file for package wmname (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: Prints or sets the window manager name property
Name: wmname
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
Patch1: %{name}-%{version}-defs64.patch
Vendor: %{vendor}
URL: http://tools.suckless.org/%{name}
License: X11/MIT
Group: System/GUI/Other
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-util-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
wmname prints/sets the window manager name
property of the root window similar to how
hostname(1) behaves.
wmname is a nice utility to fix problems with
JDK versions and other broken programs assuming
a reparenting window manager for instance.
%prep
%setup -q
if [ "`arch`" = "x86_64" ]
then
%patch1 -p1
else
%patch0 -p1
fi
%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.