File apache-rex.spec of Package apache-rex

# spec file for package apache-rex
# Copyright (c) 2019 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

%if 0%{?suse_version} > 1230
%define macros_dir            %{_libexecdir}/rpm/macros.d
%define macros_dir            %{_sysconfdir}/rpm
%define macros_file           macros.apache-rex

Name:           apache-rex
Version:        20191022
Release:        0
Summary:        Script for Apache HTTPD Runnable Examples
License:        Apache-2.0
Group:          Documentation/Howto
Source0:        %{name}.tar.bz2
Source1:        apache-rex-rpmlintrc
Source2:        %{macros_file}
Requires:       apache2-devel
Requires:       curl
Requires:       lsof
Requires:       openssl
Requires:       openssl-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Runnable examples for Apache HTTP server. Can be used starting
point for examples, testcases and other inspiration.

%setup -q -n %{name}


mkdir -p %{buildroot}%{_bindir}
cp run-rex %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -r */ LICENSE contents %{buildroot}%{_docdir}/%{name}
mkdir -p %{buildroot}%{macros_dir}
install -m 644 %{SOURCE2} %{buildroot}%{macros_dir}/%{macros_file}


openSUSE Build Service is sponsored by