The following is a fairly comprehensive (as are most IBM tut's) 3 part tutorial for packaging RPM's but may give you a few helpful pointers.Note: not sure if/how much they'd need "tweaking" for the PCLinuxOS reposhttps://www.ibm.com/developerworks/views/linux/libraryview.jsp?sort_by=&show_abstract=true&show_all=&search_flag=&topic_by=-1&type_by=Articles&search_by=rpm%2C&Go.x=48&Go.y=12Packaging software with RPM, Part 1: Building and distributing packages
In this first article in a three-part series on the RPM Package Manager, learn how to use RPM not just to install software and attendant files but to package almost anything, from system scripts to source code to documentation.Packaging software with RPM, Part 2: Upgrading and uninstalling software
In this second article in a three-part series on the RPM Package Manager, learn how how to use RPM to upgrade and uninstall software on your Linux system.Packaging software with RPM, Part 3: Accommodating software dependencies
In this third article in a three-part series on the RPM Package Manager, discover the ins and outs of software dependencies, and learn how to control and customize your software packaging.
One the same page are links forLearn Linux, 101: RPM and YUM package management
Learn how to install, upgrade and manage packages on your Linux system. This article focuses on the Red Hat Package Manager (RPM) developed by Red Hat, as well as the Yellowdog Updater Modified (YUM) originally developed to manage Red Hat Linux systems at Duke University's Physics department. You can use the material in this article to study for the LPI 101 exam for Linux system administrator certification, or just to explore the best ways to add new software and keep your system current. Practice: RPM and YUM package management
A package is software that is bundled and ready for installation on a Linux system, and installing and removing packages are basic operations for any Linux user or administrator. This article offers hands-on practice with the Red Hat Package Manager (RPM) and YUM software management tools that will help you learn to perform these tasks in a real-world environment. The exercises and solutions in this article focus on a variety of package management tasks.