LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File trac-plugin-stats.spec of Package trac-plugin-stats (Project devel:tools:scm)

#
# spec file for package trac-plugin-stats
#
# Copyright (c) 2013 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/
#


Name:           trac-plugin-stats
Version:        0.5
Release:        0
Url:            http://trac-hacks.org/wiki/TracStatsPlugin
Source:         %{name}-%{version}.tar.bz2
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools >= 0.6c8
%py_requires
Requires:       python-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}" %{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README TODO LICENSE COPYRIGHT BUGS

%changelog