* Zvezdan Petkovic <[EMAIL PROTECTED]> [2001-08-16 19:59] wrote:
> On Thu, Aug 16, 2001 at 07:33:55PM +0200, Ronny Buchmann wrote:
> > the point is, that its not clear, which macros are supported in which
> > rpm version so maybe zvezdan's rpms dont compile on (older) suse imo
> > the spec files should be compatible with at least the last 6. versions
> > from suse and redhat if one has a testsystem with say suse 6.4 (redhat
> > has already rpm-4 in its updates for 6.2) i could make a test
> > spec-file to see what macros are working
> >  
> > -- 
> > ronny
> 
> That's why I said on that web page:
> 
>     "Hence, it should be usable on any RPM based Linux distribution (at
>     least those with rpm-4.x)."
> 
> As a sysadmin I regularly apply all Red Hat updates -- hence my 6.2
> systems run rpm-4.x. I'm sorry I couldn't test it with the older version
> of rpm. 
suse (and possibly others) uses still rpm-3.x
outside the US there seem to be much more distris in wide use
 
> I deal all the time with building RPMs, either for the special software
> we install and want to be able to controll it through rpm, or through
> fixing Red Hat RPMs (e.g. see Bugzilla #42352), or adapting RH RPMs to
> our systems (we need xlock to autologout a student after 30 minutes so
> nobody can abuse lab computers).
> 
> I always use macros and they work great. For example, I wanted to
> install software recently to /usr/local instead of /usr. The only thing
> I had to change in my SPEC file is three lines I added at the top:
> 
> %define _prefix /usr/local
you dont need this, use "Prefix: /usr/local" instead

> %define _mandir %{_prefix}/man
> %define _defaultdocdir %{_prefix}/doc
> 
> This is definitely _THE_ solution to our maintanance problems. With each
> new version of LyX only the version number must be changed, and it
> should build and install correctly on any rpm based distro.
the question is, which *internal* macros are supported
e.g. with rpm-4.x _datadir is already defined but i think this is introduced with rpm-4
mandrake introduced macros which are (were?) not supported in redhat (_icondir as far 
as i remember)

do you where these internal macros are defined? is this done in compile time?

-- 
ronny

Reply via email to