From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 3 Aug 2007 13:34:25 +0400 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20070803093425.GV7938@solemn.turbinal> Mail-Followup-To: devel@lists.altlinux.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GGxZz/e2pmGePzrA" Content-Disposition: inline Subject: [devel] rpm-build-mono configlist 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, 03 Aug 2007 09:34:29 -0000 Archived-At: List-Archive: List-Post: --GGxZz/e2pmGePzrA Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =E7=CF=D3=D0=CF=C4=C1, =D7=CF=D4 =DC=D4=CF=D4 =CB=D5=D3=CF=CB =CB=CF=C4=C1 = =D1 =CE=C5 =D0=CF=CE=D1=CC =C9 =D3=CF=C2=C9=D2=C1=C0=D3=D8 =C5=C7=CF =D5=C2= =C9=D4=D8. =F0=CF-=CD=CF=C5=CD=D5, =CF=CE =D0=D2=CF=D3=D4=CF =CE=C5 =D2=C1=C2=CF=D4=C1= =C5=D4, =C1 =C4=CF=C2=C1=D7=CC=D1=D4=D8 2>/dev/null =C4=C5=CC=CF =CE=C5 =C8= =C9=D4=D2=CF=C5. $ rpm -ql mono |fgrep .config |xargs monodis --assemblyref Error while trying to process /etc/mono/1.0/machine.config Error while trying to process /etc/mono/2.0/machine.config Error while trying to process /etc/mono/2.0/web.config $=20 =F4=C5=CD =C2=CF=CC=C5=C5 =D7 changelog'=C5 =DC=D4=CF =C9=DA=CD=C5=CE=C5=CE= =C9=C5 =CE=C5 =CF=D4=D2=C1=D6=C5=CE=CF. =E5=D3=CC=C9 =CB=D4=CF-=D4=CF =DA=CE=C1=C5=D4, =D7 =DE=C5=CD =DA=C4=C5=D3= =D8 =C4=C5=CC=CF, =D0=D2=CF=DB=D5 =CD=CE=C5 =D3=CF=CF=C2=DD=C9=D4=D8. commit 6eb70398d8ba1426b8d878e798477449728d2fa1 Author: Ildar Mulyukov Date: Mon Oct 9 05:31:51 2006 +0000 1.0-alt2 =20 - fixed rpm-build-mono.macros diff --git a/mono.req b/mono.req index 71b245f..4814c31 100644 --- a/mono.req +++ b/mono.req @@ -14,6 +14,7 @@ IFS=3D$'\n' filelist=3D($(grep -Ev '/usr/doc/|/usr/share/doc/')) monolist=3D($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$")) +configlist=3D($(printf "%s\n" "${filelist[@]}" | egrep "\\.config\$")) =20 # If monodis is in the package being installed, use that one # This is to support building mono @@ -54,6 +55,28 @@ REQUIRES=3D$( } ') 2> /dev/null done + for i in "${configlist[@]}"; do + ($monodis --assemblyref $i | awk ' + BEGIN { START=3D0; LIBNAME=3D""; } + (START=3D=3D0) && /^[0-9]+: Version=3D/ { + START=3D1; + sub(/Version=3D/, "", $2); + VERSION=3D$2 + } + + (START=3D=3D1) && /^\tName=3D/ { + sub(/Name=3D/, "", $1); + LIBNAME=3D$1 + # Allow rpm deps to be resolved for 1.0 profile version + if (VERSION=3D=3D"1.0.3300.0") + OP=3D">=3D" + else + OP=3D"=3D" + print "mono(" LIBNAME ") " OP " " VERSION + START=3D0 + } + ') 2> /dev/null + done ) =20 PROVIDES=3D$( diff --git a/rpm-build-mono.macros b/rpm-build-mono.macros index 86a43c2..7ad9972 100644 --- a/rpm-build-mono.macros +++ b/rpm-build-mono.macros @@ -1,2 +1,2 @@ -%_monodir %_libdir/mono +%_monodir %_prefix/lib/mono %_monogacdir %_monodir/gac diff --git a/rpm-build-mono.spec b/rpm-build-mono.spec index 7957cfb..91d98ed 100644 --- a/rpm-build-mono.spec +++ b/rpm-build-mono.spec @@ -1,6 +1,8 @@ +# TODO mono.req detect *so* deps from *.config + Name: rpm-build-mono Version: 1.0 -Release: alt1 +Release: alt2 =20 Summary: RPM helper macros and dependency utils to build Mono packages Group: Development/Other @@ -31,5 +33,8 @@ RPM packages containing Mono bytecode archives etc. %_libdir/rpm/* =20 %changelog +* Mon Oct 09 2006 Ildar Mulyukov 1.0-alt2 +- fixed rpm-build-mono.macros + * Thu Oct 05 2006 Ildar Mulyukov 1.0-alt1 - Initial release --GGxZz/e2pmGePzrA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGsvahfBKgtDjnu0YRAtsIAJ0ShzxrStSN1dSctqZs31NwwEkTJACdGtf6 iPmVpVcjDTA5FNRnjo8EFQU= =OFEk -----END PGP SIGNATURE----- --GGxZz/e2pmGePzrA--