[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/mantis/devel mantis.spec,1.6,1.7



Author: ensc

Update of /cvs/extras/rpms/mantis/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3218

Modified Files:
	mantis.spec 
Log Message:
- updated to 1.0.0a3
- removed the part which created the psql-script; upstream has now a
  working PostgreSQL database creation script
- rediffed the -iis patch
- added patch to make upgrade functionionality partially working with
  PostgreSQL; this is not perfect as things like index creation will
  still fail



Index: mantis.spec
===================================================================
RCS file: /cvs/extras/rpms/mantis/devel/mantis.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mantis.spec	19 May 2005 17:33:15 -0000	1.6
+++ mantis.spec	25 Jun 2005 14:45:53 -0000	1.7
@@ -1,24 +1,27 @@
 # $Id$
 
-%global pkgdir		%{_datadir}/%{name}
-%global cfgdir		%{_sysconfdir}/%{name}
-%global httpconfdir	%{_sysconfdir}/httpd/conf.d
+%global alpha		a3
+
+%global pkgdir		%_datadir/%name
+%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:	0.19.2
-Release:	%release_func 2
+Version:	1.0.0
+Release:	%release_func 0.1.%alpha
 License:	GPL
 Group:		Applications/Internet
 URL:		http://mantisbt.sourceforge.net/
 BuildArch:	noarch
-Source0:	http://download.sourceforge.net/sourceforge/mantisbt/%{name}-%{version}%{?alpha}.tar.gz
-Patch0:		mantis-0.19.2-iis.patch
+Source0:	http://download.sourceforge.net/sourceforge/mantisbt/%name-%version%{?alpha}.tar.gz
+Patch0:		mantis-1.0.0a3-iis.patch
 Patch1:		mantis-0.19.2-noexamplecom.patch
 Patch2:		mantis-0.19.2-noadmin.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Patch3:		mantis-1.0.0a3-nonmysql.patch
+BuildRoot:	%_tmppath/%name-%version-%release-buildroot
 BuildRequires:	diffutils
 Requires:	php
 Requires:	mantis-config
@@ -28,8 +31,8 @@
 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
@@ -53,35 +56,23 @@
 
 
 %prep
-%setup -q
+%setup -q %{?alpha:-n %name-%version%alpha}
 %patch0 -p1 -b .iis
 %patch1 -p1 -b .noexamplecom
 %patch2 -p1 -b .noadmin
+%patch3 -p1 -b .nonmysql
 
 chmod -x *.php
 rm -rf packages
 
-sed -e '$s!CONCAT.*!md5(random()*random())||md5(now()));!;
-	s! COMMENT=.*;!;!;
-	s! UNIQUE KEY [^ ]* ! UNIQUE !g;
-	s!^\( *\)KEY .*[^,]\(,\?\)$!\1CHECK (TRUE)\2!;
-	s! tinyint! int!;
-	s! unsigned ! !g;
-	s! longblob ! text !g;
-	s! datetime ! timestamp with time zone !g;
-	s!TYPE=MyISAM!WITHOUT OIDS!g;
-	s!^#!-- !;
-	s! int.*auto_increment! SERIAL!;
-	s! int([0-9]*) ! int !' sql/db_generate.sql >sql/db_generate-psql.sql
-
 
 %install
 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 \( \
@@ -91,11 +82,11 @@
 
 ## 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
 
-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
@@ -106,7 +97,7 @@
 	rm -f "$f.tmp"
 }
 
-%{__install} -d $RPM_BUILD_ROOT%{httpconfdir}
+%__install -d $RPM_BUILD_ROOT%httpconfdir
 %__install -p -m644 %SOURCE10 $RPM_BUILD_ROOT%httpconfdir/mantis.conf
 subst %httpconfdir/mantis.conf
 
@@ -125,18 +116,27 @@
 %files
 %defattr(-,root,root,-)
 %doc sql
-%{pkgdir}
-%exclude %{pkgdir}/sql
-%attr(-,root,apache) %dir %{cfgdir}
-%attr(0640,root,apache) %config(noreplace) %{cfgdir}/*
+%pkgdir
+%exclude %pkgdir/sql
+%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
+* Sat Jun 25 2005 Enrico Scholz <enrico scholz informatik tu-chemnitz de> - 1.0.0
+- updated to 1.0.0a3
+- removed the part which created the psql-script; upstream has now a
+  working PostgreSQL database creation script
+- rediffed the -iis patch
+- added patch to make upgrade functionionality partially working with
+  PostgreSQL; this is not perfect as things like index creation will
+  still fail
+
 * Thu May 19 2005 Enrico Scholz <enrico scholz informatik tu-chemnitz de> - 0.19.2-2
 - use %%dist instead of %%disttag
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]