From 00c1a0726325a9060ff0cab7b3ff37b3a87cab66 Mon Sep 17 00:00:00 2001 From: Gianluca Sforna Date: Oct 10 2006 11:50:35 +0000 Subject: Update to 1.0.5 --- diff --git a/.cvsignore b/.cvsignore index 1227afe..9b3870c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -mantis-*.tar.gz -mantis-*.*.rpm +mantis_1.0.5.tar.gz diff --git a/mantis.spec b/mantis.spec index da588c2..43f546e 100644 --- a/mantis.spec +++ b/mantis.spec @@ -4,21 +4,20 @@ %global cfgdir %_sysconfdir/%name %global httpconfdir %_sysconfdir/httpd/conf.d -%{!?release_func:%global release_func() %1%{?dist}} - Summary: Web-based bugtracking system Name: mantis -Version: 1.0.3 -Release: %release_func 1 +Version: 1.0.5 +Release: 1%{dist} License: GPL Group: Applications/Internet -URL: http://mantisbt.sourceforge.net/ +URL: http://www.mantisbugtracker.com/ BuildArch: noarch -Source0: http://download.sourceforge.net/sourceforge/mantisbt/%name-%version.tar.gz +Source0: http://download.sourceforge.net/sourceforge/mantisbt/%{name}_%{version}.tar.gz Patch0: mantis-1.0.0a3-iis.patch Patch1: mantis-0.19.2-noexamplecom.patch Patch2: mantis-1.0.0rc2-noadmin.patch -BuildRoot: %_tmppath/%name-%version-%release-buildroot +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + BuildRequires: diffutils Requires: php Requires: mantis-config @@ -28,17 +27,15 @@ Summary: Mantis configuration for Apache httpd Group: Applications/Internet Source10: mantis-httpd.conf Provides: mantis-config = httpd -Requires: mantis = %version-%release -Requires: %httpconfdir +Requires: mantis = %{version}-%{release} +Requires: %{httpconfdir} Requires: mod_ssl Requires(post): httpd Requires(postun): httpd %description -Mantis is a web-based bugtracking system. It is in active development -and is considered beta. - +Mantis is a web-based bugtracking system. It is written in the PHP scripting language and requires the MySQL database and a webserver. Mantis has been installed on Windows, MacOS, OS/2, and a variety of Unix operating systems. Any web browser should @@ -46,14 +43,12 @@ be able to function as a client. It is released under the terms of the GNU General Public License (GPL). %description config-httpd -Mantis is a web-based bugtracking system. It is in active development -and is considered beta. - +Mantis is a web-based bugtracking system. This package contains configuration-files for Apache httpd 2. %prep -%setup -q +%setup -q -n %{name}_%{version} %patch0 -p1 -b .iis %patch1 -p1 -b .noexamplecom %patch2 -p1 -b .noadmin @@ -63,25 +58,25 @@ rm -rf packages %install -rm -rf "$RPM_BUILD_ROOT" +rm -rf "${RPM_BUILD_ROOT}" -%__install -d -m755 $RPM_BUILD_ROOT%pkgdir -%__install -d -m750 $RPM_BUILD_ROOT%cfgdir +%{__install} -d -m755 ${RPM_BUILD_ROOT}%{pkgdir} +%{__install} -d -m750 ${RPM_BUILD_ROOT}%{cfgdir} -tar cf - . | tar xf - -C $RPM_BUILD_ROOT%pkgdir +tar cf - . | tar xf - -C ${RPM_BUILD_ROOT}%{pkgdir} -find $RPM_BUILD_ROOT \( \ +find ${RPM_BUILD_ROOT} \( \ -name '*.noexamplecom' -o -name '*.iis' -o -name '*.noadmin' -o -name '*.#.*' -o \ -name '.cvsignore' \ \) -print0 | xargs -0 rm -f ## Do not rename; the *existence* of this file will be checked to ## determine if mantis is offline -mv $RPM_BUILD_ROOT%pkgdir/mantis_offline.php.sample $RPM_BUILD_ROOT%cfgdir/ -mv $RPM_BUILD_ROOT%pkgdir/config_inc.php.sample $RPM_BUILD_ROOT%cfgdir/config_inc.php +mv ${RPM_BUILD_ROOT}%{pkgdir}/mantis_offline.php.sample ${RPM_BUILD_ROOT}%{cfgdir}/ +mv ${RPM_BUILD_ROOT}%{pkgdir}/config_inc.php.sample ${RPM_BUILD_ROOT}%{cfgdir}/config_inc.php -for i in $(find $RPM_BUILD_ROOT -type f -regex '.*\.\(php\|txt\|gif\|png\|css\|htm\|dtd\|xsl\|sql\|js\|bak\|xml\|zip\)$' -perm +0111); do +for i in $(find ${RPM_BUILD_ROOT} -type f -regex '.*\.\(php\|txt\|gif\|png\|css\|htm\|dtd\|xsl\|sql\|js\|bak\|xml\|zip\)$' -perm +0111); do case $i in (*.php) if ! sed '1p;d' "$i" | grep -q '^#!'; then @@ -95,27 +90,27 @@ for i in $(find $RPM_BUILD_ROOT -type f -regex '.*\.\(php\|txt\|gif\|png\|css\|h esac done -chmod -x $RPM_BUILD_ROOT%pkgdir/{doc/*,core/phpmailer/{README,LICENSE}} +chmod -x ${RPM_BUILD_ROOT}%{pkgdir}/{doc/*,core/phpmailer/{README,LICENSE}} -ln -s %cfgdir/config_inc.php $RPM_BUILD_ROOT%pkgdir/config_inc.php -ln -s %cfgdir/mantis_offline.php $RPM_BUILD_ROOT%pkgdir/mantis_offline.php +ln -s %{cfgdir}/config_inc.php ${RPM_BUILD_ROOT}%{pkgdir}/config_inc.php +ln -s %{cfgdir}/mantis_offline.php ${RPM_BUILD_ROOT}%{pkgdir}/mantis_offline.php ## The httpd config-files function subst() { - f=$RPM_BUILD_ROOT$1 - sed -e 's!/usr/share/mantis!%pkgdir!g' "$f" >"$f".tmp + f=${RPM_BUILD_ROOT}$1 + sed -e 's!/usr/share/mantis!%{pkgdir}!g' "$f" >"$f".tmp cmp -s "$f" "$f.tmp" || cat "$f.tmp" >"$f" rm -f "$f.tmp" } -%__install -d $RPM_BUILD_ROOT%httpconfdir -%__install -p -m644 %SOURCE10 $RPM_BUILD_ROOT%httpconfdir/mantis.conf -subst %httpconfdir/mantis.conf +%{__install} -d ${RPM_BUILD_ROOT}%{httpconfdir} +%{__install} -p -m644 %{SOURCE10} ${RPM_BUILD_ROOT}%{httpconfdir}/mantis.conf +subst %{httpconfdir}/mantis.conf %clean -rm -rf "$RPM_BUILD_ROOT" +rm -rf "${RPM_BUILD_ROOT}" %post config-httpd @@ -127,17 +122,20 @@ rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root,-) -%pkgdir -%attr(-,root,apache) %dir %cfgdir -%attr(0640,root,apache) %config(noreplace) %cfgdir/* +%{pkgdir} +%attr(-,root,apache) %dir %{cfgdir} +%attr(0640,root,apache) %config(noreplace) %{cfgdir}/* %files config-httpd %defattr(-,root,root,-) -%config(noreplace) %httpconfdir/* +%config(noreplace) %{httpconfdir}/* %changelog +* Tue Oct 10 2006 Gianluca Sforna - 1.0.5-1 +- updated to 1.0.5 + * Sat May 20 2006 Enrico Scholz - 1.0.3-1 - updated to 1.0.3 (SECURITY) diff --git a/needs.rebuild b/needs.rebuild deleted file mode 100644 index 815fd29..0000000 --- a/needs.rebuild +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild diff --git a/sources b/sources index 937fce5..72a644d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6c70d00da4cad5da2e0df387f474d3e4 mantis-1.0.3.tar.gz +01c5fb87e5ac161a681471573711bcf6 mantis_1.0.5.tar.gz