# The Summary: line should be expanded to about here -----^
Name: anduttsoft
Version: 1.0
Release: 4
Group: System Environment/Base
License: GPL
Source: anduttsoft-%{version}-%{release}-bin.tar.gz
#NoSource: 0
BuildRoot: /home/rpmbuild/BUILD/%{name}-root
# Following are optional fields
#URL:
http://www.example.net/anduttsoft/
#Distribution: Red Hat Contrib-Net
#Patch: anduttsoft-%{version}.patch
#Prefix: /.
BuildArch: noarch
#Requires:
Conflicts: anduttsoft < 1.0-4
#Obsoletes:
#BuildRequires:
%descri
ption
anduttsoft Software version 1.0
%prep
%setup -c 'anduttsoft-%{version}'
#%patch
%install
%__cp -a . "${RPM_BUILD_ROOT-/}"
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && chmod -R 777 "$RPM_BUILD_ROOT" && rm -rf "$RPM_BUILD_ROOT"
%pre
echo "Checking if all anduttsoft needs are installed"
if [ ! -f /tmp/anduttsoft.needed ]
then
echo "ERROR needed file dont exist"
exit 1
fi
%post
echo "Registering anduttsoft in runlevel 3 and 5"
chkconfig --add anduttsoft
chkconfig --level 35 anduttsoft on
%files
%defattr(-,root,root)
%dir /./
%dir /./opt/
%dir /./opt/scri
pts/
%dir /./opt/scri
pts/anduttsoft/
%defattr(0755,root,root) /opt/scri
pts/anduttsoft/anduttdiscover
%dir /./opt/scri
pts/anduttsoft/etc/
%config /./opt/anduttsoft/etc/help
%changelog
* Mon Jul 07 2004 root
- Initial created by andutt