ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: "Денис Смирнов" <mithraen@freesource.info>
Subject: Re: [devel] Cборка под несколько бранчей (was: asterisk*-devel удалено)
Date: Tue, 3 Feb 2015 17:34:32 +0200
Message-ID: <20150203153431.GA27250@dad.imath.kiev.ua> (raw)
In-Reply-To: <2004225.xTqKSdCL7y@summoner.malta.altlinux.ru>

On Tue, Feb 03, 2015 at 03:14:27PM +0300, Sergey V Turchin wrote:
> On Tuesday 03 February 2015 06:17:13 Денис Смирнов wrote:
> 
> [...]
> > А как делать зависимость от того, куда собирается пакет?
> Пока никак.
> https://bugs.altlinux.org/16627
> https://bugs.altlinux.org/29822

В данном случае asterisk* портируется через cronport,
и в cronport такая возможность есть.

Например, в моем hplip.spec есть
%if_with backport
...
%endif

и скрипт портирования в p6 добавляет там '%def_with backport'.
то же можно сделать и для asterisk'а.
не обязательно %def_with backport,
можно, например, вставить в спек

%if_without incoming_is_bad_with_noarch
BuildArch: noarch
%endif

и я добавлю скрипт для asterisk, который будет
под p7/t7 вставлять в спек
'%def_with incoming_is_bad_with_noarch'.


Пример скрипта портирования hplip.

#!/usr/bin/perl -w

push @SPECHOOKS, 
sub {
    my ($spec, $parent) = @_;
    $spec->get_section('package','')->unshift_body('%define _tmpfilesdir /lib/tmpfiles.d
BuildRequires: rpm-build-compat'."\n");
    $spec->get_section('package','')->unshift_body('%def_with backport'."\n");
};

__END__


-- 

I V


  reply	other threads:[~2015-02-03 15:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 15:37 [devel] asterisk*-devel удалено Денис Смирнов
2015-02-03  2:56 ` REAL
2015-02-03  3:06   ` Денис Смирнов
2015-02-03  3:12     ` REAL
2015-02-03  3:17       ` Денис Смирнов
2015-02-03  3:22         ` REAL
2015-02-03 12:14         ` [devel] Cборка под несколько бранчей (was: asterisk*-devel удалено) Sergey V Turchin
2015-02-03 15:34           ` Igor Vlasenko [this message]
2015-02-03 15:52             ` Sergey V Turchin
2015-02-03 16:46               ` Igor Vlasenko
2015-02-04 11:33                 ` Sergey V Turchin
2015-02-03 15:36 ` [devel] asterisk*-devel удалено Igor Vlasenko

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=20150203153431.GA27250@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --cc=devel@lists.altlinux.org \
    --cc=mithraen@freesource.info \
    /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