Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating a rpm

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  plz bear w me, new to RPMS ARCH ques  
Author Message
Sebastian Scholz

External


Since: Jul 24, 2003
Posts: 5



(Msg. 1) Posted: Tue Nov 18, 2003 8:38 am
Post subject: Creating a rpm
Archived from groups: linux>redhat>rpm, others (more info?)

Hi,

I like to create a rpm to use the advantage of the versioncheck and package
dependencies. The software I like to install with the rpm does not have to
be compiled. Actually I just want to pack just a few files togeather. I
created that spec file but nothing happends, not even an error message. rpm
just gives me the help parameters again.

I use "rpm -bb SPECS/test.spec" and the file is located under
/usr/src/packages/SPECS/ :

--------------------------------
---- test.spec ------------------
Summary: Test RPM.
Name: TEST
Version: 1.0.2
Release: 3
Vendor: TESTCompany
Requires: testpackage >=1.0.1


%description
A test rpm.

%define INSTALL_DIR /usr/teststuff

%prep

%install
echo Install Test Test


%clean
rm -rf $RPM_BUILD_ROOT

%files
/usr/testdir
/usr/testfile

%changelog
* Tue Nov 18 2003 test <test.RemoveThis@test.com>
- test (release 3)

--------------------------------

Hope someone can give me a hint whats wrong.

Sebastian
Back to top
Login to vote
Jacob Heider

External


Since: Mar 11, 2004
Posts: 163



(Msg. 2) Posted: Tue Nov 18, 2003 2:30 pm
Post subject: Re: Creating a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:

> Hi,
>
> I like to create a rpm to use the advantage of the versioncheck and
> package
> dependencies. The software I like to install with the rpm does not have to
> be compiled. Actually I just want to pack just a few files togeather. I
> created that spec file but nothing happends, not even an error message.
> rpm just gives me the help parameters again.
>
> I use "rpm -bb SPECS/test.spec" and the file is located under
> /usr/src/packages/SPECS/ :
>

use

rpmbuild -bb SPECS/test.spec

Jacob
Back to top
Login to vote
Sebastian Scholz

External


Since: Jul 24, 2003
Posts: 5



(Msg. 3) Posted: Wed Nov 19, 2003 3:51 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks alot I will try that.

But why do all the HOWTOs like this one :
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/RPM-HO
WTO.html#SPEC-FILE

say I should do that :
rpm -ba foobar-1.0.spec
Sebastian



"Jacob Heider" <lord-jacob.RemoveThis@comcast.net> schrieb im Newsbeitrag
news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>
> > Hi,
> >
> > I like to create a rpm to use the advantage of the versioncheck and
> > package
> > dependencies. The software I like to install with the rpm does not have
to
> > be compiled. Actually I just want to pack just a few files togeather. I
> > created that spec file but nothing happends, not even an error message.
> > rpm just gives me the help parameters again.
> >
> > I use "rpm -bb SPECS/test.spec" and the file is located under
> > /usr/src/packages/SPECS/ :
> >
>
> use
>
> rpmbuild -bb SPECS/test.spec
>
> Jacob
Back to top
Login to vote
Sebastian Scholz

External


Since: Jul 24, 2003
Posts: 5



(Msg. 4) Posted: Wed Nov 19, 2003 8:07 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok, that works so far. Now I have 2 new problems. 1st when I use rpm -i
package.rpm it will install but I cant find the files anywhere. And 2nd when
I try to use rpm -e package.rpm it tells me that the package is not
installed, but says package already installed when I use rpm -i package.rpm
again.

Any idea ?

Thanks, Sebastian


"Jacob Heider" <lord-jacob.RemoveThis@comcast.net> schrieb im Newsbeitrag
news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>
> > Hi,
> >
> > I like to create a rpm to use the advantage of the versioncheck and
> > package
> > dependencies. The software I like to install with the rpm does not have
to
> > be compiled. Actually I just want to pack just a few files togeather. I
> > created that spec file but nothing happends, not even an error message.
> > rpm just gives me the help parameters again.
> >
> > I use "rpm -bb SPECS/test.spec" and the file is located under
> > /usr/src/packages/SPECS/ :
> >
>
> use
>
> rpmbuild -bb SPECS/test.spec
>
> Jacob
Back to top
Login to vote
Jacob Heider

External


Since: Mar 11, 2004
Posts: 163



(Msg. 5) Posted: Wed Nov 19, 2003 9:32 pm
Post subject: Re: Creating a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 19 Nov 2003 14:07:52 +0100, Sebastian Scholz wrote:


<top posting corrected>

> "Jacob Heider" <lord-jacob.TakeThisOut@comcast.net> schrieb im Newsbeitrag
> news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
>> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>>
>> > Hi,
>> >
>> > I like to create a rpm to use the advantage of the versioncheck and
>> > package
>> > dependencies. The software I like to install with the rpm does not
>> > have
> to
>> > be compiled. Actually I just want to pack just a few files togeather.
>> > I created that spec file but nothing happends, not even an error
>> > message. rpm just gives me the help parameters again.
>> >
>> > I use "rpm -bb SPECS/test.spec" and the file is located under
>> > /usr/src/packages/SPECS/ :
>> >
>> >
>> use
>>
>> rpmbuild -bb SPECS/test.spec
>>
>> Jacob
>
> Ok, that works so far. Now I have 2 new problems. 1st when I use rpm -i
> package.rpm it will install but I cant find the files anywhere. And 2nd
> when I try to use rpm -e package.rpm it tells me that the package is not
> installed, but says package already installed when I use rpm -i
> package.rpm again.
>
> Any idea ?
>
> Thanks, Sebastian
>

Sure, try

rpm -q package
rpm -ql package
and
rpm -e package
to delete

(things like -e and -q take the package w/o the .rpm)

Jacob
Back to top
Login to vote
Sebastian Scholz

External


Since: Jul 24, 2003
Posts: 5



(Msg. 6) Posted: Thu Nov 20, 2003 3:37 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks again Jacob. The only problem left with the "rpm -e package" is that
I was somehow able to install the package twice and it tells me that the
package name shows more then one package.

There is one more prblem with the rpm itself. I try to install it which
works fine but the files I added in the SPEC file (see the first posting)
are nowhere seen.

Hope you can give me a hint here aswell Wink

Sebastian

> Sure, try
>
> rpm -q package
> rpm -ql package
> and
> rpm -e package
> to delete
>
> (things like -e and -q take the package w/o the .rpm)
>
> Jacob
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Help creating RPM - Hi I currently try to create a RPM package myself and its works so far. The installation itself seems to work too, bu...

Need help with creating Tidy rpm - hi I am trying to create Tidy RPM on Fedora Core 4.0. 1. Downloaded tidy from..

[XPOST!]Creating a kernel RPM after patching - Hi there, with the upcoming Fedora Core 2 I will have to use the 2.6 kernel. I use eciadsl drivers to connect to..

Creating rpm files with non-stripped binaries - Hi, How can I tweak Fedora Core 3 to build rpm-files from SRPMs where the binaries are not "strip"ped? I hav...

Where to find php-4.3.0 or above for RH 8.0? - I have been searching for the referenced php rpm for RH 8 and the latest I could find was 4.2.2.17 which is a long way....

cd & dvd nero burning for RedHat8.0 - Hello, Is there an alternative burning programm available for rh8.0 which is looking and working the same as the well....
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]