Mercurial > hg > heapstats
view specs/heapstats.spec @ 275:e75ae2bc501e
Bug 3757: Update SPEC for modularity
Reviewed-by: ykubota
https://github.com/HeapStats/heapstats/pull/148
author | Yasumasa Suenaga <yasuenag@gmail.com> |
---|---|
date | Mon, 07 Oct 2019 21:16:19 +0900 |
parents | c5eaa1394c8e |
children |
line wrap: on
line source
%define __check_files %{nil} Summary: A Java programming language debugging tool. Name: heapstats Version: 2.2.trunk %define DIST_EXT 0%{?dist:%{dist}}%{!?dist:.el5} Release: %{DIST_EXT} License: GPLv2 Vendor: NTT OSS Center Group: Development/Tools Source: heapstats-%{version}.tar.gz #Patch0: none Buildroot: /var/tmp/heapstats # Requires for running Requires: pcre >= 6 Requires: tbb # Requires for building BuildRequires: pcre-devel >= 6 BuildRequires: net-snmp-devel >= 5.3 BuildRequires: java-1.8.0-openjdk-devel BuildRequires: binutils >= 2 BuildRequires: binutils-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: tbb-devel %description A lightweight monitoring JVMTI agent for Java HotSpot VM. Copyright (C) 2011-2019 Nippon Telegraph and Telephone Corporation. %prep %setup -q -n heapstats-2.2 %build CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ --build=%{_build} \ --host=%{_host} \ --target=%{_target_platform} \ --prefix=%{_prefix} \ --libdir=%{_libdir}/heapstats \ --libexecdir=%{_libexecdir}/heapstats \ --sysconfdir=%{_sysconfdir}/heapstats \ --disable-vmstructs \ %{configure_opts} \ --enable-debug \ --enable-optimize \ --without-gcov \ --disable-profile make agent mbean RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d/ echo "%{_libdir}/heapstats" \ >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/heapstats-agent.conf mkdir -p $RPM_BUILD_ROOT/usr/share/snmp/mibs/ cp ./agent/mib/HeapStatsMibs.txt $RPM_BUILD_ROOT/usr/share/snmp/mibs/ mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/heapstats cd agent make install DESTDIR=${RPM_BUILD_ROOT} cd ../mbean make install DESTDIR=${RPM_BUILD_ROOT} cd ../ %post /sbin/ldconfig %preun if [ $1 -eq 0 ]; then # uninstall # Remove symlink which is generated by ldconfig rm -f %{_libdir}/heapstats/libheapstats.so fi %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %dir %{_libdir}/heapstats/ %{_libdir}/heapstats/libheapstats-*.so* %{_libdir}/heapstats/heapstats-mbean.jar %dir %{_libdir}/heapstats/heapstats-engines/ %{_libdir}/heapstats/heapstats-engines/libheapstats-engine*.so %doc NEWS README COPYING AUTHORS ChangeLog %dir %{_sysconfdir}/heapstats/ %config(missingok) %{_sysconfdir}/heapstats/heapstats.conf %dir %{_sysconfdir}/heapstats/iotracer/ %{_sysconfdir}/heapstats/iotracer/IoTrace.class /usr/bin/heapstats-attacher /usr/libexec/heapstats/heapstats-attacher.jar /etc/ld.so.conf.d/heapstats-agent.conf /usr/share/snmp/mibs/HeapStatsMibs.txt %changelog * Sun Oct 06 2019 Yasumasa Suenaga <yasuenag@gmail.com> - Update SPEC for modularity * Wed Apr 04 2018 Yasumasa Suenaga <yasuenag@gmail.com> - Update version number to 2.2.trunk * Tue Jan 23 2018 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp> - Remove SSE 3 optimized binary. * Thu Jan 18 2018 Yasumasa Suenaga <yasuenag@gmail.com> - Add dependencies to TBB * Tue Jul 11 2017 Yasumasa Suenaga <yasuenag@gmail.com> - Add Analyzer package. * Tue Feb 09 2016 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp> - Set version to 2.0.trunk * Thu Oct 22 2015 Yasumasa Suenaga <yasuenag@gmail.com> - Add CLI package. - Add IoTrace class. * Thu Oct 22 2015 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp> - Bump to 2.0 * Thu Jul 24 2014 Yasumasa Suenaga <yasuenag@gmail.com> - Sync HeapStats 1.1