[packages/gitlist] new, version 0.5.0

glen glen at pld-linux.org
Wed Mar 23 11:20:21 CET 2016


commit e3fb98bae1cf4ce8e8b530808914342286326d9a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 23 12:19:33 2016 +0200

    new, version 0.5.0
    
    just initial created from webapp template
    i won't be finishing this spec anytime soon

 apache.conf   | 12 ++++++++++
 gitlist.spec  | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lighttpd.conf |  3 +++
 3 files changed, 85 insertions(+)
---
diff --git a/gitlist.spec b/gitlist.spec
new file mode 100644
index 0000000..93e99cf
--- /dev/null
+++ b/gitlist.spec
@@ -0,0 +1,70 @@
+Summary:	An elegant and modern Git repository viewer
+Name:		gitlist
+Version:	0.5.0
+Release:	0.1
+License:	GPL
+Group:		Applications/WWW
+Source0:	https://github.com/klaussilveira/gitlist/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	a86237487307c5ebf38fed81ccfede34
+Source1:	apache.conf
+Source2:	lighttpd.conf
+URL:		http://gitlist.org/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	webapps
+Requires:	webserver(alias)
+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
+GitList allows you to browse repositories using your favorite browser,
+viewing files under different revisions, commit history and diffs.
+GitList is free and open source software, written in PHP, on top of
+Silex and the Twig template engine.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+
+cp -a . $RPM_BUILD_ROOT%{_appdir}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.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)
+%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
+%{_appdir}
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..17fddcd
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,12 @@
+Alias /gitlist /usr/share/gitlist
+<Directory /usr/share/gitlist>
+	# Apache 2.x
+	<IfModule !mod_authz_core.c>
+		Order allow,deny
+		Allow from all
+	</IfModule>
+	# Apache 2.4
+	<IfModule mod_authz_core.c>
+		Require all granted
+	</IfModule>
+</Directory>
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..1e5aeff
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,3 @@
+alias.url += (
+	"/gitlist" => "/usr/share/gitlist",
+)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlist.git/commitdiff/e3fb98bae1cf4ce8e8b530808914342286326d9a



More information about the pld-cvs-commit mailing list