LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2007, 01:43 PM   #1
theMayor
LQ Newbie
 
Registered: Mar 2005
Location: Denver, CO
Posts: 19

Rep: Reputation: 0
RPM Building woes ...


I apologize for posting if this is a duplicate issue and/or in the wrong place however I had a quick question regarding RPM building.

So, I've read quite a few articles on RPM building and still having issues!
http://www.rpm.org/RPM-HOWTO/build.html
http://perso.b2b2c.ca/sarrazip/dev/r...sh-course.html
http://www.rpm.org/max-rpm/s1-rpm-bu...-go-wrong.html

So this is beyond simple.... I'm just trying to create a directory right now.

As you can see from the install, i'm just trying to make a folder called hello_world.

The reason I'm so confused(and it could be because I don't' quite grasp the concept of making/building rpm's) is that it works fine when I do the build ...

rpmbuild -qa myspec.spec

It goes through the motions, deletes and creates all the files that I needed ...

so I delete the folder and run the rpm

rpm -i myspec.rpm

and it says it installs fine, I do a query through rpm and the package says it was installed. However, I go to see my directory and it's no where to be found!

I'm clueless and lost ... if anybody could provide some insight, it'd be greatly appreciated. Ultimately I will be using this to distribute a code base so I don't need any make installs(or at least I don't think I do).

My end goal is to unzip the source.tgz .... and copy that to a different location.

Any insight or help is greatly appreciated.

Summary: This is just a tester ...
Name: tester_tester
Version: 3.3.0
Release: 1
License: public
Source: sphere.tar.gz
BuildRoot: %{_tmppath}/tester-root
Group:System Environment/Base

%description
Code that is ready to be released.

%prep
%setup -c

%install
rm -rf $RPM_BUILD_ROOT

#Here is the directory I'd like to create!
mkdir /var/www/html/hello_world

%clean
rm -rf $RPM_BUILD_ROOT

%post

%files
%defattr(-,root,root)
 
Old 06-21-2007, 10:29 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
and it says it installs fine, I do a query through rpm and the package says it was installed. However, I go to see my directory and it's no where to be found!
Then let me suggest the possibility that it did indeed install, but not where you expected to find it.

Try it again, and when it's done, run (as root) updatedb (to rebuild the locatedb file). When it's done, run 'locate hello_world' (without quotes) to locate hello_world, whereever it may be.

It could be just an error in your .spec file putting it in the wrong place.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building rpm pvpnguyen Programming 4 11-23-2006 10:57 AM
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 10:36 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 04:29 PM
need help building rpm Hockeyfan Linux - Software 3 11-20-2004 05:15 AM
building rpm saleem Programming 1 11-12-2001 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:03 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