%define serverdir %(apxs -q htdocsdir 2>/dev/null) # To create a customized installation of bbPress: # autospec -u bbpress -a5 \ # -d "installdir=%serverdir/../www.example.com, \ # sitename=example, \ # adminmail=webmaster@example.com" %if "%{?installdir}" == "" %define installdir %{serverdir}/mantis %endif %if "%{?sitename}" != "" %if "%{?servername}" == "" %define servername %(basename %installdir 2>/dev/null) %endif %define serverlogdir %(apxs -q logfiledir 2>/dev/null) %else %if "%{?aliasdir}" == "" %define aliasdir /mantis %endif %endif Name: %{?sitename:%sitename-website-}mantis Version: 2.26.1 Release: 1mamba Summary: A free popular web-based bugtracking system Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.mantisbt.org/ Source: http://downloads.sourceforge.net/project/mantisbt/mantis-stable/%{version}/mantisbt-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildArch: noarch %description Mantis 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. Mantis has been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should be able to function as a client. It is released under the terms of the GNU General Public License (GPL). %prep %setup -q -n mantisbt-%{version} %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{installdir} cp -a * %{buildroot}%{installdir} install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d %if "%{?sitename}" != "" cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{servername}.conf << EOF %else cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF %endif %if "%{?sitename}" == "" %if "%(dirname %installdir)" != "%{serverdir}" Alias %{aliasdir} %{installdir} %endif %endif AllowOverride Options Order allow,deny Allow from All %if "%{?sitename}" != "" %if "%(dirname %installdir)" != "%{serverdir}" %{?adminmail:ServerAdmin %adminmail} DocumentRoot %{installdir} ServerName %{servername} ErrorLog %{serverlogdir}/%{servername}-error_log CustomLog %{serverlogdir}/%{servername}-access_log common %endif %endif EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then [ -e %{_localstatedir}/lock/subsys/httpd ] && service httpd reload || : fi : %preun if [ $1 -eq 0 ]; then #erase [ -e %{_localstatedir}/lock/subsys/httpd ] && service httpd reload || : fi : %files %defattr(-,root,root) %dir %{installdir} %{installdir}/* %if "%{?sitename}" != "" %config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{servername}.conf %else %config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf %endif %changelog * Sat Mar 23 2024 Automatic Build System 2.26.1-1mamba - automatic version update by autodist * Mon Nov 20 2023 Automatic Build System 2.26.0-1mamba - automatic version update by autodist * Fri Oct 20 2023 Automatic Build System 2.25.8-1mamba - automatic version update by autodist * Mon Apr 24 2023 Automatic Build System 2.25.7-1mamba - automatic version update by autodist * Sat Mar 11 2023 Automatic Build System 2.25.6-1mamba - automatic version update by autodist * Fri Jun 24 2022 Automatic Build System 2.25.5-1mamba - automatic version update by autodist * Fri May 20 2022 Automatic Build System 2.25.4-1mamba - automatic version update by autodist * Fri Apr 15 2022 Automatic Build System 2.25.3-1mamba - automatic version update by autodist * Mon Jun 21 2021 Automatic Build System 2.25.2-1mamba - automatic version update by autodist * Sat May 15 2021 Automatic Build System 2.25.1-1mamba - automatic version update by autodist * Sat Mar 13 2021 Automatic Build System 2.25.0-1mamba - automatic version update by autodist * Wed Feb 10 2021 Automatic Build System 2.24.4-1mamba - automatic version update by autodist * Sun Oct 22 2017 Automatic Build System 2.1.0-1mamba - automatic update by autodist * Sat Feb 07 2015 Automatic Build System 1.2.19-1mamba - automatic update by autodist * Sat Dec 06 2014 Automatic Build System 1.2.18-1mamba - automatic update by autodist * Sun May 25 2014 Automatic Build System 1.2.17-1mamba - automatic update by autodist * Wed Feb 12 2014 Automatic Build System 1.2.16-1mamba - automatic update by autodist * Tue Apr 16 2013 Automatic Build System 1.2.15-1mamba - automatic version update by autodist * Sat Mar 02 2013 Automatic Build System 1.2.14-1mamba - automatic version update by autodist * Wed Feb 06 2013 Silvan Calarco 1.2.12-2mamba - fix apxs path * Wed Nov 21 2012 Automatic Build System 1.2.12-1mamba - update to 1.2.12 * Sat Aug 11 2012 Automatic Build System 1.2.11-1mamba - automatic version update by autodist * Wed Apr 25 2012 Automatic Build System 1.2.9-1mamba - automatic version update by autodist * Tue May 17 2011 Automatic Build System 1.2.5-1mamba - automatic update by autodist * Fri Oct 01 2010 Automatic Build System 1.2.3-1mamba - automatic update by autodist * Mon Aug 09 2010 Automatic Build System 1.2.2-1mamba - automatic update by autodist * Mon Jun 21 2010 Automatic Build System 1.2.1-1mamba - automatic update by autodist * Sun Mar 14 2010 Automatic Build System 1.2.0-1mamba - automatic update by autodist * Wed Oct 21 2009 Automatic Build System 1.1.8-1mamba - update to 1.1.8 * Tue Dec 02 2008 Silvan Calarco 1.1.4-1mamba - update to 1.1.4 * Tue Dec 04 2007 Silvan Calarco 1.1.0rc3-1mamba - package created by autospec