Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
97
TABLE 10-3. CREATING A PACKAGE
RHEL ORACLE SOLARIS 11
Step 4Specify package contents
Use the command pkgsend generate to parse through proto area
recursively and specify what all constitutes the package
oracle@solaris_11X:~/work $ pkgsend
generate proto_install | pkgfmt >
my_sample.p5m.1
The find-requires and find-provides
scripts in /usr/lib/rpm can determine Perl,
Python, and Tcl script dependencies and other
dependencies, such as Java package
dependencies, automatically. The find-
requires script determines requires
dependencies automatically, and the find-
provides script determines provides
dependencies.
Step 5: Generated package dependencies using the pkgdepend
generate command:
oracle@solaris_11X:~/work $ pkgdepend generate -md
proto_install my_sample.p5m.1|pkgfmt > my_sample_depend
Step 6: Resolve package dependancies using the following command:
oracle@solaris_11:~/work $ pkgdepend resolve
my_sample_depend
The rpmbuild command is used to build RPMs:
$rpmbuild -bBuildStage spec_file
To build a binary RPM, use the bb option to the
rpmbuild command:
$ rpmbuild -bb spec_file
After exexuting the above command, my_sample_depend.res will be
created. This file can now be used to publish the packge on the IPS
repository.