Browse Source

add new pkg: mod_mono, nant

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2048 ec354946-7b23-47d6-9f5a-488ba84defc7
owa 13 years ago
parent
commit
850bee087f
2 changed files with 116 additions and 0 deletions
  1. 58 0
      m/mod_mono/mod_mono-vl.spec
  2. 58 0
      n/nant/nant-vl.spec

+ 58 - 0
m/mod_mono/mod_mono-vl.spec

@@ -0,0 +1,58 @@
+%define apxs /usr/bin/apxs
+%define httpd_modulesdir %(%{apxs} -q LIBEXECDIR)
+#define httpd_sysconfdir %(%{apxs} -q SYSCONFDIR)/conf.d
+%define httpd_sysconfdir %{_sysconfdir}/apache2/conf.d
+Summary: Run ASP.NET Pages on Unix with Apache and Mono
+Summary(ja): mod_mono は Apacheサーバの ASP.NET モジュールです
+Name: mod_mono
+Version: 2.8
+Release: 1%{?_dist_release}
+Url: http://go-mono.com/
+Source: %{name}-%{version}.tar.bz2
+License: Apache Software License
+Group: System Environment/Daemons
+BuildRequires: apache2-devel
+BuildRequires: apr-devel
+BuildRequires: mono-devel
+BuildRequires: pkgconfig
+Requires: xsp >= %{version}
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%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
+
+%build
+%configure \
+	--with-remove-display \
+	--with-apxs=%{apxs} \
+	--with-apr-config=/usr/bin/apr-1-config \
+	;
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT APXS_SYSCONFDIR="%{httpd_sysconfdir}"
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%{httpd_modulesdir}/*
+%config(noreplace) %{httpd_sysconfdir}/mod_mono.conf
+%{_mandir}/man8/mod_mono.8*
+
+%changelog
+* Tue Oct 12 2010 Shu KONNO <owa@bg.wakwak.com> 2.8-1
+- initial build for VineSeed
+

+ 58 - 0
n/nant/nant-vl.spec

@@ -0,0 +1,58 @@
+%define nant_dir %{_datadir}/NAnt/bin
+Summary: A .NET based build tool
+Summary(ja): .NET をベースにしたビルドツール
+Name: nant
+Version: 0.90
+Release: 1%{?_dist_release}
+License: GPL v2+
+Group: Development/Tools
+URL: http://nant.sourceforge.net/
+Source: %{name}-%{version}-src.tar.gz
+BuildArch: noarch
+BuildRequires: mono-core
+BuildRequires: mono-devel
+BuildRequires: pkgconfig
+Requires: mono-core
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%description
+NAnt is a .NET based build tool. In theory it is kind of like make
+without make's wrinkles. In practice it's a lot like Ant.
+
+%prep
+%setup -q
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mono bootstrap/NAnt.exe -f:NAnt.build install-linux -D:install.prefix=$RPM_BUILD_ROOT%{_prefix}
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
+mv $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig/%{name}.pc $RPM_BUILD_ROOT%{_datadir}/pkgconfig
+
+## script nant is exist, but fix it
+cat << EOF > $RPM_BUILD_ROOT%{_bindir}/nant
+#!/bin/sh
+exec mono %{_datadir}/NAnt/bin/NAnt.exe "\$@"
+EOF
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc COPYING.txt README.txt doc/*
+%{_bindir}/nant
+%{_datadir}/pkgconfig/%{name}.pc
+%dir %{nant_dir}
+%{nant_dir}/*
+
+%changelog
+* Tue Oct 12 2010 Shu KONNO <owa@bg.wakwak.com> 0.90-1
+- initial build for VineSeed
+