spec: add doc knob
This one is both by Leo-sp50's request and within BOOTSTRAP commits' vein: do here what I do there.
This commit is contained in:
parent
dda5cc71a1
commit
33aad6ce66
@ -23,12 +23,13 @@ Requires: mkimage-preinstall
|
|||||||
%define mpdir %_datadir/%name
|
%define mpdir %_datadir/%name
|
||||||
%add_findreq_skiplist %mpdir/*.in/*
|
%add_findreq_skiplist %mpdir/*.in/*
|
||||||
|
|
||||||
|
%def_with doc
|
||||||
%define docs $HOME/docs
|
%define docs $HOME/docs
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: %name documentation
|
Summary: %name documentation
|
||||||
Group: Development/Documentation
|
Group: Development/Documentation
|
||||||
BuildRequires: java /proc
|
%{?_with_doc:BuildRequires: java /proc}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
mkimage-profiles is a collection of bits and pieces useful for
|
mkimage-profiles is a collection of bits and pieces useful for
|
||||||
@ -64,21 +65,29 @@ as a book in HTML and PDF formats.
|
|||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if_with doc
|
||||||
make BUILDDIR=%docs docs
|
make BUILDDIR=%docs docs
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %buildroot{%mpdir,%_man7dir}
|
mkdir -p %buildroot{%mpdir,%_man7dir}
|
||||||
cp -a * %buildroot%mpdir
|
cp -a * %buildroot%mpdir
|
||||||
|
%if_with doc
|
||||||
mv %buildroot%mpdir/doc/mkimage-profiles.7 %buildroot%_man7dir/
|
mv %buildroot%mpdir/doc/mkimage-profiles.7 %buildroot%_man7dir/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%mpdir/
|
%mpdir/
|
||||||
|
%if_with doc
|
||||||
%_man7dir/*
|
%_man7dir/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if_with doc
|
||||||
%files doc
|
%files doc
|
||||||
%doc README
|
%doc README
|
||||||
%doc QUICKSTART
|
%doc QUICKSTART
|
||||||
%doc %docs/*
|
%doc %docs/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Feb 15 2016 Michael Shigorin <mike@altlinux.org> 1.1.85-alt1
|
* Mon Feb 15 2016 Michael Shigorin <mike@altlinux.org> 1.1.85-alt1
|
||||||
|
Loading…
Reference in New Issue
Block a user