From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 27 Dec 2004 11:36:20 +0300 From: Stanislav Ievlev To: ALT Devel discussion list Subject: Re: [devel] How to use alternatives ? Message-ID: <20041227083620.GE31552@basalt.office.altlinux.org> References: <20041227083513.GD31552@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041227083513.GD31552@basalt.office.altlinux.org> X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 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: Mon, 27 Dec 2004 08:36:22 -0000 Archived-At: List-Archive: List-Post: On Mon, Dec 27, 2004 at 11:35:13AM +0300, Stanislav Ievlev wrote: > On Mon, Dec 27, 2004 at 03:36:06AM +0300, Илья Евсеев wrote: > > %__cat << __EOF__ > %buildroot%_altdir/%name > > > > > > > > > > > > __EOF__ > > > > %post > > %post_register_alternatives %name -- %name > > > > %preun > > %preun_unregister_alternatives %name > > ------------------------------------------------------- > > При его инсталляции правильно создается симлинк > > /usr/bin/dosbox, указывающий на /usr/bin/dosbox-wrapper. > > > > Спек второго пакета (%name = dosbox-russian, %name0 = dosbox): > > ------------------------------------------------------- > > %install > > ... > > # Alternatives support > > %__mkdir_p %buildroot%_altdir > > %__cat << __EOF__ > %buildroot%_altdir/%name ^^^^^ И ещё тут ;)