# # spec file for package trac # # Copyright (c) 2019 SUSE LLC # Copyright (c) 2007-2010 Herbert Graeber # Copyright (c) 2009-2010 Pascal Bleser # # 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 Version: 1.4.1 Release: 1.2 Summary: Integrated SCM, Wiki, Issue Tracker and Project Environment License: BSD-3-Clause Group: Development/Tools/Other URL: http://trac.edgewall.com Source0: http://download.edgewall.org/trac/Trac-%{version}.tar.gz Source1: tracd.init Source2: tracd.sysconfig Source3: trac.conf Source4: README.SUSE.html Source5: trac24.conf Source99: trac-rpmlintrc BuildRequires: fdupes BuildRequires: python2-jinja2 BuildRequires: python2-babel >= 0.9.5 BuildRequires: python2-devel >= 2.3 BuildRequires: python2-genshi >= 0.6 BuildRequires: python2-setuptools >= 0.6 Requires: python2-jinja2 Requires: python2-pygments Requires: python2-babel >= 0.9.5 Requires: python2-configobj Requires: python2-genshi >= 0.6 Requires: python2-setuptools >= 0.6 Requires: python2-tz Provides: trac-webadmin = 0.1.2-7 Obsoletes: trac-webadmin < 0.1.2-7 BuildRoot: %{_tmppath}/%{name}-%{version}-build %py_requires %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif %description Trac is a minimalistic web-based software project management and bug/issue tracking system. It provides an interface to the Subversion revision control systems, an integrated wiki, flexible issue tracking and convenient report facilities. %package server Summary: Trac standalone Server Group: Development/Tools/Other Requires: %{name} = %{version} # FIXME: use proper Requires(pre/post/preun/...) PreReq: %insserv_prereq %fillup_prereq %description server The Trac standalone server. Do not use this for production. %prep %setup -q -n "Trac-%{version}" cp %{SOURCE4} . sed -i 's/\r//' contrib/trac-svn-post-commit-hook.cmd %build sed -i "s|^\(#! */usr/bin/\)env |\1|" contrib/*.py contrib/trac-pre-commit-hook contrib/workflow/workflow_parser.py trac/admin/console.py trac/test.py trac/web/cgi_frontend.py trac/web/fcgi_frontend.py trac/web/standalone.py CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags}" python setup.py compile_catalog %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES mkdir -p "%{buildroot}/%{_sysconfdir}/apache2/conf.d" python -m compileall $RPM_BUILD_ROOT%{py_sitedir} python -O -m compileall $RPM_BUILD_ROOT%{py_sitedir} find $RPM_BUILD_ROOT%{py_sitedir} -name '*.pyo' | sed "s|$RPM_BUILD_ROOT||" >>INSTALLED_FILES %if 0%{?suse_version} >= 1320 cp -a "%{SOURCE5}" "%{buildroot}/%{_sysconfdir}/apache2/conf.d/trac.conf" %else cp -a "%{SOURCE3}" "%{buildroot}/%{_sysconfdir}/apache2/conf.d/trac.conf" %endif install -dm 0750 %{buildroot}/srv/trac install -Dm 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/tracd install -dm 0755 %{buildroot}%{_sbindir} ln -s %{_sysconfdir}/init.d/tracd %{buildroot}%{_sbindir}/rctracd install -Dm 0600 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.tracd %if 0%{?suse_version} > 1020 %fdupes %{buildroot}/%{_prefix} %endif %pre # save the trac.ini from /usr/share/trac/conf if it exists... if [ "$1" -ge 2 ]; then if [ \! -e %{_sysconfdir}/trac/trac.ini -a -r %{_datadir}/trac/conf/trac.ini ]; then if [ \! -e %{_sysconfdir}/trac ]; then mkdir %{_sysconfdir}/trac; fi mv %{_datadir}/trac/conf/trac.ini %{_sysconfdir}/trac/trac.ini.backup fi fi %preun server %stop_on_removal tracd %postun server %restart_on_update tracd %insserv_cleanup %post # ... and save it as new try.ini in /etc/trac.ini if this doesn't exist if [ "$1" -ge 2 ]; then if [ -r %{_sysconfdir}/trac/trac.ini.backup ]; then mv %{_sysconfdir}/trac/trac.ini %{_sysconfdir}/trac/trac.ini.rpmnew mv %{_sysconfdir}/trac/trac.ini.backup %{_sysconfdir}/trac/trac.ini fi fi %post server %fillup_and_insserv -n tracd tracd %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc AUTHORS ChangeLog README.rst README.SUSE.html RELEASE.rst THANKS UPGRADE.rst contrib %if 0%{suse_version} >= 1500 %license COPYING %else %doc COPYING %endif %exclude %{_bindir}/tracd %dir %{_sysconfdir}/apache2 %dir %{_sysconfdir}/apache2/conf.d %config(noreplace) %{_sysconfdir}/apache2/conf.d/trac.conf %attr(0750,root,www) /srv/trac %files server %defattr(-,root,root) %{_sysconfdir}/init.d/tracd %{_bindir}/tracd %{_sbindir}/rctracd %{_fillupdir}/sysconfig.tracd %changelog * Fri Dec 20 2019 Dirk Stoecker - update to Trac 1.4 Release notes see https://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.4 - Drop depo.fix * Sat Sep 22 2018 Dirk Stoecker - Fix german language (depo.fix) * Tue Aug 28 2018 them4z@gmail.com - Change spelling of python-pygments requirement to avoid a possible singlespec problem * See https://lists.opensuse.org/opensuse-packaging/2018-08/msg00097.html * Tue Aug 28 2018 Dirk Stoecker - update to Trac version 1.2.3 * Extensible notification system (#3517) * Notification preference panel (#4056) * Usernames replaced with full names (#7339) * Restyled ticket changelog (#11835) * Workflow controls on the New Ticket page (#2045) * Editable wiki page version comments (#6573) * Datetime custom fields (#1942) * Mon Aug 27 2018 them4z@gmail.com - Use _fillupdir macro * See https://lists.opensuse.org/opensuse-factory/2017-11/msg00622.html * Wed Sep 20 2017 opensuse@dstoecker.de - update to Trac 1.2.2 * Trac 1.2.2 provides close to 2 dozen minor fixes and enhancements. The following are some highlights: * Invalid logging configuration changes made through the Logging admin page won't disable a Trac instance (#8790). * Fix for regression that prevented PermRedirectPlugin from redirecting (#12818) * Trac 1.2.1, the first maintenance release in the 1.2.x series, provides more than 30 minor fixes and enhancements. The following are some highlights: * TracIni macro generates anchors for each option (#9401) and allows specifying exact options and sections to be rendered (#12633) * Several fixes for the enhanced Trac notification system (#11928, #12658, #12700) * Improved usability of ticket comment Reply and Edit buttons (#12671) * Restored missing ticket change conflict markers (#12730) * Wed Feb 8 2017 opensuse@dstoecker.de - update to Trac 1.2 * There are API changes to previous versions. Updates of plugins may be required. * Fri Sep 9 2016 opensuse@dstoecker.de - update to 1.0.12 * Trac 1.0.12 provides around 20 bug fixes and minor enhancements. The following are some highlights: * Reconnect to PostgreSQL server after restarting it (#4984). * Workflow actions on the batch modify form are sorted by the default attribute (#12447). * Fixed Pygments stylesheet not found when style name contained a dash (#12505). * Fixed incorrect parsing of projects list file by GitwebProjectsRepositoryProvider (#12518). * TracIni macro displays option documentation as multi-line rather than one-liner (#12522). * Fixed regression with GitConnector leading to IOError: Too many open files (#12524). * Trac 1.0.11 provides more than 30 bug fixes and minor enhancements. As in 1.0.10, an area of focus has been to eliminate tracebacks in the logs due to invalid requests. The following are some additional highlights: * Fixed resetting Oldest first after auto-preview of ticket change log (#12381). * Trac is now distributed as wheel package (#12391). * Fixed database exceptions in query system when milestones/versions/enums are not defined and a custom field of the same name is added (#12399). * Custom field milestone was not shown when standard milestone field was hidden (#12400). * Query system now sorts by enum.value rather than ticket.type for order=type (#12402). * Added support for Babel 2.3.2 (2.3.0 and 2.3.1 should not be used) (#12445). * Sun Feb 21 2016 opensuse@dstoecker.de - update to 1.0.10 * Trac 1.0.10 provides more than 30 bug fixes and minorenhancements. Two areas of focus have been fixing test failures on Windows and eliminating tracebacks in the logs due to invalid requests. * Thu Jan 21 2016 opensuse@dstoecker.de - update to version 1.0.9 * Trac 1.0.9 provides more than a dozen minor fixes and enhancements, including significantly reduced memory usage by the Git repository connector. * Tue Sep 1 2015 chris@computersalat.de - update to 1.0.8 * Trac 1.0.8 fixes a regression introduced in Trac 1.0.7: the session for an authenticated username containing non-alphanumeric characters could not be retrieved, resulting in the user being denied access to every realm and resource (#12129). - update to 1.0.7 * Trac 1.0.7 contains more than a dozen minor fixes and enhancements, including the following highlights: * Custom `svn:keywords` definitions are expanded in Subversion 1.8 and later (#11364). * Fixed MySQL performance regression in query with custom fields (#12113). * Mon Jun 22 2015 jweberhofer@weberhofer.at - reformatted spec using spec-cleaner - removed several build warnings "non-break-space" by replacing strange spaces in regular spaces within the changelog for version 1.0.2 - update to bugfix release 1.0.6 * Hash changeset ids are not allowed in revision log (#11050) * Trap exceptions from invalid database connection string (#11415) * Ability to send chunked response in Request.send (#11802) * Improve git repository performance (#11971) * Limit parameter in log view has off-by-one error (#11979) * Add support for the nginx X-Accel-Redirect header (#11981) * Cannot connect PostgreSQL database if password uses single quote characters * (#11983) * Release Trac 1.0.6 / 1.1.5 (#11987) * Repository admin message assumes all non-editable repositories are defined in trac.ini (#11994) * postgres_backend does not quote all identifiers (#11998) * Errors from ca localization when running easy_install (#11999) * Symbolic link for trac.ini overwritten when saving Configuration object (#12000) * Use lower logging level for "Invalid unified diff content" (#12005) * Use lower logging level for "Invalid Date" (#12007) * Failures of trac.tests.config on Windows since Trac 1.1.3 (#12019) * Test failures on OSX due to incorrect unicode normalization (#12020) * [wiki] wikiprocessor fails to properly render tag attributes with dashes hyphens eg. "data-collapse" (#12023) * Use namedtuple for RevCache in PyGIT module (#12027) * Intermittent test failures in Travis CI (#12039) * About page doesn't use access key as documented (#12045) * Inconsistent title attribute on Admin navigation item (#12049) - update to bugfix release 1.0.5 * wiki [[Image(URL)]] breaks when the URL contains commas (#8168) * Mention hotcopy in UPGRADE document (#10102) * Image macro now shows up in inline wiki markup (#10751) * Test failures in trac.wiki.tests.formatter when executed in isolation (#11316) * Ignore whitespace changes does not always work (#11687) * [PATCH] Image links based on RFC2397 not supported (#11773) * UnicodeError with its traceback should be logged while rendering genshi template (#11780) * FCGI gateway does not adequately detect URL scheme (#11793) * BaseException.message has been deprecated as of Python 2.6 (#11886) * Configuration.parse_if_needed takes forever to reload if clock is going back (#11904) * AttributeError: 'NoneType' object has no attribute 'get_youngest_rev' (#11912) * Release Trac 1.0.5 / 1.1.4 (#11914) * Workflow macro should trap exceptions when parsing content (#11915) * query:? link with duplicated group parameters leads a TypeError (#11920) * CachedRepository._next_prev_rev is very slow if node_change table is too large on mysql (#11955) * MilestoneOperation hint is incorrect if milestone doesn't exist (#11962) * Tag in git repository is not shown in browser view (#11964) * Support of journal_mode=WAL and synchronous=NORMAL in SQLite (#11967) * Historian leaves the git log instance open (#11973) * TICKET_BATCH_MODIFY defined if BatchModifyModule disabled (#11974) * Sun Feb 8 2015 opensuse@dstoecker.de - update to bugfix release 1.0.4 * Mon Jan 19 2015 opensuse@dstoecker.de - update to version 1.0.3 - Graph log support in the revision log (#1492) - Added support for Git (#10594) - Refreshed default theme for the user interface (#10012) - Added TracBatchModify functionality (#525) - Added workflow graph visualization macro (#10270) - Improved date / time handling (#9777, #10245, #10756) * Thu Dec 11 2014 jengelh@inai.de - Avoid potentially running fdupes on etc/ - Apache 2.4 needs "Require all granted" for /trac to not run into a 403 error. * Sun Oct 26 2014 opensuse@dstoecker.de - update to 1.0.2 - Subversion keywords are expanded and EOL substitutions made when viewing a file in the repository browser and when downloading a file (#717). - Notification email is sent to the old owner when a ticket is reassigned (#2311). - Ticket change history is updated when renaming and deleting a milestone, and when retargeting tickets to another milestone (#4582, #5658). - Numerous fixes for the Authz permissions policy in the browser/repository (#10961, #11646), wiki (#8976, #11067), admin (#11069) and report (#11176) realms. - Multiple form submits are disallowed (#10138). - `ConfigurationError` is raised if any of the `permission_policies` can't be loaded, preventing possible information leakage due to internal and installation errors (#10285). - Wiki toolbars can be disabled through a configuration setting (#10837) - The number of entries in a table is shown next to heading on applicable admin pages (#11027). - //Cancel// buttons are consistently located on all pages (#11076). - Focus is placed on a text element when an edit page is loaded (#11084). - The //Edit conflict// and //Merge// warning messages are always visible in side-by-side edit mode (#11102). - Improvements to the layout of the Report (#11106, #11664) and Ticket pages (#11471). - Genshi 0.7 compatibility (#11218). - Numerous minor fixes for Git repository support. * Thu Sep 5 2013 opensuse@dstoecker.de - require python-configobj, or AuthzPolicy will silently fail * Wed Feb 6 2013 opensuse@dstoecker.de - update to maintenance relase trac 1.0.1 * Fix zip source download for large directories in Subversion repositories * Performance improvement for the Roadmap, by caching milestone properties * Added a ''select all'' checkbox to table of components for each plugin on the Plugins admin panel * Restore the ''Modify'' link at the top of the ticket page, as it was in Trac 0.12 * `ListOption` keeps values other than empty string and None in raw list as default * Prevent possibility of multiple identical info or warning messages being presented to the user * The BatchModify select-all checkboxes are toggled with tri-state behavior when the ticket checkboxes are toggled * Update the ticket changetime to the current time when deleting a ticket comment * Mon Sep 10 2012 opensuse@dstoecker.de - update to version 1.0 * Graph log support in the revision log (#1492) * Added support for Git (#10594) * Refreshed default theme for the user interface (#10012) * Added TracBatchModify functionality (#525) * Added workflow graph visualization macro (#10270) * Improved date / time handling (#9777, #10245, #10756) - remove trac auth patch as upstream did not accept it * Mon Apr 23 2012 opensuse@dstoecker.de - Update to 0.12.3 * compatibility with Subversion 1.7 (#10414) * easier troubleshooting of common startup errors (#10024) * jQuery upgraded to 1.4.4 (#10001) * improve fine-grained permission handling in the source browser (#9976, #10208, #10110) * added compatibility with MySQL 5.5.3 utf8mb4 databases (#9766) * Sat Apr 23 2011 koprok@nand.bg - fix the installation of /etc/sysconfig/tracd * Fri Feb 4 2011 bitshuffler@opensuse.org - Update to 0.12.2 * install: improved robustness of Trac installation if Babel is installed after the fact (#9439, #9595, #9961) * notifications: support for Asian character width (#4717) * roadmap: fix display of progress bar in some corner cases (#9718) and respect the overall_completion milestone group setting (#9721) * reports: reports and queries look much better, as the columns now keep the same width across groups; the absence of word wrapping in reports has been fixed (#9825) * web admin: improved layout (#8866, #9963) * web: it's now possible to log in different Trac instances sharing the same URL prefix (e.g. /project and /project-test) (#9951) * Mon Oct 11 2010 pascal.bleser@opensuse.org - update to 0.12.1: * db: improve concurrency behavior (#9111) * fcgi: add an environment variable TRAC_USE_FLUP to control the usage of flup vs. bundled _fcgi.py (defaults to 0, i.e. use bundled as before) * svn authz: improve compatibility with svn 1.5 format (#8289) * milestone: allow to set the time for the due date (#6369, #9582) * ticket: fixes for the CC: property (#8597, #9522) * notification: improved the formatting of ticket fields in notification e-mails (#9484, #9494) * i18n: added a configuration option to set the default language (#8117) * several fixes for upgrade (#9400, #9416, #9483, #9556) - spec file cleanup - add rpmlintrc * Tue Jun 15 2010 opensuse@dstoecker.de - Update to 0.12 - multi repository handling may need adjustements to configuration, be careful when updating from previous versions * Tue May 18 2010 chris@computersalat.de - patch with fuzz=0 * Wed Mar 10 2010 nix@opensuse.org - Update to 0.11.7 * Sun Nov 29 2009 bitshuffler@opensuse.org - Updated to 0.11.6 * Thu Oct 1 2009 bitshuffler@opensuse.org - Make root:www the owner of /srv/trac instead of wwwrun:www * Mon Sep 28 2009 bitshuffler #suse@irc.freenode.org - Split -server package - Removed unnecessary Requires and BuildRequires - moved CGI scipts to /usr/share/trac/cgi-bin - Adapted trac.conf - Added Requires for python-pygments & python-tz * Sat Jul 18 2009 pascal.bleser@opensuse.org - update to 0.11.5: * bugfixes and minor enhancements * implements pre-upgrade backup support for PostgreSQL and MySQL * more robust diff parsing * Wed Jun 3 2009 anschneider@exsuse.de - Fix the installation of the cgi scripts. * Thu May 14 2009 herbert@graeber-clan.de - add support for cgi and fcgi * Thu Apr 2 2009 herbert@graeber-clan.de - update to version 0.11.4 * Custom mainnav links regression * Fixed Python 2.3 incompatibility * Fixed Python 2.6 notification issue * Fixed PostgreSQL multi column index issue * Wed Feb 18 2009 herbert@graeber-clan.de - update to version 0.11.3 * Compatibility with Python 2.6 (#7876, #7458) * PostgreSQL db backend improvement (#4987, #7600) * Highlighting of search results is more robust (#7324, #7830) * Unicode related fixes (#7672, #7959, #7845, #7935, #8024) * Fixed Trac link rendering in ReST (#7712) * Sun Nov 9 2008 herbert@graeber-clan.de - Update to version 0.11.2 * Fixes potential DOS vulnerability with certain wiki markup. * Improved HTML sanitizer filter to detect possible phishing attempts. Reported by Simon Willison. * MySQL db backend improvement (reconnect after idle timeout #4465) * TicketQuery speed improvements (#6436) * fixes for RSS feeds (timeline entries no longer truncated #7316, no longer download some feeds under Firefox #3899) * search now works for custom fields (#2530) * same order for ticket fields for new and existing tickets (#7018) * enforce fine-grained permission for "quickjump" search results (#7655) * e-mail obfuscation was not done in a few remaining places (#7688, #6532) * uninstall of plugins from WebAdmin was not working - feature disabled for now * more robust pagination of results for reports and custom queries (#7424, #7544) * support for newer version of pygments (#7622) * documentation updated (#7603, #7205, #7318) * better support for Wiki page hierarchy (show path #2780, link to parent #2150) * custom query allow to search in description and other text fields (#4824) - Add Short-Description to tracd init script * Wed Nov 5 2008 herbert@graeber-clan.de - Build requires apache2 for configuration directories - add /etc/trac to file list * Sun Oct 5 2008 herbert@graeber-clan.de - Update to version 0.11.1 - Tracd needs python-setuptools * Wed Aug 6 2008 herbert@graeber-clan.de - Update of the trac.ini template file * Tue Jun 24 2008 herbert@graeber-clan.de - Update to version 0.11 * Sun Dec 2 2007 herbert@graeber-clan.de - Fixed location of trac.ini in siteconfig.py * Sat Dec 1 2007 herbert@graeber-clan.de - Moved the trac.ini file into /etc/trac. Try to relocate it from /usr/share/trac/conf if possible. [#343646] - Make the trac_auth domain configurable [#344775] * Sat Nov 24 2007 herbert@graeber-clan.de - no reqirement for python-sqlite in openSUSE 10.3 * Fri Nov 23 2007 herbert@graeber-clan.de - Fixed generation of siteconfig.py - Marked trac.conf with noreplace flag - Added an example trac.ini * Tue Nov 20 2007 herbert@graeber-clan.de - Added "PythonInterpreter main_interpreter" to trac.conf as suggested by http://trac.edgewall.org/wiki/TracModPython (Fixes #343045) * Thu Jun 7 2007 herbert@graeber-clan.de - Fixed some wrong paths and typos in README.SUSE.html * Sun Apr 22 2007 herbert@graeber-clan.de - update to version 0.10.4 * Repository cache improvements: More robust repository cache synchronizing Improved trac-admin resync command * Fix a possible freeze under heavy load * Improved MySQL support * Better documentation for MySQL support (see MySqlDb) * Slightly improved key size for the revision index, but the limitation is still there * Several other minor fixes * Thu Mar 8 2007 herbert@graeber-clan.de - update to version 0.10.3.1 (Major security fixes) * Mon Mar 5 2007 herbert@graeber-clan.de - no requirement of python-sqlite for openSUSE > 10.2 (already part of python 2.5). * Wed Jan 31 2007 herbert@graeber-clan.de - fixed wrong -q option in /etc/init.d/tracd * Tue Dec 12 2006 herbert@graeber-clan.de - update to version 0.10.3 * Tue Nov 14 2006 herbert@graeber-clan.de - update to version 0.10.2 (security fix) * Thu Nov 9 2006 herbert@graeber-clan.de - update to version 0.10.1 (security fix) * Tue Oct 3 2006 herbert@graeber-clan.de - make it python 2.5 compatible * Mon Oct 2 2006 herbert@graeber-clan.de - update to version 0.10 - migrated into the SUSE build service * Fri Jul 7 2006 herbert@graeber-clan.de - added python-devel to requirements (needed for plugins) * Thu Jul 6 2006 herbert@graeber-clan.de - update to version 0.9.6 * Fri Apr 21 2006 herbert@graeber-clan.de - update to version 0.9.5 * Thu Apr 13 2006 herbert@graeber-clan.de - added a --prefix to installation (for SUSE 10.1) * Sun Feb 26 2006 herbert@graeber-clan.de - update to version 0.9.4 * Wed Feb 8 2006 herbert@graeber-clan.de - initial version (not published)