Stefan van der Eijk <[EMAIL PROTECTED]> writes:

> OK. This is what the .spec file of cvs.spec looks like
> after applying Chmouel's script + restoring the changelog
> section.
> 
> Is this the way it's supposed to be? Or should we also make
> /etc look like %{_sysconfdir} ?

yes.

> 
> These are the macro's from /usr/lib/rpm/macro's that we're
> talking about, right?

yep

> # ---- configure macros.

and better :

while (<>) {
    s@[/]?(usr|%{[_]?prefix})/bin@%{_bindir}@g;
    s@[/]?(usr|%{[_]?prefix})/man@%{_mandir}@g;
    s@[/]?(usr|%{[_]?prefix})/sbin@%{_sbindir}@g;
    s@[/]?(usr|%{[_]?prefix})/etc@%{_sysconfdir}@g;
    s@[/]?(usr|%{[_]?prefix})/lib@%{_libdir}@g;
    s@[/]?(usr|%{[_]?prefix})/share@%{_datadir}@g;
    s@[/]?(usr|%{[_]?prefix})/include@%{_includedir}@g;
    s@[/]?(usr|%{[_]?prefix})/info@%{_infodir}@g;
    s@/etc@%{_sysconfdir}@;
    s@/usr@%{prefix}@;
   print;
}

-- 
MandrakeSoft Inc                http://www.mandrakesoft.com
San-Francisco, CA USA                             --Chmouel

Reply via email to