From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 2 Jun 2003 15:47:00 +0400 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20030602114700.GA17336@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="4SFOXa2GPu3tIq4H" Content-Disposition: inline Subject: [devel] rpm macros: %make_test? 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: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --4SFOXa2GPu3tIq4H Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline Content-Transfer-Encoding: 8bit --jRHKVT23PllUwdXP Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Думал о том, как сделать сбрку пакетов более надежной, а сам процесс сборки -- боле дружественным (иногда мне приходся модифицировать скрипты в /usr/lib/rpm, добавляя sh -x, чтобы понять, что именно происходит в среде сбрки). make_test: %make -ns test &>/dev/null ||: NOTE: tests not available && exit 0 %{?_without_test: : WARNING: tests disabled && exit 0} \ %{?_disable_test: : WARNING: tests disabled && exit 0} \ : running tests \ export LD_BIND_NOW=1 PERL_DL_NONLAZY=1 \ %make test --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=perl5-alt-rpm-macros # perl library paths %perl_vendor_privlib %(eval "`%__perl -V:installvendorlib`"; echo "$installvendorlib") %perl_vendor_archlib %(eval "`%__perl -V:installvendorarch`"; echo "$installvendorarch") %perl_vendor_autolib %perl_vendor_archlib/auto # mandirs %perl_vendor_man1dir %_man1dir %perl_vendor_man3dir %_man3dir # perl version/build-specific binary token (PreReq: %perl_binary_compat) # ALT RPM inserts this dependency automatically since # Fri Oct 25 2002 Dmitry V. Levin 4.0.4-alt9 %perl_binary_compat %(eval "`%__perl -V:libperl`"; echo "$libperl") # automate various rpmbuild stages %perl_vendor_build() \ %{?_without_smp:NPROCS=1; : NOTE: SMP-incompatible} \ %{?_disable_smp:NPROCS=1; : NOTE: SMP-incompatible} \ : writing Makefile \ %__perl Makefile.PL \\\ PREFIX=%prefix \\\ INSTALLDIRS=vendor \\\ %* \\\ /dev/null ||: NOTE: tests not available && exit 0 %{?_without_test: : WARNING: tests disabled && exit 0} \ %{?_disable_test: : WARNING: tests disabled && exit 0} \ : running tests \ export LD_BIND_NOW=1 PERL_DL_NONLAZY=1 \ %make test %perl_vendor_install() \ : installing \ %make_install \\\ PREFIX=$RPM_BUILD_ROOT%prefix \\\ INSTALLDIRS=vendor \\\ INSTALLMAN1DIR=$RPM_BUILD_ROOT%perl_vendor_man1dir \\\ INSTALLMAN3DIR=$RPM_BUILD_ROOT%perl_vendor_man3dir \\\ %* \\\ pure_install