included patch directly into the spec file

epel9
Oliver Haessler 9 years ago
parent 72582aaa47
commit bb45ec91fb

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

@ -13,7 +13,6 @@ Patch0: fish-use-usrbinpython3.patch
# Pull request #2393, hopefully fixing #2392 / rhbz #1263052 # Pull request #2393, hopefully fixing #2392 / rhbz #1263052
Patch1: pr-2393-1.patch Patch1: pr-2393-1.patch
Patch2: pr-2393-2.patch Patch2: pr-2393-2.patch
Patch3: 0001-Do-not-use-pkgdocdir-it-is-not-defined.patch
%if 0%{?rhel} %if 0%{?rhel}
BuildRequires: python34-devel BuildRequires: python34-devel
@ -36,9 +35,6 @@ nothing to learn or configure.
%patch0 -p1 %patch0 -p1
%patch1 -p2 %patch1 -p2
%patch2 -p2 %patch2 -p2
%if 0%{?rhel}
%patch3 -p2
%endif
# This is unused. If we fiddle with Python versions, its presence will # This is unused. If we fiddle with Python versions, its presence will
# be confusing. # be confusing.
@ -46,7 +42,11 @@ rm create_wajig_completions.py
%build %build
%if 0%{?rhel}
%configure --docdir=%{_docdir}/%{name}
%else
%configure --docdir=%{_pkgdocdir} %configure --docdir=%{_pkgdocdir}
%endif
make %{?_smp_mflags} all fish_tests make %{?_smp_mflags} all fish_tests
@ -63,9 +63,13 @@ gzip %{buildroot}%{_datadir}/fish/man/man1/*.1
rm %{buildroot}/usr/share/pkgconfig/fish.pc rm %{buildroot}/usr/share/pkgconfig/fish.pc
# Install docs from tarball root # Install docs from tarball root
%if 0%{?rhel}
cp README.md %{buildroot}%{_docdir}/%{name}
cp CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}
%else
cp README.md %{buildroot}%{_pkgdocdir} cp README.md %{buildroot}%{_pkgdocdir}
cp CONTRIBUTING.md %{buildroot}%{_pkgdocdir} cp CONTRIBUTING.md %{buildroot}%{_pkgdocdir}
%endif
%check %check
@ -98,10 +102,17 @@ fi
%{_bindir}/* %{_bindir}/*
%config(noreplace) %{_sysconfdir}/fish %config(noreplace) %{_sysconfdir}/fish
%{_datadir}/fish/ %{_datadir}/fish/
%{_pkgdocdir}
%if 0%{?rhel}
%{_docdir}/%{name}
%else
%{_pkgdocdir}
%endif
%changelog %changelog
* Sat Jan 02 2016 Oliver Haessler <oliver@redhat.com> - 2.2.0-7
- included patch directly into the spec file
* Mon Dec 21 2015 Oliver Haessler <oliver@redhat.com> - 2.2.0-6 * Mon Dec 21 2015 Oliver Haessler <oliver@redhat.com> - 2.2.0-6
- added new patch for EL7 build - added new patch for EL7 build

Loading…
Cancel
Save