diff mbox

[ndctl] ndctl: use %doc instead of %license for older SUSE environments

Message ID 20160325201520.21639.84689.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State Accepted
Commit 5bd4599d12b4
Headers show

Commit Message

Dan Williams March 25, 2016, 8:15 p.m. UTC
Per build.opensuse.org build failures, the SLE_12 target wants %doc
instead of %license since /usr/share/license does not exist in that
environment.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 Makefile.am |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/Makefile.am b/Makefile.am
index eaf544a96284..3cd2f707f88f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,6 +60,7 @@  do_rhel_subst = sed -e 's,VERSION,$(VERSION),g' \
 
 do_sles_subst = sed -e 's,VERSION,$(VERSION),g' \
             -e 's,DNAME,libndctl-devel,g' \
+            -e 's,%license,%doc,g' \
             -e 's,LNAME,libndctl$(LIBNDCTL_CURRENT),g'
 
 rhel/ndctl.spec: ndctl.spec.in Makefile.am