forked from mono/mod_mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache2-mod_mono.spec.in
49 lines (42 loc) · 1.42 KB
/
apache2-mod_mono.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Name: apache2-mod_mono
%define apxs /usr/sbin/apxs2
%define apache2_sysconfdir %(%{apxs} -q SYSCONFDIR)/conf.d
Obsoletes: mod_mono
%define modname mod_mono
%define apache2_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
Url: http://go-mono.com/
License: Apache Software License
Group: Productivity/Networking/Web/Servers
AutoReqProv: on
Version: @VERSION@
Release: 0
Summary: Run ASP.NET Pages on Unix with Apache and Mono
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: mod_mono = %{version}-%{release}
# This must be manually entered according to xsp's protocol version
Requires: xsp >= %{version}
BuildRequires: pkg-config
BuildRequires: apache2-devel mono-devel
BuildRequires: libapr-util1-devel
Requires: apache2 %{apache_mmn}
%description
mod_mono is a module that interfaces Apache with Mono and allows
running ASP.NET pages on Unix and Unix-like systems. To load the module
into Apache, run the command "a2enmod mono" as root.
%prep
%setup -n %{modname}-%{version} -q
%build
%configure
make
%install
make install DESTDIR=%{buildroot} APXS_SYSCONFDIR="%{apache2_sysconfdir}"
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{apache2_libexecdir}/*
%{apache2_sysconfdir}/*
%{_mandir}/man8/mod_mono.8*
%changelog