Accepting request 186550 from systemsmanagement

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/186550
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cfengine?expand=0&rev=38
This commit is contained in:
Tomáš Chvátal 2013-08-10 10:11:52 +00:00 committed by Git OBS Bridge
commit e135889ba9
3 changed files with 35 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 2 07:14:21 UTC 2013 - kkaempf@suse.com
- Fix SLE 11 build
Add remove-am_subst_notmake.patch
-------------------------------------------------------------------
Thu Jul 11 11:30:59 UTC 2013 - kkaempf@suse.com

View File

@ -32,8 +32,11 @@ Version: 3.5.1
Release: 0
Url: http://www.cfengine.org/
Source: %{name}-%{version}.tar.gz
# there's no /usr/include/acl.h in SUSE
# there's no /usr/include/acl.h in SUSE or Fedora, kkaempf@suse.de
Patch1: libacl-headers.patch
# SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkaempf@suse.de
Patch2: remove-am_subst_notmake.patch
Source1: http://www.cfengine.org/manuals/cf3-Reference.pdf
Source2: http://www.cfengine.org/manuals/cf3-conceptguide.pdf
Source3: http://www.cfengine.org/manuals/cf3-glossary.pdf
@ -150,9 +153,16 @@ This package contains the files of the cfengine server.
%prep
%setup -q -n %{name}-%{version}
%if 0%{?suse_version}
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel_version}
%patch1 -p1
%endif
%if 0%{?suse_version} > 0 && 0%{?suse_version} <= 1110
%patch2 -p1
%endif
%if 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600
%patch2 -p1
%endif
##### rpmlint
#### wrong-file-end-of-line-encoding
#### incorrect-fsf-address
@ -168,7 +178,6 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--enable-fhs \
--with-libxml2 \
--datadir=/var \
--docdir=%{_docdir}/%{name} \
--with-workdir=%{workdir} \
--with-postgresql \
--with-pthreads \
@ -176,7 +185,12 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--with-pcre \
--with-libvirt \
--with-libacl \
--with-libxml2
--with-libxml2 \
%if 0%{?suse_version} >= 1110 || 0%{?rhel_version} >= 600
--docdir=%{_docdir}/%{name}
%endif
# SLE 10 and RHEL5 don't recognize --docdir
%{__make} %{?_smp_mflags}
# --datadir=/var/lib/%%{name}/inputs \

View File

@ -0,0 +1,11 @@
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-cfengine-3.5.1/configure.ac ./configure.ac
--- ../orig-cfengine-3.5.1/configure.ac 2013-07-11 10:26:03.000000000 +0200
+++ ./configure.ac 2013-08-02 09:10:37.318396099 +0200
@@ -1024,7 +1024,6 @@
# Populate contents of config.post.h
#
AC_SUBST(post_macros)
-AM_SUBST_NOTMAKE(post_macros)
dnl ######################################################################
dnl Summarize