--- /dev/null
+<Directory /usr/share/viewvc>
+ AllowOverride None
+ Options +FollowSymlinks
+
+ # Apache 1.3, 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+</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>
+# # Apache 1.3, 2.x
+# <IfModule !mod_authz_core.c>
+# Order allow,deny
+# Allow from all
+# </IfModule>
+# # Apache 2.4
+# <IfModule mod_authz_core.c>
+# Require all granted
+# </IfModule>
+# <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
+# # Apache 1.3, 2.x
+# <IfModule !mod_authz_core.c>
+# Order allow,deny
+# Allow from all
+# </IfModule>
+# # Apache 2.4
+# <IfModule mod_authz_core.c>
+# Require all granted
+# </IfModule>
+# </Location>
+#</VirtualHost>
+
+++ /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>
-
Group: Applications/WWW
Source0: http://www.viewvc.org/%{name}-%{version}.tar.gz
# Source0-md5: 13292307114b0f4bb4fc322597ec8007
-Source1: %{name}-httpd.conf
+Source1: apache.conf
URL: http://www.viewvc.org/
BuildRequires: python
BuildRequires: python-modules
rm -rf $RPM_BUILD_ROOT
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 -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+cp -p %{SOURCE1} $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}