ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@altlinux.org>
To: devel@lists.altlinux.org
Cc: Vitaly Lipatov <lav@altlinux.org>
Subject: [devel] [bootstrap] условный doxygen по "ручке" doc
Date: Thu, 22 Dec 2016 10:11:01 +0300
Message-ID: <20161222071101.GT490@imap.altlinux.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

	Здравствуйте.
Поскольку doxygen, с одной стороны, требует много всего для
сборки, а с другой -- много чему в сизифе штатно для неё же
и требуется, предлагаю по возможности обуславливать эту BR:
примерно таким образом для облегчения редкого, но меткого
процесса переноса на новые архитектуры:

%def_with doc
[...]

%if_with doc
BuildRequires: doxygen
%endif

(может понадобиться ещё по кусочку в %build/%install/%files,
см. приложенный дифф для libyaml)

2 lav: приложил этот самый патч для сборки на e2k, если нет
возражений -- прошу принять в сизифный пакет или разрешить мне
NMU; вообще у меня их таких тут немало заготовлено, см. тж.
http://altlinux.org/bootstrap

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info

[-- Attachment #2: libyaml.spec.diff --]
[-- Type: text/x-patch, Size: 1180 bytes --]

diff --git a/libyaml.spec b/libyaml.spec
index a5b9b50..12755b1 100644
--- a/libyaml.spec
+++ b/libyaml.spec
@@ -1,7 +1,9 @@
 %define abiversion 2
+%def_with doc
+
 Name: libyaml
 Version: 0.1.7
-Release: alt1
+Release: alt1.1
 
 Summary: A C library for parsing and emitting YAML
 
@@ -15,7 +17,9 @@ Packager: Vitaly Lipatov <lav@altlinux.ru>
 Source: %name-%version.tar
 
 # Automatically added by buildreq on Sat Oct 02 2010
+%if_with doc
 BuildRequires: doxygen
+%endif
 
 %description
 YAML 1.1 parser and emitter written in C.
@@ -43,7 +47,9 @@ Header files for the yaml library.
 %configure --disable-static
 %make_build
 
+%if_with doc
 top_srcdir=`pwd` top_builddir=`pwd` doxygen doc/doxygen.cfg
+%endif
 
 %install
 %makeinstall_std
@@ -53,12 +59,17 @@ top_srcdir=`pwd` top_builddir=`pwd` doxygen doc/doxygen.cfg
 %_libdir/lib*.so.*
 
 %files devel
+%if_with doc
 %doc doc/html
+%endif
 %_libdir/lib*.so
 %_includedir/*.h
 %_pkgconfigdir/*
 
 %changelog
+* Thu Dec 22 2016 Michael Shigorin <mike@altlinux.org> 0.1.7-alt1.1
+- BOOTSTRAP: added doc knob (doxygen)
+
 * Sat Sep 24 2016 Vitaly Lipatov <lav@altlinux.ru> 0.1.7-alt1
 - new version 0.1.7 (with rpmrb script)
 

             reply	other threads:[~2016-12-22  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-22  7:11 Michael Shigorin [this message]
2016-12-22 12:25 ` Vitaly Lipatov
2016-12-22 15:39   ` 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=20161222071101.GT490@imap.altlinux.org \
    --to=mike@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=lav@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

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