File trac-plugin-iniadminpanel.spec of Package trac-plugin-iniadminpanel
#
# spec file for package trac-plugin-iniadminpanel
#
# 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-iniadminpanel
%define revision 18587
Version: 1.6.0_r%{revision}
Release: 1.0
URL: https://trac-hacks.org/wiki/TracIniAdminPanelPlugin
Source: iniadminpanel-r%{revision}.tar.bz2
BuildArch: noarch
BuildRequires: python3-babel >= 0.9.5
BuildRequires: python3-devel
BuildRequires: python3-setuptools >= 0.6c8
Requires: python3-setuptools
Requires: trac >= 1.6
Summary: A plugin for Trac to manage options from webinterface
License: BSD-3-Clause
Group: Development/Tools/Other
%description
This plugin allow the trac admin to edit the trac.ini file using Trac's admin
interface. Its goal is to provide the user with a complete and user-friendly
interface. The following features are provided:
* Edit and/or view one section at a time or all sections together.
* Each option comes with a lot of information (such as description, option
type, stored value, default value).
* Unobtrusive JavaScript support; i.e. the editor works without JavaScript
but the user experience is better with JavaScript enabled in the browser.
* Adding new sections and options (section entries)
* Support for a security manager. This manager controls which options can be
modified by the user and can also reject certain values for certain options.
This plugin comes with an (optional) basic security manager (see below).
* Support for marking options as "password" (e.g. for
[notification]:smtp_password) for enhanced security. Some options are
already marked as "password" by default.
%prep
%setup -qn iniadminpanel
%build
CFLAGS="%{optflags}" python3 setup.py build
CFLAGS="%{optflags}" python3 setup.py compile_catalog
%install
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
%find_lang iniadminpanel
%files -f iniadminpanel.lang
%{python3_sitelib}/*
%changelog