LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems in creating a rpm package (https://www.linuxquestions.org/questions/linux-software-2/problems-in-creating-a-rpm-package-484551/)

gobi_dgm 09-18-2006 02:23 AM

problems in creating a rpm package
 
hi,
I'm trying to create an rpm package,the issue i face is that i get an rpm created but when i do a rpm -ivh of this package and then check if this is being installed by using rpm -qla < package_name>,i get a message that its not being installed.
I tried to back trace and check if the tar ball from the SOURCE dir is being untarred in the BUILD dir,but there is nothing in the BUILD dir.am I doing the right thing.pls help:confused:

this is my .spec file in SPECS dir

Summary:trial
Name:trial
Version:007
Release:1
Source0:%{name}-%{version}.tar.gz
License: trial
Group: root
Prefix:/tmp
%description
This is trial

%prep
%setup

%build
echo "in build"
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix}
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
make

"dc_rpm.spec" 31

gobi_dgm 09-18-2006 05:28 AM

guys have resolved it,was using rpmbuild -bs,now tried with -bb and its working :)


All times are GMT -5. The time now is 05:29 PM.