From: Sebastien D. <sde...@us...> - 2005-01-21 14:45:07
|
Update of /cvsroot/tslogparser/tslogparser/package In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30012/package Modified Files: tslogparser.conf.php tslogparser.spec Log Message: Spec file ready for packaging (v04) Index: tslogparser.spec =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/package/tslogparser.spec,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tslogparser.spec 21 Jan 2005 10:42:40 -0000 1.1 +++ tslogparser.spec 21 Jan 2005 14:44:55 -0000 1.2 @@ -0,0 +1,89 @@ +# This file is for building an RPM of the tslogparser tool. +# Rename this file to: %{name}-%{version}-%{release}.spec +# example: tslogparser-0.4-1.spec +# Mail to tsl...@li... for bugs & all. +%define name tslogparser +%define version 0.4 +%define release 1 +%define filename tslogparser-v04 + +%define tslp_user tslogparser +%define tslp_group tslogparser + +%define path_tslp /var/www/tslogparser +%define path_conf /etc +%define path_httpd_conf /etc/httpd/conf.d + +Summary: Web interface wrapper for test suites runs logfiles. +Name: %{name} +Version: %{version} +Release: %{release} +Copyright: GPL +Group: Development/Tools +Source: %{filename}.tar.gz +BuildRoot: /tmp/tslp +Url: http://tslogparser.sourceforge.net + +%description +The %{name} tool is a php/MySQL interface to store and browse some +test suites log files (such as those issued from the Open POSIX Test Suite +runs) in a more user-friendly interface. + +See http://tslogparser.sourceforge.net for more information. + + +%prep +# untar the archive +%setup -n %{filename} + +%build +# nothing to do here... + +%install +rm -rf $RPM_BUILD_ROOT +%__mkdir_p $RPM_BUILD_ROOT%{path_conf} +%__mkdir_p $RPM_BUILD_ROOT%{path_httpd_conf} +%__mkdir_p $RPM_BUILD_ROOT%{path_tslp}/admin/modules +%__mkdir_p $RPM_BUILD_ROOT%{path_tslp}/db +%__cp *.php $RPM_BUILD_ROOT%{path_tslp} +%__cp admin/*.php $RPM_BUILD_ROOT%{path_tslp}/admin +%__cp admin/modules/*.php $RPM_BUILD_ROOT%{path_tslp}/admin/modules +%__cp db/*.php $RPM_BUILD_ROOT%{path_tslp}/db +%__cp package/tslogparser.conf $RPM_BUILD_ROOT%{path_httpd_conf} +%__cp package/tslogparser.conf.php $RPM_BUILD_ROOT%{path_conf} + + +%clean +rm -rf $RPM_BUILD_ROOT + +# Add tslogparser user & group +%pre +finger %{tslp_user}|grep "Login.*%{tslp_ser}" > /dev/null +if [ $? -ne 0 ]; +then + /usr/sbin/groupadd %{tslp_group}; + /usr/sbin/useradd -c 'tslogparser owner' -d %{path_tslp} -r -g %{tslp_group} %{tslp_user}; +fi + +# Restart Apache +%post +/etc/rc.d/init.d/httpd restart + +%postun +/etc/rc.d/init.d/httpd restart + + +%files +%defattr(-,%{tslp_user},%{tslp_group}) +%doc FAQ HISTORY INSTALL LICENCE README TODO USAGE admin/modules/readme.txt admin/modules/ltp.mod.php.example +%attr(0440,root,root) %config %{path_httpd_conf}/tslogparser.conf +%config %{path_conf}/tslogparser.conf.php + +%{path_tslp} + + +%changelog +* Fri Jan 21 2005 Sebastien Decugis <seb...@ex...> +- initial spec file for tslogparser release v04 + + Index: tslogparser.conf.php =================================================================== RCS file: /cvsroot/tslogparser/tslogparser/package/tslogparser.conf.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tslogparser.conf.php 21 Jan 2005 10:42:40 -0000 1.1 +++ tslogparser.conf.php 21 Jan 2005 14:44:55 -0000 1.2 @@ -2,9 +2,9 @@ // Database server name or IP: $db_server="localhost"; // Database name: -$db="results"; +$db="tslogparser"; // Database user login: -$db_user="apache"; +$db_user="tslogparser"; // Database password: -$db_pw="apache"; +$db_pw="secret"; ?> |