* Update README.md * Don't include .flake8 in releases * Merge 1.1.31 and 1.2.4 CHANGES * Clean up some path handling * issue 374: Fix code formatting checks (and its findings) * Fix bump-copyright-years to list files in the current branch * Update COMMITTERS file * Bump copyright years * Rework bump-copyright-years to use 'git ls-tree' * Note removal of the commits database feature in CHANGES * Redirect the query and queryform views to the roots view * Update template authoring guide * Some markup and minor styling tweaks to the upgrading how-to * Flesh out more upgrade documentation * Remove/fix some stuff that got overlooked * Add note about dropping commits database feature to upgrading-howto.html * Begin ripping out the checkins database feature * Record issue #370 fix * issue 370: Disallow patch view on directories * issue 369: Fix 'dead' state determination when use_rcsparse=1 * HTML-escape error template dictionary items * replace imp with importlib to load authorizer modules * Used keyword argument to simplify the call. * Let py_compile decide where *.pyc files go. * issue 360: Address some review comments * Update actions * issue 360: Introduce new "image" view * Update CHANGES * standalone.py: Update command-line help for --htpasswd-file. OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/viewvc?expand=0&rev=75
109 lines
3.7 KiB
RPMSpec
109 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package viewvc
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#
|
|
%define apxs %{_bindir}/apxs
|
|
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
|
|
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
|
|
#
|
|
%define viewvc_dir /srv/viewvc
|
|
#
|
|
Name: viewvc
|
|
Version: 1.3.0~dev20250722
|
|
Release: 0
|
|
Summary: Browse a Subversion Repository with a Web Browser
|
|
License: BSD-2-Clause
|
|
Group: Development/Tools/Version Control
|
|
URL: http://www.viewvc.org/
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: viewvc.conf
|
|
Source99: viewvc-rpmlintrc
|
|
BuildRequires: apache2-devel
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-legacy-cgi
|
|
Requires: python3-legacy-cgi
|
|
Requires: subversion-python >= 1.4
|
|
Supplements: (subversion-server and apache2)
|
|
Provides: subversion-viewcvs = %{version}
|
|
Provides: viewcvs = %{version}
|
|
Obsoletes: subversion-viewcvs < %{version}
|
|
Obsoletes: viewcvs < %{version}
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
find lib/ -name "*.py" -type f \
|
|
-exec sed -i '1s|^#!.*/usr/bin/env |#!/usr/bin/|' {} \;
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf "lib/vclib/ccvs/rcsparse/test-data"
|
|
#
|
|
mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d
|
|
cp -avL %{SOURCE1} %{buildroot}/%{apache_sysconfdir}/conf.d/viewvc.conf
|
|
# viewvc
|
|
python3 ./viewvc-install --prefix "%{viewvc_dir}" --destdir %{buildroot}
|
|
#
|
|
rm -f %{buildroot}/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> \
|
|
#
|
|
' < conf/viewvc.conf.dist > %{buildroot}%{viewvc_dir}/viewvc.conf
|
|
diff -up conf/viewvc.conf.dist %{buildroot}%{viewvc_dir}/viewvc.conf || true
|
|
find %{buildroot}%{viewvc_dir} -type d | \
|
|
sed "s@%{buildroot}@%dir @" > files.viewvc
|
|
find %{buildroot}%{viewvc_dir} -type f | \
|
|
sed "s@%{buildroot}@@;/\/templates\/\|\.conf$/s@^@%config (noreplace) @" >> files.viewvc
|
|
for file in blame.py compat_difflib.py compat_ndiff.py ezt.py py2html.py query.py parse_rcs_file.py run-tests.py; do
|
|
sed -i "s|\(.*$file\)|%attr(0755,root,root) &|" files.viewvc
|
|
done
|
|
cat files.viewvc
|
|
#
|
|
|
|
%files -f files.viewvc
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%dir %{apache_sysconfdir}/conf.d
|
|
%config (noreplace) %{apache_sysconfdir}/conf.d/viewvc.conf
|
|
|
|
%changelog
|