forked from rashidkpc/kibana2
/
kibana.spec
55 lines (43 loc) · 1.61 KB
/
kibana.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: kibana
Version: 0.1.5
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs.
Group: System Environment/Daemons
License: MIT
URL: http://rashidkpc.github.com/Kibana/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php >= 5.2
%description
Kibana is an open source (MIT License), browser based interface to Logstash and ElasticSearch
%prep
rm -rf "${RPM_BUILD_ROOT}"
mkdir -p "${RPM_BUILD_ROOT}"
%build
# do nothing
%install
# untar kibana into the document root
cd ${RPM_BUILD_ROOT}
mkdir -p "${RPM_BUILD_ROOT}/var/www/html/%{name}"
tar -zxvf %SOURCE0 --strip-components 1 \
--exclude=kibana-httpd.conf \
--exclude=kibana.spec \
-C ${RPM_BUILD_ROOT}/var/www/html/%{name}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
tar -zxvf %SOURCE0 --strip-components 1 \
--to-stdout \
*/kibana-httpd.conf > ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/kibana.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/var/www/html
%config(noreplace) /var/www/html/%{name}/config.php
%config(noreplace) %attr(0644,root,root) /etc/httpd/conf.d/kibana.conf
%changelog
* Fri May 18 2012 David Castro arimus@gmail.com 0.1.5-1
- Modified spec to work with rpmbuild -ta kibana-0.1.5.tar.gz style builds,
which only requires that the github-style tarballs are renamed to
kibana-X.Y.Z.tar.gz
* Fri Apr 06 2012 David Castro arimus@gmail.com 0.1.4