Recently I have been building RPM through the spec file :
[SPEC File]
%define __prefix /usr/aethos/psa/current
%define __bindir %{__prefix}/bin
%define __libdir %{__prefix}/lib
Summary: MMAP Filter for PSA 4.0L
Name: psaBE_mmapf
Version: 40RRb00L
Release: 00
Group: PSA/GTBPC
Source: psaBE_mmapf-40RRb00L.tar.gz
Copyright: LCMG
BuildRoot: %{_tmppath}/%{name}
%description
Linux version of mmap1f
#Linux version of GGSNFilter
%prep
rm -rf $RPM_BUILD_ROOT
%build
%install
#mkdir -p /export/home/psaadmin/scratch/manoj/tmp/psaBE_mmapf
#touch %{_tmppath}/%{name}/%{__bindir}/mmap1f
mkdir -p %{_tmppath}/%{name}/%{__bindir}
cp /vobs/PSA/3.4/program/filter/mmap1/Release.Linux/mmap1f %{_tmppath}/%{name}/%{__bindir}
#cp /vobs/PSA/3.2/PSA/ggsnPSAFilter/deliverable/ggsnPSAFilter %{_tmppath}/%{name}/%{__bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%define rpmattr %attr(0755, psaadmin, psa)
%files
%rpmattr %{__bindir}/mmap1f
-----------------------------------------------------
When I ran the command :
Linuxdev106-dashm]~/LinuxBuild/mmapf>rpmbuild -bb psaBE_mmapf_40RRb00L.spec
Executing(%prep): /bin/sh -e /home1/dashm/RPM/tmp/rpm-tmp.3064
+ umask 022
+ cd /home1/dashm/RPM/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home1/dashm/RPM/tmp/psaBE_mmapf
+ exit 0
Executing(%build): /bin/sh -e /home1/dashm/RPM/tmp/rpm-tmp.3064
+ umask 022
+ cd /home1/dashm/RPM/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /home1/dashm/RPM/tmp/rpm-tmp.3064
+ umask 022
+ cd /home1/dashm/RPM/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ mkdir -p /home1/dashm/RPM/tmp/psaBE_mmapf//usr/aethos/psa/current/bin
+ cp /vobs/PSA/3.4/program/filter/mmap1/Release.Linux/mmap1f /home1/dashm/RPM/tmp/psaBE_mmapf//usr/aethos/psa/current/bin
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: psaBE_mmapf-40RRb00L-00
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3.4) libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.3.2) librt.so.1 librt.so.1(GLIBC_2.2) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home1/dashm/RPM/tmp/psaBE_mmapf
Wrote: /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm
Executing(%clean): /bin/sh -e /home1/dashm/RPM/tmp/rpm-tmp.4948
+ umask 022
+ cd /home1/dashm/RPM/BUILD
+ rm -rf /home1/dashm/RPM/tmp/psaBE_mmapf
+ exit 0
[Linuxdev106-dashm]~/LinuxBuild/mmapf>vi psaBE_mmapf_40RRb00L.spec
[Linuxdev106-dashm]~/LinuxBuild/mmapf>ll /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm
-rw-r--r-- 1 dashm users 1049586 Aug 27 2007 /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm
[Linuxdev106-dashm]~/LinuxBuild/mmapf>ll /vobs/PSA/3.4/program/filter/mmap1/Release.Linux/mmap1f
-rwxr-xr-x 1 dashm users 14479792 Aug 27 13:55 /vobs/PSA/3.4/program/filter/mmap1/Release.Linux/mmap1f
[Linuxdev106-dashm]~/LinuxBuild/mmapf>rmp -Vf /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm
bash: rmp: command not found
[Linuxdev106-dashm]~/LinuxBuild/mmapf>rpm -Vf /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm
file /home1/dashm/RPM/RPMS/i386/psaBE_mmapf-40RRb00L-00.i386.rpm is not owned by any package
The issue is the output of this command .It shows the user name doesnt exist type of stuff.Like shown below:
[root@BL04BMSRV Round1]# rpm -ivh --nodeps /var/tmp/Round1/psa040L-RRb01-02.i386.rpm
Preparing... ########################################### [100%]
1
sa040L warning: user swarupa does not exist - using root
warning: user dashm does not exist - using root
########################################### [100%]
[root@BL04BMSRV Round1]# rpm -qa | grep psa
psacct-6.3.2-38.rhel4
psa040L-RRb01-02
[root@BL04BMSRV Round1]#
-----------------------------------------------------------------
Can Anyone help me out how to omitt this warning?