Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:jdpipe
viewvc
viewvc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File viewvc.spec of Package viewvc
# $Id: viewvc.spec 4819 2006-10-14 09:26:23Z dag $ # Authority: dag Summary: Web-interface for CVS and Subversion version control repositories Name: viewvc Version: 1.0.4 Release: 1 License: BSD Group: Development/Tools URL: http://www.viewvc.org/ Source0: http://www.viewvc.org/viewvc-%{version}.tar.gz Patch0: viewvc-tools.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildArch: noarch BuildRequires: python >= 1.5.2 Requires: httpd, python >= 1.5.2 Obsoletes: viewcvs Provides: viewcvs = %{version}-%{release} %description ViewVC is a browser interface for CVS and Subversion version control repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions. Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output. %prep %setup %patch0 -p1 find . -type d -name .svn | xargs %{__rm} -rf %{__cat} <<EOF >viewvc.httpd ### viewvc sample configuration #ScriptAlias /viewvc %{_localstatedir}/www/cgi-bin/viewvc.cgi #ScriptAlias /query %{_localstatedir}/www/cgi-bin/query.cgi #Alias /viewvc-static %{_localstatedir}/www/viewvc # #<Directory %{_localstatedir}/www/viewvc> # Allow from all #</Directory> EOF %build %install %{__rm} -rf %{buildroot} %{__python} viewvc-install --destdir="%{buildroot}" --prefix="%{_datadir}/viewvc" ### Remove mod_python files %{__rm} -rf %{buildroot}%{_datadir}/viewvc/bin/mod_python ### Fix python files perms and shellbang %{__perl} -pi \ -e 's|/usr/local/bin/python|%{_bindir}/python|g;' \ -e 's|\s*/usr/bin/env python|%{_bindir}/python|g;' \ -e 's|CONF_PATHNAME =.*|CONF_PATHNAME = r"%{_sysconfdir}/viewvc/viewvc.conf"|g;' \ $(find %{buildroot}%{_datadir}/viewvc/ -type f) ### Install CGI's to www directory %{__mkdir_p} %{buildroot}%{_localstatedir}/www/cgi-bin %{__install} -p -m0755 %{buildroot}%{_datadir}/viewvc/bin/cgi/*.cgi %{buildroot}%{_localstatedir}/www/cgi-bin/ %{__rm} -rf %{buildroot}%{_datadir}/viewvc/bin/cgi ### Fix paths in configuration %{__perl} -pi \ -e 's|templates/|%{_datadir}/viewvc/templates/|g;' \ -e 's|^#docroot = .*|docroot = /viewvc-static|;' \ -e 's|^cvsgraph_conf = .*|cvsgraph_conf = %{_sysconfdir}/viewvc/cvsgraph.conf|;' \ %{buildroot}%{_datadir}/viewvc/viewvc.conf ### Install config to sysconf directory %{__install} -Dp -m0644 %{buildroot}%{_datadir}/viewvc/viewvc.conf %{buildroot}%{_sysconfdir}/viewvc/viewvc.conf %{__rm} -f %{buildroot}%{_datadir}/viewvc/viewvc.conf %{__install} -Dp -m0644 %{buildroot}%{_datadir}/viewvc/cvsgraph.conf %{buildroot}%{_sysconfdir}/viewvc/cvsgraph.conf %{__rm} -f %{buildroot}%{_datadir}/viewvc/cvsgraph.conf ### Move static files under %{_localstatedir}/www %{__mv} %{buildroot}%{_datadir}/viewvc/templates/docroot %{buildroot}%{_localstatedir}/www/viewvc ### Compile the python files find %{buildroot}%{_datadir}/viewvc/lib -type f -name "*.pyc" | xargs %{__rm} -f %{__python} -O %{_libdir}/python*/compileall.py %{buildroot}%{_datadir}/viewvc/lib ### Install viewcv Apache configuration %{__install} -Dp -m0644 viewvc.httpd %{buildroot}/etc/httpd/conf.d/viewvc.conf ### Set mode 755 on executable scripts %{__grep} -rl '^#!' %{buildroot}%{_datadir}/viewvc | xargs %{__chmod} 0755 %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc CHANGES README INSTALL TODO %config(noreplace) %{_sysconfdir}/viewvc/ %config(noreplace) %{_sysconfdir}/httpd/conf.d/viewvc.conf %{_datadir}/viewvc/ %dir %{_localstatedir}/www/cgi-bin/ %{_localstatedir}/www/cgi-bin/viewvc.cgi %{_localstatedir}/www/cgi-bin/query.cgi %{_localstatedir}/www/viewvc/ %changelog * Sun Apr 15 2007 Dag Wieers <dag@wieers.com> - 1.0.4-1 - Updated to release 1.0.4. * Sat Oct 14 2006 Dag Wieers <dag@wieers.com> - 1.0.3-1 - Updated to release 1.0.3. * Tue Oct 10 2006 Dag Wieers <dag@wieers.com> - 1.0.2-2 - Fixed group name. * Sat Sep 30 2006 Dag Wieers <dag@wieers.com> - 1.0.2-1 - Updated to release 1.0.2. * Tue Aug 01 2006 Dag Wieers <dag@wieers.com> - 1.0.1-2 - Provide a better default httpd setup using Alias and ScriptALias /viewvc-static. * Tue Aug 01 2006 Dag Wieers <dag@wieers.com> - 1.0.1-1 - Initial package based on Mandrake package.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor