[packages/ggz-community] - initial

qboosh qboosh at pld-linux.org
Mon Jan 28 21:22:27 CET 2013


commit 38b31951e10974a55ed2c93601e0256a477e2d98
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jan 28 21:23:08 2013 +0100

    - initial

 ggz-community.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
---
diff --git a/ggz-community.spec b/ggz-community.spec
new file mode 100644
index 0000000..14dc1db
--- /dev/null
+++ b/ggz-community.spec
@@ -0,0 +1,81 @@
+# TODO: php() Rs, setup stuff
+Summary:	GGZ Community - web-based GGZ community platform
+Summary(pl.UTF-8):	GGZ Community - platforma społecznościowa GGZ oparta na WWW
+Name:		ggz-community
+Version:	0.0.14.1
+Release:	0.1
+License:	GPL v2+
+Group:		X11/Applications/Games
+Source0:	http://mirrors.dotsrc.org/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	414201494a0c2b027d07a5836d9f9508
+URL:		http://www.ggzgamingzone.org/
+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
+GGZ Community - web-based GGZ community platform.
+
+%description -l pl.UTF-8
+GGZ Community - platforma społecznościowa GGZ oparta na WWW.
+
+%prep
+%setup -q
+
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+	Allow from all
+</Directory>
+EOF
+
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+	"/%{name}" => "%{_appdir}",
+)
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_datadir}}
+
+cp -a web $RPM_BUILD_ROOT%{_appdir}
+cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -p lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%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}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog Community.features NEWS README README.GGZ
+%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,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
+#%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%{_appdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ggz-community.git/commitdiff/38b31951e10974a55ed2c93601e0256a477e2d98



More information about the pld-cvs-commit mailing list