Blame 0001-Do-not-use-pkgdocdir-it-is-not-defined.patch

Oliver Haessler 72582a
From 55bbbd95b508114998241a777a22de1dc6e8c05e Mon Sep 17 00:00:00 2001
Oliver Haessler 72582a
From: Oliver Haessler <oliver@redhat.com>
Oliver Haessler 72582a
Date: Mon, 21 Dec 2015 11:17:32 +0100
Oliver Haessler 72582a
Subject: [PATCH 1/1] Do-not-use-pkgdocdir-it-is-not-defined
Oliver Haessler 72582a
Oliver Haessler 72582a
diff --git a/fish.spec b/fish.spec
Oliver Haessler 72582a
index ec7902a..4cdf45e 100644
Oliver Haessler 72582a
--- a/fish.spec
Oliver Haessler 72582a
+++ b/fish.spec
Oliver Haessler 72582a
@@ -38,7 +38,7 @@ rm create_wajig_completions.py
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 %build
Oliver Haessler 72582a
-%configure --docdir=%{_pkgdocdir}
Oliver Haessler 72582a
+%configure --docdir=%{_docdir}/%{name}
Oliver Haessler 72582a
 make %{?_smp_mflags} all fish_tests
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 
Oliver Haessler 72582a
@@ -55,8 +55,8 @@ gzip %{buildroot}%{_datadir}/fish/man/man1/*.1
Oliver Haessler 72582a
 rm %{buildroot}/usr/share/pkgconfig/fish.pc
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 # Install docs from tarball root
Oliver Haessler 72582a
-cp README.md %{buildroot}%{_pkgdocdir}
Oliver Haessler 72582a
-cp CONTRIBUTING.md %{buildroot}%{_pkgdocdir}
Oliver Haessler 72582a
+cp README.md %{buildroot}%{_docdir}/%{name}
Oliver Haessler 72582a
+cp CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 %check
Oliver Haessler 72582a
@@ -90,7 +90,7 @@ fi
Oliver Haessler 72582a
 %{_bindir}/*
Oliver Haessler 72582a
 %config(noreplace) %{_sysconfdir}/fish
Oliver Haessler 72582a
 %{_datadir}/fish/
Oliver Haessler 72582a
-%{_pkgdocdir}
Oliver Haessler 72582a
+%{_docdir}/%{name}
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 
Oliver Haessler 72582a
 %changelog
Oliver Haessler 72582a
-- 
Oliver Haessler 72582a
1.8.3.1
Oliver Haessler 72582a