2015-09-01 21:32:54 +02:00
|
|
|
Name: scylla-jmx
|
2015-09-17 09:16:12 +02:00
|
|
|
Version: @@VERSION@@
|
|
|
|
Release: @@RELEASE@@%{?dist}
|
2015-09-01 21:32:54 +02:00
|
|
|
Summary: Scylla JMX
|
2015-09-07 12:47:38 +02:00
|
|
|
Group: Applications/Databases
|
2015-09-01 21:32:54 +02:00
|
|
|
|
|
|
|
License: Proprietary
|
2015-09-17 12:07:08 +02:00
|
|
|
URL: http://www.scylladb.com/
|
2015-09-17 09:16:12 +02:00
|
|
|
Source0: %{name}-@@VERSION@@-@@RELEASE@@.tar
|
2015-09-01 21:32:54 +02:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2015-09-14 10:36:38 +02:00
|
|
|
BuildRequires: maven java-1.8.0-openjdk systemd-units
|
2015-09-14 10:02:04 +02:00
|
|
|
Requires: maven java-1.8.0-openjdk scylla-server
|
2015-09-01 21:32:54 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
env JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk mvn install
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2015-09-16 16:17:37 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
|
2015-09-01 21:32:54 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/scylla/
|
|
|
|
|
2015-09-16 16:17:37 +02:00
|
|
|
install -m644 dist/redhat/sysconfig/scylla-jmx $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
|
2015-09-01 21:32:54 +02:00
|
|
|
install -m644 dist/redhat/systemd/scylla-jmx.service $RPM_BUILD_ROOT%{_unitdir}/
|
|
|
|
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla
|
|
|
|
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
|
|
|
install -m644 target/urchin-mbean-1.0.jar $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx/
|
2015-09-16 16:17:37 +02:00
|
|
|
install -m755 dist/redhat/scripts/* $RPM_BUILD_ROOT%{_prefix}/lib/scylla/jmx
|
2015-09-01 21:32:54 +02:00
|
|
|
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd scylla 2> /dev/null || :
|
|
|
|
/usr/sbin/useradd -g scylla -s /sbin/nologin -r -d ${_sharedstatedir}/scylla scylla 2> /dev/null || :
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post scylla-jmx.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun scylla-jmx.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2015-09-16 16:17:37 +02:00
|
|
|
%{_sysconfdir}/sysconfig/scylla-jmx
|
2015-09-01 21:32:54 +02:00
|
|
|
%{_unitdir}/scylla-jmx.service
|
2015-09-16 16:17:37 +02:00
|
|
|
%{_prefix}/lib/scylla/jmx/jmx_run
|
2015-09-01 21:32:54 +02:00
|
|
|
%{_prefix}/lib/scylla/jmx/urchin-mbean-1.0.jar
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Aug 7 2015 Takuya ASADA Takuya ASADA <syuu@cloudius-systems.com>
|
|
|
|
- inital version of scylla-tools.spec
|