All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH] build: Use asciidoc instead of asciidoctor on RHEL
@ 2020-10-07  0:15 Dan Williams
  2020-10-08  1:08 ` Verma, Vishal L
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Williams @ 2020-10-07  0:15 UTC (permalink / raw)
  To: vishal.l.verma; +Cc: linux-nvdimm

Until RHEL moves to asciidoctor fallback to the old asciidoc for RHEL
builds.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 ndctl.spec.in |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ndctl.spec.in b/ndctl.spec.in
index 94e15ad309c5..056c53069082 100644
--- a/ndctl.spec.in
+++ b/ndctl.spec.in
@@ -9,7 +9,12 @@ Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{v
 Requires:	LNAME%{?_isa} = %{version}-%{release}
 Requires:	DAX_LNAME%{?_isa} = %{version}-%{release}
 BuildRequires:	autoconf
+%if 0%{?rhel} < 9
+BuildRequires:	asciidoc
+%define asciidoc --disable-asciidoctor
+%else
 BuildRequires:	rubygem-asciidoctor
+%endif
 BuildRequires:	xmlto
 BuildRequires:	automake
 BuildRequires:	libtool
@@ -86,7 +91,7 @@ control API for these devices.
 %build
 echo %{version} > version
 ./autogen.sh
-%configure --disable-static --disable-silent-rules
+%configure --disable-static --disable-silent-rules %{?asciidoc}
 make %{?_smp_mflags}
 
 %install
_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org

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

* Re: [ndctl PATCH] build: Use asciidoc instead of asciidoctor on RHEL
  2020-10-07  0:15 [ndctl PATCH] build: Use asciidoc instead of asciidoctor on RHEL Dan Williams
@ 2020-10-08  1:08 ` Verma, Vishal L
  0 siblings, 0 replies; 2+ messages in thread
From: Verma, Vishal L @ 2020-10-08  1:08 UTC (permalink / raw)
  To: Williams, Dan J; +Cc: linux-nvdimm

On Tue, 2020-10-06 at 17:15 -0700, Dan Williams wrote:
> Until RHEL moves to asciidoctor fallback to the old asciidoc for RHEL
> builds.
> 
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
>  ndctl.spec.in |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 

Thanks Dan - looks good!
I applied this and tested with a copr build for el8, and it all looks
good:

  https://download.copr.fedorainfracloud.org/results/djbw/ndctl/epel-8-x86_64/01698754-ndctl/

> diff --git a/ndctl.spec.in b/ndctl.spec.in
> index 94e15ad309c5..056c53069082 100644
> --- a/ndctl.spec.in
> +++ b/ndctl.spec.in
> @@ -9,7 +9,12 @@ Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{v
>  Requires:	LNAME%{?_isa} = %{version}-%{release}
>  Requires:	DAX_LNAME%{?_isa} = %{version}-%{release}
>  BuildRequires:	autoconf
> +%if 0%{?rhel} < 9
> +BuildRequires:	asciidoc
> +%define asciidoc --disable-asciidoctor
> +%else
>  BuildRequires:	rubygem-asciidoctor
> +%endif
>  BuildRequires:	xmlto
>  BuildRequires:	automake
>  BuildRequires:	libtool
> @@ -86,7 +91,7 @@ control API for these devices.
>  %build
>  echo %{version} > version
>  ./autogen.sh
> -%configure --disable-static --disable-silent-rules
> +%configure --disable-static --disable-silent-rules %{?asciidoc}
>  make %{?_smp_mflags}
>  
>  %install
> 

_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org

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

end of thread, other threads:[~2020-10-08  1:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07  0:15 [ndctl PATCH] build: Use asciidoc instead of asciidoctor on RHEL Dan Williams
2020-10-08  1:08 ` Verma, Vishal L

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.