1 Summary: An elegant and modern Git repository viewer
6 Group: Applications/WWW
7 Source0: https://github.com/klaussilveira/gitlist/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: a86237487307c5ebf38fed81ccfede34
10 Source2: lighttpd.conf
11 URL: http://gitlist.org/
12 BuildRequires: rpmbuild(macros) >= 1.268
14 Requires: webserver(alias)
15 Requires: webserver(php)
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _webapps /etc/webapps
20 %define _webapp %{name}
21 %define _sysconfdir %{_webapps}/%{_webapp}
22 %define _appdir %{_datadir}/%{_webapp}
25 GitList allows you to browse repositories using your favorite browser,
26 viewing files under different revisions, commit history and diffs.
27 GitList is free and open source software, written in PHP, on top of
28 Silex and the Twig template engine.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
37 cp -a . $RPM_BUILD_ROOT%{_appdir}
39 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
40 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
41 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
44 rm -rf $RPM_BUILD_ROOT
46 %triggerin -- apache1 < 1.3.37-3, apache1-base
47 %webapp_register apache %{_webapp}
49 %triggerun -- apache1 < 1.3.37-3, apache1-base
50 %webapp_unregister apache %{_webapp}
52 %triggerin -- apache < 2.2.0, apache-base
53 %webapp_register httpd %{_webapp}
55 %triggerun -- apache < 2.2.0, apache-base
56 %webapp_unregister httpd %{_webapp}
58 %triggerin -- lighttpd
59 %webapp_register lighttpd %{_webapp}
61 %triggerun -- lighttpd
62 %webapp_unregister lighttpd %{_webapp}
65 %defattr(644,root,root,755)
66 %dir %attr(750,root,http) %{_sysconfdir}
67 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
68 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf