[ATrpms-users] Openbox
Phill Edwards
philledwards at gmail.com
Thu Feb 7 13:43:18 CET 2008
> You can read this howto:
> http://people.atrpms.net/~pcavalcanti/LCG_kernel_modules.html
Hope you don't mind me asking some questions about this, but I've
never done it before and I'm a bit stuck! I've made quite a bit of
progress and have produced a spec file for openbox. I have read loads
of pages about building RPMs as non-root and have got .rpmmacros &
.rpmrcfiles and a $HOME/rpmbuild tree.
Q1) When I run rpmbuild -ba openbox.spec it gets a heck of a long way,
compiles all the source etc. But then it falls over with permission
failures because it's doing a "make install" and of course my non-root
user can't do that. I'm assuming that you have to have the %install
line in the spec file, so how do you solve this?
Q2) The spec file has to list every /dir/filename that's going to be
installed. The only way I found of doing this is to do a complete
compile & install from source code, capture the output in a log file
and then use that to list the files in the spec file. Is there any
easier way?
Q3) I have no idea at all on how to specify package dependencies. How
do you know which packages should be listed as dependencies in the
spec file?
Here's my spec file if it helps anything:
Summary: A highly configurable and standards-compliant X11 window manager
Name: openbox
Version: 3.4.6
Release: 1
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: User Interface/Desktops
BuildRoot: %{_builddir}/%{name}-root
%description
Openbox is a window manager designed explicity for standards-compliance and
speed. It is fast, lightweight, and heavily configurable (using XML for its
configuration data). It has many features that make it unique among window
managers: window resistance, chainable key bindings, customizable mouse
actions, multi-head/Xinerama support, and dynamically generated "pipe menus."
For a full list of the FreeDesktop.org standards with which it is compliant,
please see the COMPLIANCE file in the included documentation of this package.
For a graphical configuration editor, you'll need to install the obconf
package. For a graphical menu editor, you'll need to install the obmenu
package.
%prep
%setup -q
%build
./configure --prefix=/usr --sysconfdir=/etc
make
%install
make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %attr(0444,root,root)
%doc COMPLIANCE README AUTHORS CHANGELOG COPYING
%config autostart.sh rc.xml menu.xml
/usr/share/locale/zh_TW/LC_MESSAGES/openbox.mo
/usr/share/locale/zh_CN/LC_MESSAGES/openbox.mo
/usr/share/locale/de/LC_MESSAGES/openbo
.......
/etc/xdg/openbox/autostart.sh
/etc/xdg/openbox/rc.xml
/etc/xdg/openbox/menu.xml
/usr/share/themes/Syscrash/openbox-3/max_disabled.xbm
/usr/share/themes/Syscrash/openbox-3/max_pressed.xbm
.......
etc etc
More information about the atrpms-users
mailing list