From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 26 May 2004 03:21:38 +0400 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20040525232138.GA19515@solemn.turbinal.org> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline Subject: [devel] %NotRequires/%NotProvides RPM macros X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 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: Tue, 25 May 2004 23:22:21 -0000 Archived-At: List-Archive: List-Post: --QTprm0S8XgL7H0Dt Content-Type: multipart/mixed; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline --azLHFNyN32YCQGCU Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable %NotRequires() %global __find_requires /usr/lib/rpm/filter.sh `echo "%*"` -= - %__find_requires=20 %NotProvides() %global __find_provides /usr/lib/rpm/filter.sh `echo "%*"` -= - %__find_provides=20 =F0=D2=C9=CD=C5=D2=D9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CE=C9=D1: %NotRequires perl(warnings.pm) libz.so.1 %NotProvides perl(PerlIO/gzip.pm) =EB=C1=CB=C9=C5 =C2=D5=C4=D5=D4 =CD=CE=C5=CE=C9=D1? --azLHFNyN32YCQGCU Content-Type: application/x-sh Content-Disposition: attachment; filename="filter.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh -e=0A=0Awhile :; do=0A case "$1" in=0A --) shift; break=0A ;;= =0A *) patterns=3D"$1=0A$patterns"=0A shift=0A ;;=0A esac=0Adone=0A=0As= trings=3D`"$@"`=0A=0Aecho "$strings" | while read string; do=0A if [ -z "$s= tring" ]; then=0A continue=0A fi=0A echo "$patterns" | {=0A match=3D =0A = while read pattern; do=0A if [ -z "$pattern" ]; then=0A continue=0A = fi=0A if [ -z "${string##$pattern}" ]; then=0A match=3D1=0A break= =0A fi=0A if [ -z "${string##$pattern *}" ]; then=0A match=3D1=0A = break=0A fi=0A done=0A if [ -z "$match" ]; then=0A echo "$string"=0A= fi=0A }=0Adone=0A --azLHFNyN32YCQGCU-- --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAs9UCfBKgtDjnu0YRApSzAJ9rwl4raPK1p3IfMJoUpzz8/R/dlACZAaOK arN18aYSuPzmI2IFWOQhV8U= =qSA6 -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--