Accepting request 265460 from home:dimstar:branches:devel:libraries:c_c++

- Add libmemcached-no-docs-available.patch: Do not build
  documentation if this is not a VC checkout. The idea is that the
  tarballs do only ship the pre-built documentation (which, on the
  other hand, is also missing in 1.0.18).

And, after more than a month, we get a building package again...

OBS-URL: https://build.opensuse.org/request/show/265460
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmemcached?expand=0&rev=46
This commit is contained in:
Marcus Meissner 2014-12-18 14:00:43 +00:00 committed by Git OBS Bridge
parent b9080a458a
commit ee630f686f
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,32 @@
Index: libmemcached-1.0.18/Makefile.am
===================================================================
--- libmemcached-1.0.18.orig/Makefile.am
+++ libmemcached-1.0.18/Makefile.am
@@ -26,6 +26,10 @@ EXTRA_DIST=
dist_man_MANS=
MAINTAINERCLEANFILES=
+if IS_VCS_CHECKOUT
+SUBDIRS= docs
+endif
+
#includes additional rules from aminclude.am
@INC_AMINCLUDE@
@@ -57,7 +61,6 @@ endif
include libmemcachedutil-1.0/include.am
include clients/include.am
-include docs/include.am
include man/include.am
if BUILD_LIBMEMCACHED_PROTOCOL
@@ -103,7 +106,7 @@ merge-clean:
@echo "Files that need to be either removed or checked in:"
@bzr unknowns
-clean-local: clean-libtest-check clean-docs-check clean-rpm
+clean-local: clean-libtest-check clean-rpm
lcov: lcov-clean check

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Dec 16 17:31:06 UTC 2014 - dimstar@opensuse.org
- Add libmemcached-no-docs-available.patch: Do not build
documentation if this is not a VC checkout. The idea is that the
tarballs do only ship the pre-built documentation (which, on the
other hand, is also missing in 1.0.18).
-------------------------------------------------------------------
Tue Dec 9 16:24:59 UTC 2014 - jengelh@inai.de

View File

@ -30,6 +30,8 @@ Source2: %{name}.keyring
# PATCH-FIX-UPSTREAM libmemcached-pthread.patch lp#133614 dimstar@opensuse.org -- Fix pthread detection
Patch0: libmemcached-pthread.patch
Patch1: libmemcached-automake1_14.diff
# PATCH-FIX-UPSTREAM libmemcached-no-docs-available.patch dimstar@opensuse.org -- Do not build docs if not VCS checkout
Patch2: libmemcached-no-docs-available.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# List of additional build dependencies
BuildRequires: automake >= 1.13
@ -92,6 +94,7 @@ methods.
%prep
%setup -q
%patch -P 0 -P 1 -p1
%patch2 -p1
%build
autoreconf -fiv