RPM erzeugen

Software besorgen und anwenden
Post Reply
Message
Author
Jonboy
Posts: 57
Joined: 29. Oct 2005 20:07

RPM erzeugen

#1 Post by Jonboy »

Hi!

Da ich in der Suche nichts fand mach ich mal nen neuen Tread auf.

Wie kann ich RPMs selbst erzeugen? Bei installationen ohne RPM fühl ich mich nich immer besonders wohl und wenn ich zB Firefox updaten will gibts da kein RPM für.. wie kann man sowas selbst erzeugen?

Danke im Vorraus

Jonboy

Alex.MH

#2 Post by Alex.MH »


Jonboy
Posts: 57
Joined: 29. Oct 2005 20:07

#3 Post by Jonboy »

Danke aber damit kann ich so nix anfangen :?

Alex.MH

#4 Post by Alex.MH »

An was scheitert es denn? Wenn dir diese Anleitung zu kompliziert ist, dann fuerchte ich, dass du dir erst noch ein paar Grundlagen aneignen musst. Das hat aber dann mit dem erstellen eines RPMs nichts zu tun.

Wo genau hast du denn ein Problem?

Gruss,
Alex

Jonboy
Posts: 57
Joined: 29. Oct 2005 20:07

#5 Post by Jonboy »

Building RPMs is fairly easy to do, especially if you can get the software you are trying to package to build on its own. We assume here that you know how to build software from source. If you don't you probably shouldn't be starting with this document.

+++okay

The basic procedure to build an RPM is as follows:

*

Get the source code you are building the RPM for to build on your system.
*

+++ Kein Thema

Make a patch of any changes you had to make to the sources to get them to build properly.
*

Für Standartsoftware?

Make a spec file for the package.
*
+++ Was für ein spezifisches?

Make sure everything is in its proper place.
*
+++ Dat krieg ich hin

Build the package using RPM.

und wie mach ich das? Brauch ich da ein Tool für is das in der Komandozeile bereits drinn?

Alex.MH

#6 Post by Alex.MH »

Hi,
Make a patch of any changes you had to make to the sources to get them to build properly.
*
Für Standartsoftware?
Nein, fuer Standardsoftware ist das nicht noetig. Wenn du nichts patchen musstest, dann kannst du den Punkt ueberspringen.
Make a spec file for the package.
*
+++ Was für ein spezifisches?
Ein Beispiel fuer ein Spec-File findest du auf der obigen Seite unter 6.1 im grauen Kasten. Dieses Beispiel ist extra nicht fuer Standardsoftware gemacht, damit der User sieht was alles moeglich ist. Ein Beispiel fuer Standardsoftware waere zu einfach.

Im Prinzip kannst du das Spec-File als Vorlage nehmen und deine Befehle reinschreiben. Wenn du also ein Programm hast, welches du mit "configure && make && make install" installieren kannst, dann traegst du diese Befehle in den entsprechenden Abschnitt ein.

Das sieht dann ungefaehr so aus:
---SCHNIPP---
%prep
./configure

%build
make

%install
make install

%clean
rm -rf $RPM_BUILD_ROOT
---SCHNAPP---
Du musst natuerlich noch den Teil ueber SCHNIPP und den unter SCHNAPP mit deinen Werten auffuellen. Also ueber SCHNIPP kommt die allgemeine Programmbeschreibung und unter SCHNAPP noch die Auflistung der Dateien, die installiert werden. Ist alles weiter unten auf der Seite genau erklaert.

Gruss,
Alex


Post Reply