File trac-plugin-stats.spec of Package trac-plugin-stats
#
# spec file for package trac-plugin-stats
#
# Copyright (c) 2023 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/
#
Name: trac-plugin-stats
Version: 0.7.1_20240419
Release: 0
URL: http://trac-hacks.org/wiki/TracStatsPlugin
Source: %{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel
BuildRequires: python3-setuptools >= 0.6c8
Requires: python3-setuptools
Requires: trac
Summary: A plugin for Trac to get statistics
License: BSD-2-Clause
Group: Development/Tools/Other
%description
The TracStatsPlugin adds a Stats tab to the trac project. Underneath this tab can be found statistics about
subversion, wiki, and ticket system.
Some features include:
Recent activity (last 30 days) showing top 10 developers, projects, and paths within the repository.
Detailed statistics of source code development:
Total files by time
Commits by time, author, month, day of week, hour of day
Recent commits
Activity by time, author, project, filetype, change type
Most active paths, files
Commit cloud (built from checkin comments)
Detailed statistics of Trac wiki pages:
Total pages by time
Edits by author
Latest wiki pages changed
Most active wiki pages
Largest wiki pages
Detailed statistics of Trac tickets:
Open tickets by time
Tickets by author, component
Most active tickets
Oldest open tickets
Latest tickets reported, changed
Drill down by author or path within the repository for more information.
Works with SQLite, MySQL, and PostgreSQL database backends.
%prep
%setup -q
%build
CFLAGS="%{optflags}" python3 setup.py build
%install
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
%files
%doc README.md TODO BUGS
%license LICENSE COPYRIGHT
%{python3_sitelib}/*
%changelog