From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 13 Jun 2003 08:22:51 +0400 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20030613042251.GD31171@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="8w3uRX/HFJGApMzv" Content-Disposition: inline Subject: [devel] Fwd: rpm macros tmp.spec Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: ALT Devel discussion list List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --8w3uRX/HFJGApMzv Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Господа, может кто-нибудь знает, в чем тут дело? ----- Forwarded message from Alexey Tourbin ----- Date: Sat, 24 May 2003 09:34:02 +0400 From: Alexey Tourbin Subject: rpm macros tmp.spec To: "Dmitry V. Levin" Привет, Кажется, я плохо понимаю, как работают макросы в RPM. В данном случае мне кажется, что они должны работать, но они не работают. Где я ошибаюсь? > $ rpm -bc tmp.spec > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.93192 > + umask 022 > + /bin/mkdir -p /home/at/RPM/BUILD > + cd /home/at/RPM/BUILD > + : perl_arch = i386 > + : perl_arch_os = i386-linux > + : binary_compat_versions = 5.8.0 > + : binary_inc_version_list = 5.8.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Должно быть то же самое, что и на следующей строчке. > + : binary_inc_version_list CAST = 5.8.0/i386-linux > + exit 0 > $ Name: sucks Version: 0 Release: 0 Summary: really %name Group: the one that %name License: also %name %ifarch %ix86 %define perl_arch i386 %else %define perl_arch %_arch %endif %define perl_arch_os %perl_arch-%_os %define binary_compat_versions 5.8.0 %define binary_inc_version_list %(echo %binary_compat_versions | sed 's!\([0-9.]\+\)!\1/%perl_arch_os!g') %description It's about things that %name. %build : perl_arch = %perl_arch : perl_arch_os = %perl_arch_os : binary_compat_versions = %binary_compat_versions : binary_inc_version_list = %binary_inc_version_list : binary_inc_version_list CAST = %(echo %binary_compat_versions | sed 's!\([0-9.]\+\)!\1/%perl_arch_os!g') ----- End forwarded message ----- --8w3uRX/HFJGApMzv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+6VGbfBKgtDjnu0YRAra2AKCcaGKsuID27vETLk2Ihd3yl6uxewCgnf4L LKFWOrWWk1QOTcybAnkGcbQ= =hzHz -----END PGP SIGNATURE----- --8w3uRX/HFJGApMzv--