Comment 4 for bug 329684

Revision history for this message
Rehan Khan (rasker) wrote :

The file smart.spec separates all the components into separate packages. By compacting the %files sections and removing corresponding %package sections the spec file can be easily tailored for a particular distribution. The attachment smart_alt2.spec provides an example that tailors the install further for Fedora. As Fedora doesn't use yast2, urpmi, Red Carpet channels or up2date mirrors these have been left as additional channel types (they can even be further compacted into a smart-channel-RPM_other package easily reducing the rpm count even more).

The point is that the spec file is easily customisable and once customised doesn't change unless backends/channels/plugins are added to the tarball. The packager has the ability to control the default install to only what is needed by that distro while allowing the user to install other bits as they wish.

This spec file produces the following rpm's;

smart-1.1-58.0.1.fc10.src.rpm

smart-1.1-58.0.1.fc10.i386.rpm
smart-backend-RPM-1.1-58.0.1.fc10.i386.rpm
smart-backend-DEB-1.1-58.0.1.fc10.i386.rpm
smart-backend-Slack-1.1-58.0.1.fc10.i386.rpm
smart-channel-Red_Carpet-1.1-58.0.1.fc10.i386.rpm
smart-channel-URPMI-1.1-58.0.1.fc10.i386.rpm
smart-channel-Yast2-1.1-58.0.1.fc10.i386.rpm
smart-channel-up2date_mirrors-1.1-58.0.1.fc10.i386.rpm
smart-interface-GTK-1.1-58.0.1.fc10.i386.rpm
smart-update-1.1-58.0.1.fc10.i386.rpm
smart-ksmarttray-1.1-58.0.1.fc10.i386.rpm