On Wed, Oct 06, 2004, David M. Fetter wrote: >How can I change the defattr with rpmtool? I'm currently doing this: > >%{l_rpmtool} files -v -ofiles -r${RPM_BUILD_ROOT} >'%defattr(-,opkg-n,opkg-n)' %{l_files_std} > >The results in the end when building the rpm are: > >+ /usr/local/lib/openpkg/rpmtool files -v -ofiles >-r/usr/local/RPM/USER/TMP/osiris-4.0.5-root '%defattr(-,opkg-n,opkg-n)' >'%defattr(-,opkg,opkg)' /usr/local '%not %dir >{/usr/local,/usr/local/*,/usr/local/etc/rc.d,/usr/local/man/*}' > >Note that there are two defattr entries defined. What's wrong here? Is >there another way I should be doing this?
I've handled this be redefining the macro l_files_defattr before calling rpmtool. ... %define l_files_defattr '%defattr(-,%{l_susr},%{l_sgrp})' %{l_rpmtool} files -v -ofiles ... Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Things in our country run in spite of government. Not by aid of it!'' Will Rogers ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]