2017-10-31 07:58:23 +01:00
|
|
|
#
|
|
|
|
# spec file for package apache-rex
|
|
|
|
#
|
2019-02-05 08:48:43 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-10-31 07:58:23 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-02 21:20:50 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-10-31 07:58:23 +01:00
|
|
|
#
|
|
|
|
|
2017-11-16 13:58:57 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
%define macros_dir %{_libexecdir}/rpm/macros.d
|
|
|
|
%else
|
|
|
|
%define macros_dir %{_sysconfdir}/rpm
|
|
|
|
%endif
|
|
|
|
%define macros_file macros.apache-rex
|
|
|
|
|
2017-10-31 07:58:23 +01:00
|
|
|
Name: apache-rex
|
2019-06-24 23:23:07 +02:00
|
|
|
Version: 20190624
|
2017-10-31 07:58:23 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Script for Apache HTTPD Runnable Examples
|
|
|
|
License: Apache-2.0
|
2017-10-31 08:00:33 +01:00
|
|
|
Group: Documentation/Howto
|
2017-10-31 07:58:23 +01:00
|
|
|
Url: https://github.com/pgajdos/apache-rex
|
|
|
|
Source0: %{name}.tar.bz2
|
2017-10-31 09:08:37 +01:00
|
|
|
Source1: apache-rex-rpmlintrc
|
2017-11-16 13:58:57 +01:00
|
|
|
Source2: %{macros_file}
|
2017-10-31 07:58:23 +01:00
|
|
|
Requires: apache2-devel
|
|
|
|
Requires: curl
|
|
|
|
Requires: lsof
|
|
|
|
Requires: openssl
|
|
|
|
Requires: openssl-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Runnable examples for Apache HTTP server. Can be used starting
|
|
|
|
point for examples, testcases and other inspiration.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
%build
|
2019-02-08 14:49:37 +01:00
|
|
|
sed -i 's:sleep 1:sleep 3:g' mod_proxy_ftp-basic/run.sh
|
2017-10-31 07:58:23 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp run-rex %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -r */ LICENSE README.md contents %{buildroot}%{_docdir}/%{name}
|
2017-11-16 13:58:57 +01:00
|
|
|
mkdir -p %{buildroot}%{macros_dir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{macros_dir}/%{macros_file}
|
2017-10-31 07:58:23 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/run-rex
|
2017-11-16 13:58:57 +01:00
|
|
|
%{macros_dir}/%{macros_file}
|
2017-10-31 07:58:23 +01:00
|
|
|
%{_docdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|