]> git.pld-linux.org Git - SPECS.git/blob - gitlist.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / gitlist.spec
1 Summary:        An elegant and modern Git repository viewer
2 Name:           gitlist
3 Version:        0.5.0
4 Release:        0.1
5 License:        GPL
6 Group:          Applications/WWW
7 Source0:        https://github.com/klaussilveira/gitlist/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  a86237487307c5ebf38fed81ccfede34
9 Source1:        apache.conf
10 Source2:        lighttpd.conf
11 URL:            http://gitlist.org/
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 Requires:       webapps
14 Requires:       webserver(alias)
15 Requires:       webserver(php)
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _webapps        /etc/webapps
20 %define         _webapp         %{name}
21 %define         _sysconfdir     %{_webapps}/%{_webapp}
22 %define         _appdir         %{_datadir}/%{_webapp}
23
24 %description
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.
29
30 %prep
31 %setup -q
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
36
37 cp -a . $RPM_BUILD_ROOT%{_appdir}
38
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
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %triggerin -- apache1 < 1.3.37-3, apache1-base
47 %webapp_register apache %{_webapp}
48
49 %triggerun -- apache1 < 1.3.37-3, apache1-base
50 %webapp_unregister apache %{_webapp}
51
52 %triggerin -- apache < 2.2.0, apache-base
53 %webapp_register httpd %{_webapp}
54
55 %triggerun -- apache < 2.2.0, apache-base
56 %webapp_unregister httpd %{_webapp}
57
58 %triggerin -- lighttpd
59 %webapp_register lighttpd %{_webapp}
60
61 %triggerun -- lighttpd
62 %webapp_unregister lighttpd %{_webapp}
63
64 %files
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
70 %{_appdir}
This page took 0.60846 seconds and 3 git commands to generate.