Author: glen Date: Tue Oct 16 03:23:14 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - initial
---- Files affected: SPECS: phpMyID.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/phpMyID.spec diff -u /dev/null SPECS/phpMyID.spec:1.1 --- /dev/null Tue Oct 16 05:23:14 2007 +++ SPECS/phpMyID.spec Tue Oct 16 05:23:09 2007 @@ -0,0 +1,79 @@ +# $Revision$, $Date$ +Summary: Single user Identity Provider for OpenID authentication +Name: phpMyID +Version: 0.6 +Release: 0.1 +License: GPL +Group: Applications/WWW +Source0: http://siege.org/projects/phpMyID/%{name}-%{version}.tgz +# Source0-md5: f1f000c370ca4a402e26f10a04d50329 +URL: http://siege.org/projects/phpMyID/ +BuildRequires: rpmbuild(macros) >= 1.268 +Requires: webapps +Requires: webserver(php) +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _webapps /etc/webapps +%define _webapp %{name} +%define _sysconfdir %{_webapps}/%{_webapp} +%define _appdir %{_datadir}/%{_webapp} + +%description +phpMyID is a small, fairly lightweight, standalone, single user +Identity Provider for OpenID authentication. It comprises a single PHP +script that can be used by one individual to run their own personal +OpenID "IdP." + +%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 + +%triggerin -- apache1 < 1.3.37-3, apache1-base +%webapp_register apache %{_webapp} + +%triggerun -- apache1 < 1.3.37-3, apache1-base +%webapp_unregister apache %{_webapp} + +%triggerin -- apache < 2.2.0, apache-base +%webapp_register httpd %{_webapp} + +%triggerun -- apache < 2.2.0, apache-base +%webapp_unregister httpd %{_webapp} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGELOG README FAQ +%dir %attr(750,root,http) %{_sysconfdir} +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf +%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php +%{_appdir} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007/10/16 03:23:09 glen +- initial + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
