RPM spec for openbox (fwd)

Ryan C. Gordon icculus at clutteredmind.org
Fri May 2 02:35:35 EDT 2003


This came to my mailbox with the following header:

Received: from h-64-236-149-143.music.aoltw.net (HELO
    i?like?using?telnet?to?send?msgs) (64.236.149.143)


...and not much else.

--ryan.



---------- Forwarded message ----------
Subject: RPM spec for openbox

I liked blackbox, then came accross openbox when I was looking for xinerma
patch for blackbox. Anyways.. I liked openbox's features so I made a spec for it.
anyways here it goes.. should work just fine for rh8/9.. it should work for 7 also.

%define name openbox
%define ver 2.2.3
%define release 1
%define prefix /usr

Summary: Very small and fast Window Manager.
Name: %{name}
Version: %{ver}
Release: %{release}
Epoch: 0
License: GPL
Group: User Interface/Desktops
Source: http://icculus.org/openbox/releases/%{name}-%{version}.tar.gz
URL: http://icculus.org/openbox/
BuildRoot: %{_tmppath}/%{name}-root
Requires: XFree86, libstdc++
BuildRequires: XFree86-devel, libstdc++-devel

%description
Openbox is a window manager for the X11 windowing system. It currently runs on
a large list of platforms. It was originally based on Blackbox and currently
remains very similar, even using Blackbox styles (with available extensions)
for its themeing.

%prep

%setup -q

%build
CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=%{prefix} \
--enable-xinerama

make %{?_smp_mflags}

%install
rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}%{_datadir}/apps/switchdesk
cat > %{buildroot}%{_datadir}/apps/switchdesk/Xclients.%{name} << EOF
#!/bin/sh
exec %{_bindir}/%{name}
EOF
mkdir -p %{buildroot}/etc/X11/gdm/Sessions
cat > %{buildroot}/etc/X11/gdm/Sessions/Openbox << EOF
#!/bin/sh
exec /etc/X11/xdm/Xsession %{name}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS CHANGELOG* LICENSE README* TODO
%attr(755, root, root) /etc/X11/gdm/Sessions/Openbox
%{_bindir}/*
%{_datadir}/%{name}
%attr(755, root, root) %{_datadir}/apps/switchdesk/Xclients.%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*

%changelog
* Thu May 1 2003 Gary Barrueto <gman+openbox at gman.infinex.com>
- blackbox spec file I mod'ed for openbox






More information about the openbox mailing list