[trac] wsgi
Jon Ciesla
limb at fedoraproject.org
Tue Jun 14 14:01:30 UTC 2011
commit b8a4b921cc15a93b3c0fc6c5ef26e5315aaa3320
Author: Jon Ciesla <limb at jcomserv.net>
Date: Tue Jun 14 09:00:24 2011 -0500
wsgi
trac.spec | 8 +++++++-
trac.wsgi | 28 ++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/trac.spec b/trac.spec
index f44f4c2..0989b51 100644
--- a/trac.spec
+++ b/trac.spec
@@ -2,7 +2,7 @@
Name: trac
Version: 0.12.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Enhanced wiki and issue tracking system
Group: Applications/Internet
License: BSD
@@ -12,6 +12,7 @@ Source1: trac.conf
Source2: trac.ini
Source3: trac.ini-environment_sample
Source4: %{name}-README.fedora
+Source5: trac.wsgi
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
@@ -51,6 +52,7 @@ rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT%{_var}/www/cgi-bin
mv cgi-bin/trac.*cgi $RPM_BUILD_ROOT%{_var}/www/cgi-bin
+install -Dpm 755 %{SOURCE5} $RPM_BUILD_ROOT%{_var}/www/cgi-bin
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/trac.conf
install -Dpm 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/trac/trac.ini
@@ -78,8 +80,12 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/trac/*
%{_var}/www/cgi-bin/trac.cgi
%{_var}/www/cgi-bin/trac.fcgi
+%{_var}/www/cgi-bin/trac.wsgi
%changelog
+* Tue Jun 14 2011 Jon Ciesla <limb at jcomserv.net> - 0.12.2-5
+- Added .wsgi file, BZ 701762.
+
* Sun Apr 03 2011 Jesse Keating <jkeating at redhat.com> - 0.12.2-1
- New upstream release mostly bugfixes
- http://trac.edgewall.org/browser//tags/trac-0.12.2/ChangeLog
diff --git a/trac.wsgi b/trac.wsgi
new file mode 100644
index 0000000..ff322d6
--- /dev/null
+++ b/trac.wsgi
@@ -0,0 +1,28 @@
+# Replace all occurrences of /srv/trac with your trac root below
+# and uncomment the respective SetEnv and PythonOption directives.
+WSGIScriptAlias /trac /var/www/cgi-bin/trac.wsgi
+
+<Directory /var/www/>
+ WSGIApplicationGroup %{GLOBAL}
+ Order deny,allow
+ Allow from all
+</Directory>
+# <LocationMatch /cgi-bin/trac\.f?cgi>
+# SetEnv TRAC_ENV /opt/trac/hn-aci
+# </LocationMatch>
+# <IfModule mod_python.c>
+# <Location /cgi-bin/trac.cgi>
+# SetHandler mod_python
+# PythonHandler trac.web.modpython_frontend
+# #PythonOption TracEnv /srv/trac
+# </Location>
+# </IfModule>
+
+<Location "/trac/login">
+
+ AuthType Digest
+ AuthName "trac"
+ AuthDigestDomain /trac
+ AuthUserFile /opt/trac/trac.htpasswd
+ Require valid-user
+</Location>
More information about the scm-commits
mailing list