devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Igor Zubkov <igor.zubkov@gmail.com>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Little CMS 2 quick and dirty build
Date: Sun, 7 Nov 2010 13:03:34 +0200
Message-ID: <AANLkTinozd6bYZC32rYK-H3J7GxmyCXb+E4Rvpv8THY1@mail.gmail.com> (raw)
In-Reply-To: <4CD66D74.6090009@gmail.com>

2010/11/7 Yuriy Shirokov:
> On 07.11.2010 03:29, Igor Zubkov wrote:
>>>> И devel-static подпакет я бы по-умолчанию не собирал бы.
>>> А есть по этому поводу какие-то правила? Их собирают только если есть
>>> программы, которым нужна статическая линковка, или как?
>> Не собирать пока не просят.
>
> O'k.
>
> А как это делается? Добавить в спек директиву %if_enabled static, как
> вот здесь:
> http://www.altlinux.org/SampleSpecs/library
> ?

В самом верху спека:
%def_disable static

Это мы отключает по умолчанию сборку static.

Оборачиваем пакет devel-static в if:
%if_enabled static
%package devel-static
Summary: Static libraries for %name
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Static libs for building statically linked software that uses %name
%endif

Вызываем configure вот так:
%configure %{subst_enable static}

И оборачиваем devel-static файлы:
%if_enabled static
%files devel-static
%_libdir/lib%name.a
%endif

-- 
Igor Zubkov
http://hi.im/ice

  reply	other threads:[~2010-11-07 11:03 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03  7:55 Yuriy Al. Shirokov
2010-11-03 22:31 ` Michael Shigorin
2010-11-03 23:28   ` Igor Zubkov
2010-11-06 17:19     ` Yuriy Shirokov
2010-11-06 19:03       ` Igor Zubkov
2010-11-06 21:46         ` Yuriy Shirokov
2010-11-06 23:37           ` Igor Zubkov
2010-11-07 17:37             ` Michael Shigorin
2010-11-06 17:17   ` Yuriy Shirokov
2010-11-06 19:01     ` Igor Zubkov
2010-11-06 19:36     ` Michael Shigorin
2010-11-06 21:00       ` Yuriy Shirokov
2010-11-07 10:14         ` Andrey Rahmatullin
2010-11-07 13:04           ` [newbies] devel (was: Re: Little CMS 2 quick and dirty build) Yuriy Shirokov
2010-11-07 13:09             ` Andrey Rahmatullin
2010-11-06 23:27 ` [newbies] Little CMS 2 quick and dirty build Yuriy Shirokov
2010-11-06 23:46   ` Igor Zubkov
2010-11-07  0:04     ` Yuriy Shirokov
2010-11-07  0:29       ` Igor Zubkov
2010-11-07  9:12         ` Yuriy Shirokov
2010-11-07 11:03           ` Igor Zubkov [this message]
2010-11-07 17:44         ` Michael Shigorin
2010-11-07 19:40           ` [newbies] patch vs. subst, was: " Dmitry Chistikov
2010-11-07 21:08             ` Michael Shigorin
2010-11-07 21:34               ` Dmitry Chistikov
2010-11-07 21:43                 ` Michael Shigorin
2010-11-08  0:25             ` Igor Zubkov
2010-11-08  0:44               ` Dmitry V. Levin
2010-11-08  8:16               ` Yuriy Shirokov
2010-11-08  9:15                 ` Motsyo Gennadi aka Drool
2010-11-09 17:46                   ` Yuriy Shirokov
2010-11-09 17:51                     ` Andrey Rahmatullin
2010-11-09 18:53                       ` Yuriy Shirokov
2010-11-08 13:21               ` [newbies] patch vs. subst Michael Shigorin
2010-11-07 13:12   ` [newbies] Little CMS 2, LabCurves (was: Re: Little CMS 2 quick and dirty build) Yuriy Shirokov
2010-11-07 17:52     ` [newbies] ALT Packaging HOWTO Michael Shigorin

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=AANLkTinozd6bYZC32rYK-H3J7GxmyCXb+E4Rvpv8THY1@mail.gmail.com \
    --to=igor.zubkov@gmail.com \
    --cc=devel-newbies@lists.altlinux.org \
    /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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git