File cfengine-masterfiles.spec of Package cfengine-masterfiles

# spec file for package cfengine-masterfiles
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           cfengine-masterfiles

# Yes, its not FHS conformant but in sync with cfengine documentation
# reported upstream as
%define         basedir   /var/cfengine
%define         workdir   %{basedir}

Summary:        CFEngine promises master files
License:        MIT and LGPL-3.0+
Group:          Productivity/Networking/System
Version:        3.10.1
Release:        0
%define srcname masterfiles

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Requires:       cfengine
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  cfengine
BuildRequires:  findutils

# wtf? SLE_11 does not honor rpmlintrc
Source1:        %{name}-rpmlintrc
%if 0%{?suse_version} <= 1130
BuildRequires:  -post-build-checks
%if 0%{?fedora_version} == 20 || 0%{?rhel_version} >= 700
BuildRequires:  perl-Exporter

Masterfiles are the pristine version of the CFEngine promises. These
will be available in /var/cfengine/masterfiles and are copied to
/var/cfengine/inputs by CFEngine.

%setup -q -n %{srcname}-%{version}

# EXPLICIT_VERSION must be set in the environment else creation of
# configure will fail
export EXPLICIT_VERSION="%{version}" 
autoreconf -fiv
%configure --prefix=%{basedir}


%{__install} -d %{buildroot}/%{basedir}/masterfiles
%{__make} "DESTDIR=%{buildroot}" install

%dir %{basedir}
%dir %{basedir}/masterfiles
%dir %{basedir}/modules/packages

openSUSE Build Service is sponsored by