--- /dev/null
+<Directory /usr/share/viewvc>
+ AllowOverride None
+ Options +FollowSymlinks
+ Allow from all
+</Directory>
+
+# Version1 (default): under /cgi-bin/viewvc.cgi address
+ScriptAlias /cgi-bin/viewvc.cgi /usr/share/viewvc/bin/cgi/viewvc.cgi
+ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
+
+# if using apache2 mod_python:
+# Alias /viewvc /usr/share/viewvc/bin/mod_python
+# <Location /viewvc>
+# Allow from all
+# <IfModule mod_python.c>
+# AddHandler mod_python .py
+# PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
+# PythonHandler handler
+# PythonDebug Off
+# </IfModule>
+# </Location>
+
+# Version 2: viewvc as handler to whole vhost:
+#<VirtualHost *:80>
+# ServerName cvs
+#
+# Alias /viewvc/ /usr/share/viewvc
+# DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
+# <Location />
+# Options ExecCGI
+# Allow from all
+# </Location>
+#</VirtualHost>
+
<Directory /usr/share/viewvc>
AllowOverride None
Options +FollowSymlinks
- Allow from all
+ Require all granted
</Directory>
# Version1 (default): under /cgi-bin/viewvc.cgi address
# if using apache2 mod_python:
# Alias /viewvc /usr/share/viewvc/bin/mod_python
# <Location /viewvc>
-# Allow from all
+# Require all granted
# <IfModule mod_python.c>
# AddHandler mod_python .py
# PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
# DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
# <Location />
# Options ExecCGI
-# Allow from all
+# Require all granted
# </Location>
#</VirtualHost>
Summary(pl.UTF-8): Interfejs przeglądarki do repozytoriów systemów kontroli wersji CVS i Subversion
Name: viewvc
Version: 1.1.9
-Release: 1
+Release: 2
License: BSD
Group: Applications/WWW
Source0: http://www.viewvc.org/%{name}-%{version}.tar.gz
# Source0-md5: 13292307114b0f4bb4fc322597ec8007
-Source1: %{name}-httpd.conf
+Source1: %{name}-apache.conf
+Source2: %{name}-httpd.conf
URL: http://www.viewvc.org/
BuildRequires: python
BuildRequires: python-modules
Requires: %{name}-template
Requires: webapps
Obsoletes: viewcvs
+Conflicts: apache-base < 2.4.0-1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_appdir},%{_sysconfdir}}
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
#install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
./viewvc-install --destdir=$RPM_BUILD_ROOT --prefix=%{_appdir}
%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
%webapp_register httpd %{_webapp}
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
%webapp_unregister httpd %{_webapp}
%if 0