On Sat, Jun 09, 2001 at 10:54:48AM +0800, -=warfab=- wrote:
> Just wanted to "personalized" mandrake rpms from tar.gziped files. I
> know that most tar.gz's have spec files for building rpms but they're
> too generic. 

In my experience, they're not generic at all, rather RH specific.

> Hate to downoad two source rpms (one latest 'generic' src
> rpm and one 'mandrake-specific' src rpm just to satisfy this. 

Source rpms are supposed to contain _pristine_ source files.  You
shouldn't need to download the source files if you already have the
source rpm.

> This just wastes too much prepaid online time for me.

If you're a cheapskate like me, use those www4mail servers to download.
I usually use my edsamail account to download using a www4mail server.
Absolutely free (not counting telco charges) downloading!  It's usually
limited to 6mb though.  For more info:
http://www.faqs.org/faqs/internet-services/access-via-email/

> Will take your advice and read more on the rpm man pages. Will also
> read more on the autospec man pages. Maybe I can find a way to
> 'capture' the build and install parts of your suggested arguments for
> rpm.

The build stage is usually just a simple:

%build
./configure
make

and install is usually:

%install
make DESTDIR=$RPM_BUILD_ROOT install
# or
make DESTDIR=$RPM_BUILD_ROOT install-strip

Note: The "DESTDIR" variable is not always used by the source Makefiles.
It may be totally different like "root" (apache) or not implemented at
all.

This applies for around 90% of the source files I've encountered.  You
probably also need to know how to read Makefiles.  It's also a good idea
to create rpm packages as normal user and _not_ root to be on the safe
side.

To be able to create rpm packages as a normal user:

$ echo "%_topdir  /home/user/rpm" > ~/.rpmmacros
$ cd ~/rpm
$ mkdir BUILD RPM SOURCES SPECS SRPMS
$ mkdir RPM/i386

User "user" should then be able to create rpm packages.

-- 
We may not return the affection of those who like us, but we always
respect their good judgement.


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to