<<< Question related to making of RPM package >>>

Hi all,
Pls provide your suggestions and advice for the below queries. I have a files like below sample

$ ls -l /u01/app

-rw-r--r-- 1 appusr appdba        4 Feb 20 21:35 test
-rw-r--r-- 1 appusr appdba        4 Feb 20 21:35 test1
-rw-r--r-- 1 appusr appdba        4 Feb 20 21:35 test
  • I want to make it as a rpm package for all the files under this folder (/u01/app)
  • Make it as a relocatable package (it can be install in different directory)
  • Sometimes appusr (user) group can be different in some of the servers (not appdba). So that time it will get the appusr group and change the permission accordingly

Pls share the spec file and provide your suggestions. Thanks !

Regards
Kannan

Where in this does it get hard: Building Packages: A Simple Example

I guess you need an after install script.