LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2004, 10:24 PM   #1
shivas
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Rpm Problem!


hello everyone,
i am creating a rpm for our software.

i have created a .spec file and here it follows ........

%define name dashboard
%define version 2.0.1
%define release 1mdk

Name: %{name}
Summary: Tools for converting websites from using GIFs to using PNGs
Version: %{version}
Release: %{release}
Source0: ftp://10.11.13.41/usr/src/redhat/SOURCES/%{name}-%{version}.tar.gz
Group: Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: MIT-like
Requires: python

%description
Antispam Dashboard Installation.

%prep
rm -rf $RPM_BUILD_DIR/dashboard-2.0.1

%setup

%build


%install


%files

%defattr(-,root,root,0755)


%changelog
* Mon Nov 02 1999 Camille Begnis <camille@mandrakesoft.com> 2.0.1-1mdk
- Upgraded to 2.0.1

* Mon Oct 25 1999 Camille Begnis <camille@mandrakesoft.com> 2.0.0-1mdk
- Specfile adaptations for Mandrake
- gz to bz2 compression


when i execute the above .spec file using the command rpmbuild -ba <filename>.spec

it gives me the following results:

Wrote: /usr/src/redhat/SRPMS/dashboard-2.0.1-1mdk.src.rpm
Wrote: /usr/src/redhat/RPMS/i586/dashboard-2.0.1-1mdk.i586.rpm
Wrote: /usr/src/redhat/RPMS/i586/dashboard-debuginfo-2.0.1-1mdk.i586.rpm

it does create a directory by the name of dashboard-2.0.1 in the /usr/src/redhat/BUILD
directory and in this directory, it untars all the files, but my problem is.....

that when i export this dashboard-2.0.1-1mdk.src.rpm binary rpm file to another red hat linux pc and execute it using rpm -ivh dashboard-2.0.1-1mdk.src.rpm command,
all it does is ,gives a message package is 100%, but it doesn't create the same directory
of 'dashboard-2.0.1' in the /usr/src/redhat/BUILD directory of that remote machine and therfore files are also not untarred there......why so.........?

i am confused and don't know as to how should i create an rpm which when installs on that
another pc, automatically creates a directory in the same manner and in the same location and also untars the files
as it was doing on the first machine(where i am running my .spec file)

as far as i can think of it's may be bcauz when i query my package using the command
rpm -qlp dashboard-2.0.1-1mdk.i586.rpm

it says....

contains no files

acc. to me now that may mean , that the files have not been put into the package,even
though the .rpm has been generated.

This again acc. to me may be due to my %file section in .spec file being empty.......

but i don't know how to create/put the files into package using the %file section, even if
this is the problem.....though i am not sure....

plz. help as i have been trying for many days now.......

my platform/distribution/kernel version are as under:

Distribution : Red Hat Linux

Kernel Version: 2.4.20-8


Thanks in anticipation
sd
 
Old 12-14-2004, 05:01 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
if you are creating a Redhat rpm how come it's named as being a Mandrake rpm? Take a look at the fedora developers guide for a guide on how to create Fedora/Redhat rpms.
 
Old 12-15-2004, 01:02 AM   #3
shivas
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks

Thanks, for the reply buddy, though that problem was
solved....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm problem juanb Linux - Newbie 2 01-26-2004 08:48 PM
RPM Problem chrisknight Linux - Software 4 07-07-2003 02:30 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
rpm problem katana *BSD 2 08-07-2002 06:17 AM
RPM Problem PeterC1 Linux - Newbie 0 09-13-2001 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration