From rpm-list-admin@freshrpms.net  Wed Aug 14 11:00:34 2002
Return-Path: <rpm-zzzlist-admin@freshrpms.net>
Delivered-To: yyyy@localhost.netnoteinc.com
Received: from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 3261644148
	for <jm@localhost>; Wed, 14 Aug 2002 05:52:04 -0400 (EDT)
Received: from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Wed, 14 Aug 2002 10:52:04 +0100 (IST)
Received: from egwn.net (ns2.egwn.net [193.172.5.4]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7E9Js408293 for
    <jm-rpm@jmason.org>; Wed, 14 Aug 2002 10:19:54 +0100
Received: from auth02.nl.egwn.net (localhost [127.0.0.1]) by egwn.net
    (8.11.6/8.11.6/EGWN) with ESMTP id g7E9H1J23300; Wed, 14 Aug 2002 11:17:03
    +0200
Received: from python (gw01.es3.egwn.net [212.9.66.13]) (authenticated) by
    egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g7E9GcJ23205 for
    <rpm-list@freshrpms.net>; Wed, 14 Aug 2002 11:16:39 +0200
From: Matthias Saou <matthias@egwn.net>
To: rpm-zzzlist@freshrpms.net
Subject: Re: Problem with my spec file
Message-Id: <20020814111509.1d51dbca.matthias@egwn.net>
In-Reply-To: <001201c2435a$2e4051c0$6501a8c0@viper>
References: <001201c2435a$2e4051c0$6501a8c0@viper>
Organization: Electronic Group Interactive
X-Mailer: Sylpheed version 0.8.1claws (GTK+ 1.2.10; i386-redhat-linux)
Reply-BY: Tue, 24 Jul 2000 19:02:00 +1000
X-Operating-System: GNU/Linux power!
X-Message-Flag: Try using a real operating system : GNU/Linux power!
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailscanner: Found to be clean, Found to be clean
Sender: rpm-zzzlist-admin@freshrpms.net
Errors-To: rpm-zzzlist-admin@freshrpms.net
X-Beenthere: rpm-zzzlist@freshrpms.net
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: rpm-zzzlist@freshrpms.net
List-Help: <mailto:rpm-zzzlist-request@freshrpms.net?subject=help>
List-Post: <mailto:rpm-zzzlist@freshrpms.net>
List-Subscribe: <http://lists.freshrpms.net/mailman/listinfo/rpm-zzzlist>,
    <mailto:rpm-list-request@freshrpms.net?subject=subscribe>
List-Id: Freshrpms RPM discussion list <rpm-zzzlist.freshrpms.net>
List-Unsubscribe: <http://lists.freshrpms.net/mailman/listinfo/rpm-zzzlist>,
    <mailto:rpm-list-request@freshrpms.net?subject=unsubscribe>
List-Archive: <http://lists.freshrpms.net/pipermail/rpm-zzzlist/>
X-Original-Date: Wed, 14 Aug 2002 11:15:09 +0200
Date: Wed, 14 Aug 2002 11:15:09 +0200

Once upon a time, Victor wrote :

> Can someone tell me what I am doing wrong? it's like make doesn't take
> the PREFIX override... It's crazy. I don't get it...
> OS: TurboLinux6 rmp3.0.6 make 3.79.1
> 
> I just don't get this. It should work...
> 
[...]
> 
> %build
>    %{__perl} Makefile.PL LOCAL_RULES_DIR=/etc/spamassassin
> INSTALLDIRS=vendor PREFIX=%{_prefix}
>    make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
> %install
>    rm -rf $RPM_BUILD_ROOT
>    %makeinstall PREFIX=%{buildroot}%{_prefix} \
>                 INSTALLMAN1DIR=%{buildroot}%{_mandir}/man1 \
>                 INSTALLMAN3DIR=%{buildroot}%{_mandir}/man3 \
>                 LOCAL_RULES_DIR=%{buildroot}%{_sysconfdir}/spamassassin
[...]

Well, first you need to look at the Makefile.PL to see if it uses the
PREFIX you're trying to pass to it or not. Maybe you'll need to "override"
other paths when doing the "make".
Second, the "%makeinstall" macro automatically overrides many common values
like "prefix=" or "datadir=", so it's completely redundant with the
"PREFIX=" you're passing to it. Take a look at the "Makefile" you have at
that point to see how the "install" target is, and what it uses.

Last, as Chris suggested, you can take a look at an existing package, like
the one in Rawhide ;-)

Matthias

-- 
Matthias Saou                                World Trade Center
-------------                                Edificio Norte 4 Planta
System and Network Engineer                  08039 Barcelona, Spain
Electronic Group Interactive                 Phone : +34 936 00 23 23

_______________________________________________
RPM-List mailing list <RPM-List@freshrpms.net>
http://lists.freshrpms.net/mailman/listinfo/rpm-list