LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apache2-mod_macro.spec of Package apache2-mod_macro (Project Apache:Modules)

# spec file for package apache2-mod_macro
# Copyright (c) 2013 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_macro
BuildRequires:  apache2-devel
BuildRequires:  pcre-devel
%define modname mod_macro
%define apxs %{_bindir}/apxs2
%define apache apache2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_includedir %(%{apxs} -q INCLUDEDIR)
%define apache_serverroot %(%{apxs} -q PREFIX)
%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
Version:        1.2.1
Release:        0
Requires:       %{apache_mmn}
Requires:       apache2
Summary:        Define and Use Macros within the Apache Configuration
License:        BSD-3-Clause
Group:          Productivity/Networking/Web/Servers
Url:            http://www.coelho.net/mod_macro/
Source:         http://www.coelho.net/mod_macro/%{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#Docdir:       %{_defaultdocdir}/%{apache}

mod_macro is a third-party module for the Apache HTTP Server.  It is
distributed with a BSD-style license similar to Apache. It allows the
definition and use of macros within Apache runtime configuration files.

To load the module into Apache, run the command "a2enmod macro" as

To learn about the configuration, refer to

%setup -n %{modname}-%{version}

%{apxs} -c mod_macro.c

mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p .libs/mod_macro.so $RPM_BUILD_ROOT/%{apache_libexecdir}

%doc mod_macro.html