[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Could not get rpm to install
- From: "Tahir Saleh" <tahirsaleh hotmail com>
- To: rpm-list redhat com
- Subject: Could not get rpm to install
- Date: Fri, 09 Feb 2007 16:19:00 +0500
thankyou mathew for ur help.
But i still could not get rpm to run.
Ive been trying to generate aRPM through the spec file and havent been
successful.
Instead of putting the files sbull.c,Makefile,GPL,sbull-1.1 in a directory
than taring it ive tared thaem directly with the command tar -cf
sbull-1.1.tar * rather than doing tar -cf sbull-1.1.tar sbull-1.1.
This is the error i encounter:
File not found by glob:var/tmp/sbull-1.1/usr/src/redhat/BUILD/sbull-1.1/*
this error comes while running the install section.
The spec file is attached.
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
%define pkg sbull
%define ver 1.1
%define install_path opt/tahir2/
Summary: A simple ramdisk.
Name: Sbull
Version: 1.1
Release: 1
URL:
Copyright: License
Group: System Environment/kernel
Source: sbull-1.1.tar.gz
Patch:
BUILDROOT:%{_tmppath}/%{pkg}-%{ver}
Prefix: usr/src/redhat/BUILD/%{pkg}-%{ver}
Packager: Muhammad Tahir Saleh <tahirsaleh hotmail com>
%description
It is a kernel based cache management system, programs a ram in such a way
that the ram provides faster acces to memory.
%prep
%setup -c
%build
#cd /usr/src/redhat/BUILD/Sbull-1.1/sbull-1.1
#make clean
make
#insmod sbull.ko
#rmmod sbull.ko
%install
#rm -rf $RPM_BUILD_ROOT
#cd /usr/src/redhat/BUILD/Sbull-1.1/sbull-1.1
#install -D sbull.ko ${RPM_BUILD_ROOT}/usr/bin/sbull
#install -D sbull.1 ${RPM_BUILD_ROOT}/usr/share/man/man1/sbull.1
#install -D GPL ${RPM_BUILD_ROOT}/usr/share/docs/sbull-1.1/GPL
#cd /usr/src/redhat/BUILD/Sbull-1.1
#cp -a sbull-1.1 /opt/
#rpm -ivv --prefix /opt/sbull-1.1/sbull.c sbull-1.1-1.i386.rpm
%files
%dir /usr/src/redhat/BUILD/%{pkg}-%{ver}/*
%defattr(-,root,root)
%clean
cd /usr/src/redhat/BUILD
rm -rf %{pkg}-%{ver}
%post
mkdir /%{install_path}
cd /usr/src/redhat/BUILD
cp -a %{pkg}-%{ver} /%{install_path}
cd /usr/src/redhat/BUILD
rm -rf %{pkg}-%{ver}
%changelog
* Sat Jan 27 2007 Muhammad Tahir Saleh<tahirsaleh hotmail com>
Created RPM spec file
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]