Hello Tib
I have read the Development guide but am stuck on the create links bit in the spec file.
Createlinks is a Perl program that you include in your rpm tarball and it provides a simple way to build the links that SME Server needs, primarily, to associate events with actions and server-manager panels with the server-manager cgi-bin directory. It gets installed "alongside" your rpm. Your rpm scriptlets then call it at install time to create the necessary links for your code. As a general rule-of-thumb, if your rpm doesn't require any events or server-manager panels then you probably don't need the createlinks routine.
The best way to see how "real" rpms work is to grab an smeserver system SRPM (any of 'em will do) and break into it. The smeserver rpms are very well written, by people who clearly knew/know what they're doing (mostly Gordon and Charlie), and you can learn a lot by browsing the specs files. Download the srpm into /usr/src/redhat/SRPMS. Install it with..
rpm -Uvh smeserver-some-rpm.src.rpm
This will open the rpm and install its constituents into the rpm build libraries so that they are in exactly the same state as they were when the rpm was built.
Now, you will find the source tarball in /usr/src/redhat/SOURCES and the specs file in /usr/src/redhat/SPECS. You can just open the specs file in your favourite editor but you'll have to untar the source...
tar xzvf smeserver-some-rpm.tar.gz
This will give you the untarred source tree. Createlinks is at the top of the tree alongside root.
If you wish - you can grab the sail srpm - Sail contains both events and panels, you will see both kinds of link being built in its createlinks, but it's nowhere near as well written as the smeserver stuff. Looking at Gordon's guidelines, I'm pretty sure that we use a fairly "old-fashioned" way of creating the links in our system (sail has been around for a year or two now and it started life under SME 6.0).
Kind Regards
Selintra