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) 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/

%define modname mod_macro
Name:           apache2-mod_macro
Version:        1.2.1
Release:        0
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
BuildRequires:  apache2-devel >= 2.4
BuildRequires:  apache-rpm-macros
BuildRequires:  pcre-devel
Requires:       %{apache_mmn}
Requires:       %{apache_suse_maintenance_mmn}
Requires:       apache2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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 -q -n %{modname}-%{version}

%{apache_apxs} -c mod_macro.c

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

%doc mod_macro.html