From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 6 Jul 2007 20:13:44 +0300 From: Michael Shigorin To: ALT Devel discussion list Message-ID: <20070706171344.GB17580@osdn.org.ua> Mail-Followup-To: ALT Devel discussion list References: <20070706102603.8895919FC005@ssh.git.local.altlinux.org> <75e139a00707060329m5b932ca3rd8c081af7619bce6@mail.gmail.com> <468E1A32.8020408@altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <468E1A32.8020408@altlinux.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [devel] [git update] packages/fedora-ds-console: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2007 17:10:02 -0000 Archived-At: List-Archive: List-Post: --FCuugMFkClbJLl1L Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Jul 06, 2007 at 02:32:18PM +0400, Vitaly Kuznetsov wrote: > > Предлагаю использовать макросы: > > /usr/bin -> %_bindir > > /usr/share/java -> %_javadir > Ну ей ещё в Сизиф рановато так что пока спек нечищен. Кажется, rpmcs из etersoft-build-utils сделает автоматом. > Сразу встречный вопрос - а где взять полный список макросов? /usr/lib/rpm/ PS: на всякий цепляю опять ещё один скриптик. -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --FCuugMFkClbJLl1L Content-Type: application/x-sh Content-Disposition: attachment; filename="un__.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh=0A# a script to clean up RPM %__macro abuse =0A# (those are actua= lly rpm's _internal_ macros, =0A# not intended for direct usage in specs an= d=0A# in fact cluttering them up without any bonus)=0A# 2006 by Michael Shi= gorin =0A# use freely=0A=0Afatal()=0A{=0A echo "$0: $*" = >&2=0A exit 1=0A}=0A=0A[ -s "$1" ] || fatal "gimme a spec!"=0A=0Agrep -q '^= [^#]*%__' "$1" || exit 2=0A=0ATMPSPEC=3D`mktemp $1.XXXXXX` || fatal "unable= to create temporary file"=0A=0Ased \=0A -e 's@%__awk@gawk@g' \=0A -e 's@%_= _bzip2@bzip2@g' \=0A -e 's@%__cat@cat@g' \=0A -e 's@%__chgrp@chgrp@g' \=0A = -e 's@%__chmod@chmod@g' \=0A -e 's@%__chown@chown@g' \=0A -e 's@%__cp@cp@g'= \=0A -e 's@%__cpio@cpio@g' \=0A -e 's@%__file@file@g' \=0A -e 's@%__gpg@gp= g@g' \=0A -e 's@%__grep@grep@g' \=0A -e 's@%__gzip@gzip@g' \=0A -e 's@%__id= @id@g' \=0A -e 's@%__install@install@g' \=0A -e 's@%__install_info@install-= info@g' \=0A -e 's@%__ln_s@ln -s@g' \=0A -e 's@%__make@make@g' \=0A -e 's@%= __mkdir_p@mkdir -p@g' \=0A -e 's@%__mkdir@mkdir@g' \=0A -e 's@%__mv@mv@g' \= =0A -e 's@%__patch@patch@g' \=0A -e 's@%__perl@perl@g' \=0A -e 's@%__pgp@pg= p@g' \=0A -e 's@%__python@python@g' \=0A -e 's@%__rm@rm@g' \=0A -e 's@%__rs= h@rsh@g' \=0A -e 's@%__sed@sed@g' \=0A -e 's@%__ssh@ssh@g' \=0A -e 's@%__su= bst@sed -i@g' \=0A -e 's@%__tar@tar@g' \=0A -e 's@%__unzip@unzip@g' \=0A -e= 's@%__ar@ar@g' \=0A -e 's@%__as@as@g' \=0A -e 's@%__cc@gcc@g' \=0A -e 's@%= __cpp@gcc -E@g' \=0A -e 's@%__cxx@g++@g' \=0A -e 's@%__ld@ld@g' \=0A -e 's@= %__nm@nm@g' \=0A -e 's@%__objcopy@objcopy@g' \=0A -e 's@%__objdump@objdump@= g' \=0A -e 's@%__ranlib@ranlib@g' \=0A -e 's@%__strip@strip@g' \=0A -e 's@%= __libtoolize@libtoolize@g' \=0A -e 's@%__aclocal@aclocal@g' \=0A -e 's@%__a= utoheader@autoheader@g' \=0A -e 's@%__automake@automake@g' \=0A -e 's@%__au= toconf@autoconf@g' \=0A < "$1" > "$TMPSPEC" \=0A&& add_changelog -e '- spec= macro abuse cleanup' "$TMPSPEC" \=0A&& mv "$1" "$1.bak" \=0A&& mv "$TMPSPE= C" "$1"=0A#echo "please inspect $TMPSPEC for cleaned up version" =0A=0A# ch= angelog=0A# 2006-12-16: initial release=0A# 2006-12-18: minor fixes:=0A# = + %__mkdir was replaced before %__mkdir_p=0A# + %__su= bst is now replaced with sed -i (tnx wrar@)=0A --FCuugMFkClbJLl1L--