SPECS: phpMyID.spec - more deps - apache config moved to SOURCES ...

glen glen at pld-linux.org
Tue Oct 16 07:42:57 CEST 2007


Author: glen                         Date: Tue Oct 16 05:42:57 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
-  more deps
- apache config moved to SOURCES
- default index.php created

---- Files affected:
SPECS:
   phpMyID.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/phpMyID.spec
diff -u SPECS/phpMyID.spec:1.1 SPECS/phpMyID.spec:1.2
--- SPECS/phpMyID.spec:1.1	Tue Oct 16 05:23:09 2007
+++ SPECS/phpMyID.spec	Tue Oct 16 07:42:51 2007
@@ -2,15 +2,21 @@
 Summary:	Single user Identity Provider for OpenID authentication
 Name:		phpMyID
 Version:	0.6
-Release:	0.1
+Release:	0.2
 License:	GPL
 Group:		Applications/WWW
 Source0:	http://siege.org/projects/phpMyID/%{name}-%{version}.tgz
 # Source0-md5:	f1f000c370ca4a402e26f10a04d50329
+Source1:	%{name}-apache.conf
+Source2:	%{name}.php
 URL:		http://siege.org/projects/phpMyID/
 BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	php(pcre)
+Requires:	php(session)
 Requires:	webapps
-Requires:	webserver(php)
+Requires:	webserver(php) >= 4.2.0
+Suggests:	php(bcmath)
+Suggests:	php(gmp)
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,21 +34,14 @@
 %prep
 %setup -q
 
-cat > apache.conf <<'EOF'
-Alias /%{name} %{_appdir}
-<Directory %{_appdir}>
-	Allow from all
-</Directory>
-EOF
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
 cp -a MyID.php $RPM_BUILD_ROOT%{_appdir}
 cp -a MyID.config.php $RPM_BUILD_ROOT%{_sysconfdir}/config.php
-
-install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/index.php
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 %triggerin -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
@@ -74,6 +73,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2007/10/16 05:42:51  glen
+-  more deps
+- apache config moved to SOURCES
+- default index.php created
+
 Revision 1.1  2007/10/16 03:23:09  glen
 - initial
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/phpMyID.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list