mirror of
https://github.com/containers/podman.git
synced 2025-07-01 00:01:02 +08:00
Merge pull request #4590 from raukadah/docs
Make doc building in spec optional
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
%global with_debug 1
|
%global with_debug 1
|
||||||
%global with_check 0
|
%global with_check 0
|
||||||
%global with_unit_test 0
|
%global with_unit_test 0
|
||||||
|
%global with_doc 1
|
||||||
|
|
||||||
%if 0%{?fedora} >= 28
|
%if 0%{?fedora} >= 28
|
||||||
%bcond_without varlink
|
%bcond_without varlink
|
||||||
@ -57,7 +58,9 @@ BuildRequires: glib2-devel
|
|||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: glibc-static
|
BuildRequires: glibc-static
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
|
%if 0%{?with_doc}
|
||||||
BuildRequires: go-md2man
|
BuildRequires: go-md2man
|
||||||
|
%endif
|
||||||
BuildRequires: gpgme-devel
|
BuildRequires: gpgme-devel
|
||||||
BuildRequires: libassuan-devel
|
BuildRequires: libassuan-devel
|
||||||
BuildRequires: libgpg-error-devel
|
BuildRequires: libgpg-error-devel
|
||||||
@ -357,7 +360,9 @@ tar zxf %{SOURCE1}
|
|||||||
|
|
||||||
sed -i 's/install.remote: podman-remote/install.remote:/' Makefile
|
sed -i 's/install.remote: podman-remote/install.remote:/' Makefile
|
||||||
sed -i 's/install.bin: podman/install.bin:/' Makefile
|
sed -i 's/install.bin: podman/install.bin:/' Makefile
|
||||||
|
%if 0%{?with_doc}
|
||||||
sed -i 's/install.man: docs/install.man:/' Makefile
|
sed -i 's/install.man: docs/install.man:/' Makefile
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir _build
|
mkdir _build
|
||||||
@ -370,8 +375,12 @@ export GOPATH=$(pwd)/_build:$(pwd):$(pwd):%{gopath}
|
|||||||
export BUILDTAGS="varlink selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) exclude_graphdriver_devicemapper"
|
export BUILDTAGS="varlink selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) exclude_graphdriver_devicemapper"
|
||||||
|
|
||||||
GOPATH=$GOPATH go generate ./cmd/podman/varlink/...
|
GOPATH=$GOPATH go generate ./cmd/podman/varlink/...
|
||||||
BUILDTAGS=$BUILDTAGS make binaries docs
|
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
BUILDTAGS=$BUILDTAGS make binaries docs
|
||||||
|
%else
|
||||||
|
BUILDTAGS=$BUILDTAGS make binaries
|
||||||
|
%endif
|
||||||
# build conmon
|
# build conmon
|
||||||
pushd conmon
|
pushd conmon
|
||||||
|
|
||||||
@ -477,8 +486,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md code-of-conduct.md transfer.md
|
%doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md code-of-conduct.md transfer.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
%if 0%{?with_doc}
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
%{_mandir}/man5/*.5*
|
%{_mandir}/man5/*.5*
|
||||||
|
%endif
|
||||||
%{_datadir}/bash-completion/completions/*
|
%{_datadir}/bash-completion/completions/*
|
||||||
%{_datadir}/zsh/site-functions/*
|
%{_datadir}/zsh/site-functions/*
|
||||||
%{_libexecdir}/%{name}/conmon
|
%{_libexecdir}/%{name}/conmon
|
||||||
|
Reference in New Issue
Block a user