Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
DISCONTINUED:openSUSE:11.1:Update
viewvc
viewvc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File viewvc.spec of Package viewvc
# # spec file for package viewvc (Version 1.0.12) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: viewvc BuildRequires: apache2-devel python-devel Version: 1.0.12 Release: 0.<RELEASE1> # %define apxs /usr/sbin/apxs2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) # %define site_python %(python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()") # %define viewvc_dir /srv/viewvc %define viewvc_src_dir viewvc-%version Requires: subversion-python Provides: subversion-viewcvs viewcvs Obsoletes: subversion-viewcvs viewcvs Group: Development/Tools/Version Control Url: http://www.viewvc.org/ Summary: ViewVC - Browse a Subversion Repository with a Web Browser # BuildRoot: %{_tmppath}/%{name}-%{version}-build License: BSD 3-Clause Source0: viewvc-%{version}.tar.bz2 Source1: viewvc.conf Patch0: viewvc-buglink.patch %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 prettier than the average textual command-line program output. ViewVC is the successor of ViewCVS. Authors: -------- The ViewCVS Group: * Greg Stein * Tanaka Akira * Tim Cera * Peter Funk * Jay Painter %prep %setup -q -n %{viewvc_src_dir} %patch0 %build %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT # mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d cp -avL %{S:1} $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/viewvc.conf # viewvc ./viewvc-install --prefix "%{viewvc_dir}" --destdir "$RPM_BUILD_ROOT" # hack for usage under mod_python # http://archive.netbsd.se/?ml=viewcvs-users&a=2007-02&t=3231282 # rename /srv/viewcvs/bin/mod_python/viewvc.py to myviewvc.py # to prevent import cycle with a newer mod_python versions mv $RPM_BUILD_ROOT/srv/viewvc/bin/mod_python/viewvc.py \ $RPM_BUILD_ROOT/srv/viewvc/bin/mod_python/myviewvc.py # rm -f $RPM_BUILD_ROOT/srv/viewvc/cvsgraph.conf.dist sed ' s@^#docroot.*@docroot = /viewvc-docroot@ s@^default_root.*@default_root = your_unnamed_project@ s@^cvsgraph_conf.*@cvsgraph_conf = %{viewvc_dir}/cvsgraph.conf@ s@^hr_funout.*@hr_funout = 1@ s@^show_changed_paths.*@show_changed_paths = 0@ /^cvs_roots/,/^$/s/^/###/ /^#svn_roots/,/^$/c\ svn_roots:\ your_unnamed_project : /srv/svn/repos/<your_unnamed_project> , \ another_project : /srv/svn/repos/<another_project> \ # ' < viewvc.conf.dist > $RPM_BUILD_ROOT%{viewvc_dir}/viewvc.conf diff -up viewvc.conf.dist $RPM_BUILD_ROOT%{viewvc_dir}/viewvc.conf || true find $RPM_BUILD_ROOT%{viewvc_dir} -type d | \ sed "s@$RPM_BUILD_ROOT@%dir @" > files.viewvc find $RPM_BUILD_ROOT%{viewvc_dir} -type f | \ sed "s@$RPM_BUILD_ROOT@@;/\/templates\/\|\.conf$/s@^@%config (noreplace) @" >> files.viewvc cat files.viewvc # %files -f files.viewvc %defattr(-,root,root) %dir %{apache_sysconfdir}/conf.d %config (noreplace) %{apache_sysconfdir}/conf.d/viewvc.conf %changelog
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