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. 

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
%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.

Regards,
-- 
Zvezdan Petkovic <[EMAIL PROTECTED]>
http://www.cs.wm.edu/~zvezdan/

Reply via email to