OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine-documentation?expand=0&rev=6
84 lines
2.2 KiB
RPMSpec
84 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package cfengine-documentation
|
|
#
|
|
# 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-documentation
|
|
|
|
Summary: CFEngine documentation
|
|
License: CC-BY-SA-3.0 and MIT
|
|
Group: Documentation
|
|
Version: 3.16.0+git20200921.037421cb1679
|
|
Release: 0
|
|
Url: https://github.com/cfengine/documentation
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
Patch1: 0001-fix-endraw-syntax.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: unzip
|
|
%if 0%{?suse_version} > 1010
|
|
BuildRequires: fdupes
|
|
%endif
|
|
|
|
BuildRequires: findutils
|
|
BuildRequires: ruby
|
|
BuildRequires: %{name}-generator
|
|
|
|
# for WeasyPrint
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-Pygments
|
|
BuildRequires: python3-WeasyPrint
|
|
|
|
BuildRequires: liberation-fonts
|
|
BuildRequires: gnu-free-fonts
|
|
BuildRequires: dejavu-fonts
|
|
BuildRequires: bitstream-vera-fonts
|
|
BuildRequires: xorg-x11-fonts
|
|
|
|
%description
|
|
This is the CFEngine 3 documentation
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
cp -a %{_datadir}/cfengine-documentation-generator/_* .
|
|
cp -a %{_datadir}/cfengine-documentation-generator/media .
|
|
|
|
export GEM_PATH=%{_libdir}/cfengine-documentation-generator/gems
|
|
export RUBYOPT=-Ku
|
|
$GEM_PATH/bin/jekyll b
|
|
|
|
%install
|
|
|
|
%{__install} -d %{buildroot}/%{_docdir}/%{name}
|
|
rm -rf _site/enterprise-cfengine-guide
|
|
cp -a _site/* %{buildroot}/%{_docdir}/%{name}
|
|
%if 0%{?suse_version} > 1010
|
|
%fdupes %{buildroot}/%{_docdir}/%{name}
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE README.md
|
|
%{_docdir}/%{name}
|
|
|
|
%changelog
|