Permalink
Browse files

Add spec file

  • Loading branch information...
1 parent 7bd4295 commit 1f61e26602fcb7c731c0413675355f2548e78c6a Andrew Jorgensen committed Jan 24, 2011
Showing with 50 additions and 0 deletions.
  1. +49 −0 apache2-mod_mono.spec.in
  2. +1 −0 configure.in
View
@@ -0,0 +1,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
View
@@ -446,6 +446,7 @@ if test x$enable_quiet_build = xyes; then
fi
AC_OUTPUT(
+apache2-mod_mono.spec
Makefile
mod_mono.conf
src/Makefile

0 comments on commit 1f61e26

Please sign in to comment.