File cfengine-masterfiles.spec of Package cfengine-masterfiles

#
# spec file for package cfengine-masterfiles
#
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


Name:           cfengine-masterfiles

# Yes, its not FHS conformant but in sync with cfengine documentation
# reported upstream as https://cfengine.com/dev/issues/1896
%define         basedir   /var/cfengine
%define         workdir   %{basedir}

Summary:        CFEngine promises master files
License:        MIT and LGPL-3.0+
Group:          Productivity/Networking/System
Version:        3.6.1
Release:        0
%define srcname masterfiles-%{version}
Url:            http://www.cfengine.org/
Source:         %{srcname}.tar.gz
# PATCH-FIX-OPENSUSE: build without 'core' source, kkaempf@suse.com
Patch1:         build-without-core.patch

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

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

%description
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.

%prep
%setup -q -n %{srcname}
%patch1 -p1

%build
sh ./autogen.sh
./configure

%install

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

%files
%defattr(-,root,root)
%doc LICENSE README.md CONTRIBUTING.md
%dir %{basedir}
%dir %{basedir}/masterfiles
%{basedir}/masterfiles/*

%changelog
openSUSE Build Service is sponsored by