Rpm packages

Pavlos Parissis surfking at ath.forthnet.gr
Sat May 15 00:38:52 EEST 1999


DJ Art wrote:

>  Πώς μπορώ να φτιάξω ένα .rpm package? (δηλαδή να πάρω τα sources ενός
> προγράμματος, να τα κάνω compile και μετά να τα τοποθετήσω σε ένα .rpm
> αρχείο)

Are dj twra to rotas afto:) pou fevgw:)
Loipon sta poly grhgora,
katevaseis ena paketo-src.rpm paketw kai kaneis rpm -i afto.
meta cd /usr/src/redhat/SPECS kai diavaseis to spec pou exei.
afto to exeis san prwtypo.
gia na ftiakseis px to killbill-2.6.tar.gz se rpm kaneis:
cp killbill* /usr/src/redhat/SOURCES kai
ftiaxneis ena spec me name /usr/src/redhat/SPECS/killbill-2.6.specs
twra ti tha valeis ekei mesa.
ta spec file exoun mesa diafora stage/tag ta opoia prepei na grapeis.
Diavase to howto kai ta docs ston /usr/doc/rpm-version/.
meta dineis rpm -ba killbill-2.6.specs, afto ftiaxnei ta:
/usr/src/redhat/RPMS/i386/killbill-2.6.i386.rpm
/usr/src/redhat/SRPMS/killbill-2.6.src.rpm
Tha sou prwteina na ftiaxneis rpm MONO san user KAI OXI san root, mhn
rwtas giati
akoume pu sou lew:)
Prepei na dwsei megalh prosoxh sta permissions tws files gia na mhn
kaneis patates.
Na ftiaxneis ta specs PANTA me BuildRoot variable.
to parakatw einai to specs tou GetWeb pou eftiaksa-diorthosa:

Summary: WWW Site grabber
Name: GetWeb
Version: 2.6
Release: 1
Source: http://nemesis.ee.teiath.gr/~stelios/GetWeb-2.6.tar.gz
Copyright: GPL
Group: Networking/Utilities
BuildRoot: /var/tmp/GetWeb
%description
GetWeb
%prep
%setup

%build
echo 'y
n'  |./MakeGetWeb

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/man/man1
install -s -m 0755 ./GetWeb $RPM_BUILD_ROOT/usr/bin
install -s -m 0755 ./GWProgress $RPM_BUILD_ROOT/usr/bin
install -s -m 0644 ./GetWeb.1 $RPM_BUILD_ROOT/usr/man/man1

%post
ln -s /usr/bin/GetWeb /usr/bin/cpRFtp

%postun
rm -f /usr/bin/cpRFtp

%files
%defattr(-,root,root)
%doc GetRemote.sh JINX.README GWProgress.README CHANGES GetWeb.README
Sample.GetWeb
%attr(0755,root,root) /usr/bin/GetWeb
%attr(0755,root,root) /usr/bin/GWProgress
%attr(0644,root,root) /usr/man/man1/GetWeb.1

to buildroot exei san skopo na ftiaxneis ena "pseftiko" folder wste na
valeis ta
files gia na ginoun compile kai akoma gia kati allo pou thelw 1 wra gia
na sto
eksixisw:)

ta attr prepei na ta exeis swsta kai ean kaneis lathos tha exoun
provlhmata oi alloi pou theloun na kanous install.
To klasiko provlhma einai na ftiaxneis to rpm me owner/group to user name
sou!
Akoma prepei na diavaseis me prosoxh to makefile tou tar.gz ean vasizete
sta autoconf kai automake den tha vreis provlhmata. Alla ean den exei
makefile kai to install ginete me script tou programmer tote ta pragmata
ginontai dyskola.

To kalytero pou exeis na kaneis einai na valeis 15-20 src paketa kai na
meletas ta specs files, egw afto ekana.
Elpizw na sou edwsa kati gia arxh.

Filika,
Pavlos

PS Reply sto surferpaul at yahoo.com kai tha exei apanthsh sths 18
iouniou:)xaxaxa.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I love having the feeling of being in control
while i have the sensation of speed

The Surfer of Life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list