This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
adminer-elasticsearch.spec
66 lines (53 loc) · 2.16 KB
/
adminer-elasticsearch.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
56
57
58
59
60
61
62
63
64
65
66
Name: adminer-elasticsearch
Version: 4.7.0
Release: 2%{?dist}
Summary: Adminer Elasticsearch
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
BuildArch: noarch
Group: System Environment/Base
License: GPL2/Apache License
Source0: adminer-%{version}.tar.gz
Source1: adminer-elasticsearch.conf
Source2: adminer.css
Source3: adminer-index.php
Source4: adminer-elasticsearch.php
Requires: app-base-core
Requires: app-elasticsearch-core
Requires: app-elasticsearch-plugin-core
BuildRequires: php-cli
%description
Adminer configured to connect to local Elasticsearch system.
%prep
%setup -q -n adminer-%{version}
%build
./compile.php
%install
mkdir -p $RPM_BUILD_ROOT/usr/clearos/sandbox/etc/httpd/conf.d
mkdir -p $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/docroot
mkdir -p $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/plugins
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/usr/clearos/sandbox/etc/httpd/conf.d
install -m 0644 adminer-%{version}.php $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/adminer.php
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/docroot/adminer.css
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/docroot/index.php
install -m 0644 %{SOURCE4} $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/plugins/elasticsearch.php
install -m 0644 plugins/plugin.php $RPM_BUILD_ROOT/usr/share/adminer-elasticsearch/plugins/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%attr(-,root,root)
%dir /usr/share/adminer-elasticsearch
/usr/share/adminer-elasticsearch/adminer.php
/usr/share/adminer-elasticsearch/docroot
/usr/share/adminer-elasticsearch/plugins
/usr/clearos/sandbox/etc/httpd/conf.d/adminer-elasticsearch.conf
%changelog
- 4.7.0 - update to Adminer 4.7.0
- 4.6.3 - update to latest stable Adminer
- 4.6.2 - previous patch was merged with upstream
- 4.3.1 with patch for ElasticSearch 5.4
- First build