File apache2-mod_xsendfile.spec of Package apache2-mod_xsendfile

#
# spec file for package apache2-mod_xsendfile
#
# 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:           apache2-mod_xsendfile
Version:        0.12
Release:        0
Summary:        Processes X-SENDFILE headers registered by the original output handler
License:        Apache-2.0
Group:          Productivity/Networking/Web/Servers
Url:            https://tn123.org/mod_xsendfile/
Source:         https://tn123.org/mod_xsendfile/mod_xsendfile-0.12.tar.bz2
BuildRequires:  apache-rpm-macros
BuildRequires:  apache2-devel
BuildRequires:  apache2-prefork
BuildRequires:  apache2-worker
Requires:       %{apache_mmn}
Requires:       %{apache_suse_maintenance_mmn}
Requires:       apache2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
mod_xsendfile is a small Apache2 module that processes X-SENDFILE headers registered by the original output handler.

If it encounters the presence of such header it will discard all output and send the file specified by that header instead using Apache internals including all optimizations like caching-headers and sendfile or mmap if configured.

It is useful for processing script-output of e.g. php, perl or any cgi.

%prep
%setup -q -n mod_xsendfile-%{version}

%build
%{apache_apxs} -c mod_xsendfile.c

%install
mkdir -p %{buildroot}/%{apache_libexecdir}
cp -p .libs/mod_xsendfile.so %{buildroot}/%{apache_libexecdir}

%files
%defattr(-,root,root)
%{apache_libexecdir}/*.so

%changelog
openSUSE Build Service is sponsored by