Accepting request 313639 from systemsmanagement
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/313639 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cfengine?expand=0&rev=55
This commit is contained in:
commit
4c1079cfff
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 17 13:09:09 UTC 2015 - kkaempf@suse.com
|
||||
|
||||
- Fix Fedora/RHEL builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 23 10:19:37 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
|
@ -69,7 +69,6 @@ Patch7: cfengine-fips.patch
|
||||
Patch8: 0001-Do-not-use-insecure-MD5-but-rather-SHA256.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: db-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libtool
|
||||
@ -78,6 +77,10 @@ BuildRequires: lmdb-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pam-devel
|
||||
BuildRequires: pcre-devel
|
||||
%if 0%{?suse_version} == 0
|
||||
# for testing on RHEL/Fedora
|
||||
BuildRequires: fakeroot
|
||||
%endif
|
||||
Requires: %{libsoname} = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if %{have_systemd}
|
||||
@ -104,12 +107,20 @@ BuildRequires: systemd
|
||||
%else
|
||||
# Without systemd we require cron
|
||||
Requires: cron
|
||||
%if 0%{?suse_version}
|
||||
Requires(post): %insserv_prereq %fillup_prereq
|
||||
%endif
|
||||
%endif
|
||||
# FHS was a hit with sle11 so it dies out otherwise
|
||||
%if 0%{?suse_version} <= 1110
|
||||
BuildRequires: -post-build-checks
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1020
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%if 0%{?fedora_version} == 20
|
||||
BuildRequires: perl-Exporter
|
||||
%endif
|
||||
|
||||
%description
|
||||
CFEngine is the core of a configuration management system: ensuring
|
||||
@ -205,7 +216,11 @@ CC=cc CFLAGS="%{optflags} -fno-strict-aliasing" \
|
||||
%endif
|
||||
--with-libacl \
|
||||
--with-libxml2 \
|
||||
%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 700
|
||||
--docdir=%{_docdir}/%{name}-%{version} \
|
||||
%else
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
%endif
|
||||
--with-pam
|
||||
|
||||
make %{?_smp_mflags}
|
||||
@ -245,7 +260,7 @@ ln -s -f service %{buildroot}/%{_sbindir}/rccf-execd
|
||||
ln -s -f service %{buildroot}/%{_sbindir}/rccf-serverd
|
||||
%else
|
||||
# install init scripts
|
||||
install -d %{buildroot}%{_sysconfdir}/init.d
|
||||
install -d %{buildroot}%{_initddir}
|
||||
install -m 0755 %{SOURCE7} %{SOURCE8} %{SOURCE9} %{buildroot}%{_initddir}/
|
||||
ln -s -f ../..%{_initddir}/cf-monitord %{buildroot}/%{_sbindir}/rccf-monitord
|
||||
ln -s -f ../..%{_initddir}/cf-execd %{buildroot}/%{_sbindir}/rccf-execd
|
||||
@ -281,7 +296,9 @@ done
|
||||
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/cfengine
|
||||
|
||||
# Ckeabyo dyoes
|
||||
%if 0%{?suse_version} > 1020
|
||||
%fdupes %{buildroot}%{_datadir}/cfengine
|
||||
%endif
|
||||
|
||||
%pre
|
||||
%if %{have_systemd}
|
||||
|
Loading…
x
Reference in New Issue
Block a user