From: Alexey Tourbin <at@altlinux.ru> To: devel@altlinux.ru Subject: [devel] rpm macros: %make_test? Date: Mon, 2 Jun 2003 15:47:00 +0400 Message-ID: <20030602114700.GA17336@solemn.turbinal.org> (raw) [-- Attachment #1.1: Type: text/plain, Size: 490 bytes --] Думал о том, как сделать сбрку пакетов более надежной, а сам процесс сборки -- боле дружественным (иногда мне приходся модифицировать скрипты в /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 [-- Attachment #1.2: perl5-alt-rpm-macros --] [-- Type: text/plain, Size: 1882 bytes --] # 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 <ldv@altlinux.org> 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 \ : running make \ %make_build OPTIMIZE="$RPM_OPT_FLAGS" \ %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 %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 </dev/null \ %{?!_enable_debug: \ : fixing \ find $RPM_BUILD_ROOT%perl_vendor_privlib \\\ -type f '(' -name '*.al' -o -name '*.ix' ')' \\\ -exec %__perl -ni -e \\\ '/^#/ and $fixed=1 or print; END{print STDERR "$ARGV: comments removed\n" if $fixed}' \\\ {} ';' \ : prompting for files that contain /usr/local \ find $RPM_BUILD_ROOT -type f -exec %__grep -H /usr/local {} ';' %perl_fix_local %__subst 's|/usr/local|/usr|g' [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2003-06-02 11:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030602114700.GA17336@solemn.turbinal.org \ --to=at@altlinux.ru \ --cc=devel@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git