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