Embarrassed to admit it but got as far as: Go to http://distro.ibiblio.org/pub/linux/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010 and scroll down to the SRPMS.(*) sections. Clicking any of those links will open that section, where you will find SRPMs for PCLinuxOS.
These are the best src.rpms to start out with learning to package upto PCLinuxOS standards. Study them. Look closely at how the spec files are written.
And then stalled out. Couldn't figure out what to do with the links those links took me to or what I was supposed to see when I opened the links at the links above. Hopefully pictures/screenshots would help.
NOTE : Please go through comments by Neal about the following information over here
http://www.pclinuxos.com/forum/index.php/topic,111231.msg950256.html#msg950256Please read through the complete guide. Parts of the guide are verbatim or barely modified posts from the forum by the authors referred. Considering the high level of knowledge of the respective authors, it might seem intimidating at first. (I had a similar experience too). Just read the rest of the guide.
Once you have set-up the packaging environment, you need to have something to try. (This is from a school of experimental learning rather than theoretical learning).
SRPM or .src.rpm is a source packaging containing the actual source code and the .spec file which is the most important thing about packaging.
Most of the guides linked on the page will talk about .spec file.
The above particular link is the link to those SRPMs which PCLinuxOS uses to build its packages for end users.
The different sections may approximately mean the following:
- base - the most basic software needed for PCLinuxOS to run.
- main - most of the software included in the default .iso release.
- updates - the software which gets added after an .iso is released. This would include both new software and updates to existing software.
- kde / xfce etc - software specific to desktop environments.
- non-free - software distributed in the form of precompiled binaries such as graphic drivers, adobe reader etc.
[If I am wrong please correct me.]
All you need to do is to enter any of these subdirectories by clicking on them and then just examine the list seen there. Click and download any one of your choice. Once it is downloaded locally, right click on the downloaded file.
You will have an option called "Install for build"
This will open a terminal window which can be closed later.
Now if you go and check inside /src/rpm/SPECS and /src/rpm/SOURCES directories of your user account you would find the respective .spec and .tar.xz files.