rpms/mantis/FC-5 mantis.spec,1.11,1.12
Gianluca Sforna (giallu)
fedora-extras-commits at redhat.com
Fri Oct 13 09:54:57 UTC 2006
Author: giallu
Update of /cvs/extras/rpms/mantis/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21582
Modified Files:
mantis.spec
Log Message:
Update to 1.0.5
Index: mantis.spec
===================================================================
RCS file: /cvs/extras/rpms/mantis/FC-5/mantis.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- mantis.spec 22 May 2006 06:32:40 -0000 1.11
+++ mantis.spec 13 Oct 2006 09:54:57 -0000 1.12
@@ -1,24 +1,23 @@
# $Id$
-%global pkgdir %_datadir/%name
-%global cfgdir %_sysconfdir/%name
-%global httpconfdir %_sysconfdir/httpd/conf.d
-
-%{!?release_func:%global release_func() %1%{?dist}}
+%global pkgdir %{_datadir}/%{name}
+%global cfgdir %{_sysconfdir}/%{name}
+%global httpconfdir %{_sysconfdir}/httpd/conf.d
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 @@
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 @@
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 @@
%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 @@
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 @@
%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 <giallu gmail com> - 1.0.5-1
+- updated to 1.0.5
+
* Sat May 20 2006 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 1.0.3-1
- updated to 1.0.3 (SECURITY)
More information about the scm-commits
mailing list