You could define it as a build time determined macro:

%define initrddir %([ -d /etc/init.d ] && echo /etc/init.d || echo /etc/rc.d/init.d)

...

%files
%{initrddir}/caudium

Matt

On Sat, Aug 19, 2000 at 12:56:37AM -0400, Mike A. Harris wrote:
> Instead of this mess:
> 
> %config
> %attr(0755, root, root) /etc/rc.d/init.d/caudium
> # For Red Hat 7.x
> #%attr(0755, root, root) /etc/init.d/caudium
> 
> 
> What is a universal way of doing the same?
> 
> %attr(0755, root, root) %{_initscripts}/caudium
> 
> Just trying to make packages low maintenance..
> 
> TTYL
> 
> 
> -- 
> Mike A. Harris                                     Linux advocate     
> Computer Consultant                                  GNU advocate  
> Capslock Consulting                          Open Source advocate
> 
>        Try out Red Hat Linux today:  http://www.redhat.com
>            ftp://ftp.redhat.com/pub/redhat/redhat-6.2/
> 
> 
> 
> 
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to