O.K. - I am slowly learning how to build RPMs.

I had at first tried to do it "right" using buildroot and stuff, but our
use of the --prefix somewhat defeats it. Moreover rpm got on my nerves 
with rebuilding the sources for every package - thus the commented-out
building process.
My current specs seem to work well enough, though (after a manual install). 
Maybe someone with more experience in RPM packaging has some hints for me.

The /usr/local prefix is due to the experimental state this is in. It will
go away for the final version.

Does the following split look right to you all regarding LibGII ?

The idea is to split the stuff into packages that minimize dependencies
on the one hand, but keep the number of packages small as well to avoid
users having to get zillions of individual files.

BTW: I left out the binaries ... Marcus: You probably want them included -
How should I package them ? With the base, on their own package(s), or mhub
on its own/in the base and xsendbut with the x inputs ?

Hmm - thinking about it, I'd say mhub with base and xsendbut with the x
targets (keeps x dependencies together).

O.K. - here come the specs:

#############################

Summary: A library to handle input from arbitrary devices. Needed by LibGGI.
Name: ggi-libgii-base
Version: 2.1b
Release: 1
Copyright: BSD
Group: System Environment/Libraries
Source: libgii.tar.gz

%description
LibGII is an input management library that is used mainly by LibGGI.
It provides an abstracted event representation of any input it can 
handle. Note that most inputs are in their own packages to keep 
dependencies low.

%prep
#%setup -n libgii

%build
#./configure --prefix=/usr
#make

%install
#make install

%clean 
#rm -rf $RPM_BUILD_ROOT
%post
ldconfig
%files
%defattr(-,root,root) 
%config /usr/local/etc/ggi/libgii.conf 
%config /usr/local/etc/ggi/filter/keytrans 
%config /usr/local/etc/ggi/filter/mouse
/usr/local/lib/libgg.so
/usr/local/lib/libgg.so.0
/usr/local/lib/libgg.so.0.0.7
/usr/local/lib/libgii.so
/usr/local/lib/libgii.so.0
/usr/local/lib/libgii.so.0.0.7
/usr/local/lib/ggi/filter/keytrans.so
/usr/local/lib/ggi/filter/mouse.so
/usr/local/lib/ggi/filter/save.so
/usr/local/lib/ggi/input/file.so
/usr/local/lib/ggi/input/null.so
/usr/local/lib/ggi/input/stdin.so
/usr/local/man/man3/giiAddEventMask.3gii
/usr/local/man/man3/giiClose.3gii
/usr/local/man/man3/giiEventPoll.3gii
/usr/local/man/man3/giiEventRead.3gii
/usr/local/man/man3/giiEventSelect.3gii
/usr/local/man/man3/giiEventSend.3gii
/usr/local/man/man3/giiEventsQueued.3gii
/usr/local/man/man3/giiExit.3gii
/usr/local/man/man3/giiGetEventMask.3gii
/usr/local/man/man3/giiInit.3gii
/usr/local/man/man3/giiJoinInputs.3gii
/usr/local/man/man3/giiOpen.3gii
/usr/local/man/man3/giiPanic.3gii
/usr/local/man/man3/giiRemoveEventMask.3gii
/usr/local/man/man3/giiSetEventMask.3gii
/usr/local/man/man7/libgii.7gii
%changelog
* Fri Oct 27 2000 Andreas Beck <[EMAIL PROTECTED]>
- My first .spec file - please excuse any errors.

########################## 

Summary: Headers for developing with LibGII
Name: ggi-libgii-devel
Version: 2.1b
Release: 1
Copyright: BSD
Group: System Environment/Libraries
Source: libgii.tar.gz

%description
Headers for developing with LibGII

%prep
%build
%install
%clean 
%post
%files
%defattr(-,root,root) 
/usr/local/include/ggi/internal/gii.h
/usr/local/include/ggi/internal/gii-dl.h
/usr/local/include/ggi/internal/gii_debug.h
/usr/local/include/ggi/input/lin_kbd.h
/usr/local/include/ggi/input/xwin.h
/usr/local/include/ggi/errors.h
/usr/local/include/ggi/gg.h
/usr/local/include/ggi/system.h
/usr/local/include/ggi/events.h
/usr/local/include/ggi/keyboard.h
/usr/local/include/ggi/gii.h
/usr/local/include/ggi/gii-unix.h
%changelog
* Fri Oct 27 2000 Andreas Beck <[EMAIL PROTECTED]>
- My first .spec file - please excuse any errors.

########################## 

Summary: Linux specific input modules for LibGII
Name: ggi-libgii-linux
Version: 2.1b
Release: 1
Copyright: BSD
Group: System Environment/Libraries
Source: libgii.tar.gz

%description
Linux specific input modules for LibGII

%prep
%build
%install
%clean 
%post
%files
%defattr(-,root,root) 
/usr/local/lib/ggi/input/mouse.so
/usr/local/lib/ggi/input/linux_mouse.so
/usr/local/lib/ggi/input/linux_kbd.so
/usr/local/lib/ggi/input/linux_joy.so
/usr/local/lib/ggi/input/spaceorb.so
/usr/local/lib/ggi/input/linux_evdev.so
%changelog
* Fri Oct 27 2000 Andreas Beck <[EMAIL PROTECTED]>
- My first .spec file - please excuse any errors.

########################## 

Summary: X specific input modules for LibGII
Name: ggi-libgii-x
Version: 2.1b
Release: 1
Copyright: BSD
Group: System Environment/Libraries
Source: libgii.tar.gz

%description
X specific input modules for LibGII

%prep
%build
%install
%clean 
%post
%files
%defattr(-,root,root) 
/usr/local/lib/ggi/input/x.so
/usr/local/lib/ggi/input/xwin.so
%changelog
* Fri Oct 27 2000 Andreas Beck <[EMAIL PROTECTED]>
- My first .spec file - please excuse any errors.

########################## 


-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]>        =

Reply via email to