]> git.pld-linux.org Git - packages/ggz-community.git/commitdiff
- initial
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Jan 2013 20:23:08 +0000 (21:23 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Jan 2013 20:23:08 +0000 (21:23 +0100)
ggz-community.spec [new file with mode: 0644]

diff --git a/ggz-community.spec b/ggz-community.spec
new file mode 100644 (file)
index 0000000..14dc1db
--- /dev/null
@@ -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}
This page took 0.072382 seconds and 4 git commands to generate.