File yeahconsole.spec of Package yeahconsole

#
# spec file for package yeahconsole (Version 0.3.4)
#
# Copyright 2009 Mario García H.
#
# 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.

# norooforbuild

Summary: Turns an xterm or urxvt into a gamelike console
Name: yeahconsole
Version: 0.3.4
Release: 2
Source0: %{name}-%{version}.tar.gz
#Source1: http://www.phrat.de/%{name}-%{version}.tar.gz
Vendor: %{vendor}
URL: http://www.phrat.de/yeahtools.html
License: GPLv2
Group: System/X11/Utilities
AutoReqProv: on
BuildRequires: xorg-x11-devel
#BuildRequires: update-desktop-files
BuildRoot: %{_builddir}/%{name}-%{version}-build

Suggests: rxvt-unicode


%description
YeahConsole turns an xterm into a gamelike console.
This means it will slide down from top of your
screen if you hit a shortcut key.

You will need xterm version 168 or higher to make
this happen. rxvt-unicode, also known as urxvt,
is currently supported too.


%prep
%setup -q


%build
gcc -Os %{name}.c -lX11 -o %{name}
strip %{name}
%debug_package


%install
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -d -m 0755 %{buildroot}%{_docdir}/%{name}
%{__install} -m 0755 yeahconsole %{buildroot}%{_bindir}
%{__install} -m 0644 README LICENSE %{buildroot}%{_docdir}/%{name}
#%suse_update_desktop_file -i yeahconsole TerminalEmulator


%clean
%__rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%doc README LICENSE


%changelog
* Mon Jun 22 2009 Mario García H. <code933k@gmail.com> - 0.3.4
- Initial package.
openSUSE Build Service is sponsored by