Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:php:applications
mantisbt
mantisbt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mantisbt.spec of Package mantisbt
# # spec file for package mantisbt # # 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/ # %define apache_serverroot /srv/www/htdocs/%{name} %define php_libdir %{_datadir}/php%(echo %{php_version}|sed -e 's/[\.].*//') Name: mantisbt Version: 2.26.0 Release: 0 Summary: A free popular web-based bugtracking system License: GPL-2.0-or-later Group: Productivity/Networking/Web/Servers URL: https://www.mantisbt.org/ Source0: https://sourceforge.net/projects/%{name}/files/mantis-stable/%{version}/%{name}-%{version}.tar.gz Source1: https://sourceforge.net/projects/%{name}/files/mantis-stable/%{version}/%{name}-%{version}.tar.gz.asc Source2: %{name}.keyring Source3: README.SUSE BuildRequires: fdupes BuildRequires: php-devel Requires: http_daemon Requires: mod_php_any >= 7.2.5 Requires: php-fileinfo Requires: php-gd Requires: php-mbstring Requires: php-mysql Requires: php-session Requires: php-soap Provides: mantis = %{version} BuildArch: noarch %description MantisBT is a free popular web-based bugtracking system. It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver. MantisBT has been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should be able to function as a client. %prep %setup -q cp %{SOURCE3} doc/ # Remove not needed files.. rm -f \ core/adodb/drivers/adodb-sqlite.inc.php.bak \ .gitignore \ .imgbotconfig \ .mailmap \ scripts/travis_*.sh \ vendor/doctrine/instantiator/.scrutinizer.yml \ vendor/nikic/fast-route/.hhconfig \ vendor/sebastian/diff/.php_cs \ vendor/webmozart/assert/.composer-auth.json \ vendor/webmozart/assert/.styleci.yml rm -rf vendor/pimple/pimple/ext # unused scripts rm -f vendor/adodb/adodb-php/scripts/* rm -f vendor/doctrine/instantiator/.travis.install.sh # the adodb server is not required but opens issue #CVE-2018-6382 rm -f vendor/adodb/adodb-php/server.php %build %install mkdir -p %{buildroot}%{apache_serverroot} chmod 755 `find . -type d` chmod 644 `find . -type f` cp -pr . %{buildroot}%{apache_serverroot} # move installation files to shared directories, should not be available in # running installations but is required for updates mkdir -p %{buildroot}%{php_libdir}/%{name} mv %{buildroot}%{apache_serverroot}/admin %{buildroot}%{php_libdir}/%{name}/admin %fdupes %{buildroot}%{apache_serverroot} %fdupes %{buildroot}%{php_libdir}%{name} %post if [ $1 > 1 ] ; then echo 'Upgrade mantisbt installation' if [ -e %{apache_serverroot}/admin ] ; then rm -rf %{apache_serverroot}/admin fi cp -a %{php_libdir}/%{name}/admin %{apache_serverroot} pushd %{apache_serverroot}/admin > /dev/null php upgrade_unattended.php popd > /dev/null rm -rf %{apache_serverroot}/admin fi %check # can no run tests because tests are not packaged within the distribution %files %defattr(-, root, www) %license doc/LICENSE %doc doc/CREDITS %doc doc/README.SUSE %doc %{apache_serverroot}/SECURITY.md %doc %{apache_serverroot}/README.md %doc %{apache_serverroot}/KEYS.md %exclude %{apache_serverroot}/phpunit.xml %exclude %{apache_serverroot}/vendor/nikic/fast-route/test %exclude %{apache_serverroot}/vendor/pimple/pimple/src/Pimple/Tests %{apache_serverroot}/*.php %{apache_serverroot}/*.sample %{apache_serverroot}/api/* %{apache_serverroot}/config/* %{apache_serverroot}/core/* %{apache_serverroot}/css/* %{apache_serverroot}/fonts/* %{apache_serverroot}/doc/* %{apache_serverroot}/images/* %{apache_serverroot}/js/* %{apache_serverroot}/lang/* %{apache_serverroot}/library/* %{apache_serverroot}/plugins/* %{apache_serverroot}/scripts/Web.config %{apache_serverroot}/scripts/README.md %{apache_serverroot}/config/.htaccess %{apache_serverroot}/core/.htaccess %{apache_serverroot}/fonts/.htaccess %{apache_serverroot}/lang/.htaccess %{apache_serverroot}/library/.htaccess %{apache_serverroot}/plugins/.htaccess %{apache_serverroot}/scripts/.htaccess %attr(750, root, www) %{apache_serverroot}/scripts/*.php %dir %{apache_serverroot} %dir %{apache_serverroot}/api %dir %{apache_serverroot}/config %dir %{apache_serverroot}/core %dir %{apache_serverroot}/css %dir %{apache_serverroot}/doc %dir %{apache_serverroot}/fonts %dir %{apache_serverroot}/images %dir %{apache_serverroot}/js %dir %{apache_serverroot}/lang %dir %{apache_serverroot}/library %dir %{apache_serverroot}/plugins %dir %{apache_serverroot}/scripts %{apache_serverroot}/vendor %{php_libdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor