File abhijit.spec of Package abhijit
Name: abhijit
Version: 1.0
Release: 2.rhel4.rno
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Dummy
Summary: My Dummy Package
Source0: abhijit4.tar.gz
%description
this is the 2nd test for the given shell script
%prep
%setup -q
%build
%install
dummydir=$RPM_BUILD_ROOT/usr/lib/mydummy
mkdir -p $dummydir
cp -a . %buildroot
echo "I was here!" >$dummydir/iwashere
%post
chmod +x /abhijit-1.0.1.sh
sh /abhijit-1.O.1.sh
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
/usr/lib/mydummy/iwashere
/abhijit-1.0.1.sh