ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [bootstrap] условный doxygen по "ручке" doc
@ 2016-12-22  7:11 Michael Shigorin
  2016-12-22 12:25 ` Vitaly Lipatov
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2016-12-22  7:11 UTC (permalink / raw)
  To: devel; +Cc: Vitaly Lipatov

[-- 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)
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-22 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22  7:11 [devel] [bootstrap] условный doxygen по "ручке" doc Michael Shigorin
2016-12-22 12:25 ` Vitaly Lipatov
2016-12-22 15:39   ` Michael Shigorin

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