diff --git a/.gitignore b/.gitignore index e69de29..387a13b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,10 @@ +/build.jar.tar.gz +/netbeans-profiler-visualvm_release69.tar.gz +/visualvm_13-src.tar.gz +/visualvm_harness-1.0.tar.gz +/netbeans-profiler-visualvm_release691.tar.gz +/visualvm_131-src.tar.gz +/visualvm_harness-1.1.tar.gz +/visualvm_harness-1.1pre.tar.gz +/visualvm_132-src.tar.gz +/visualvm_harness-1.2.tar.gz diff --git a/sources b/sources index e69de29..ee4d2e4 100644 --- a/sources +++ b/sources @@ -0,0 +1,3 @@ +f1bd185f7a7758ea6c9c71acf174f0a8 visualvm_harness-1.2.tar.gz +207bd175a87b9e8f12e992c0f70561a8 visualvm_132-src.tar.gz +5d730e982c47e3d3dc59b2bd8d1b62af netbeans-profiler-visualvm_release691.tar.gz diff --git a/visualvm.spec b/visualvm.spec new file mode 100644 index 0000000..5ec4f98 --- /dev/null +++ b/visualvm.spec @@ -0,0 +1,162 @@ +%global dwnldurl http://icedtea.classpath.org/download/visualvm/ +%global visualvmharnessver 1.2 + +Name: visualvm +Version: 1.3.2 +Release: %{visualvmharnessver}.8%{?dist} +Summary: Lightweight profiler that integrates many command-line JDK tools + +Group: Development/Tools +License: GPLv2 and GPLv2+ and (GPLv2 with exceptions or CDDL) +URL: http://visualvm.dev.java.net/ +Source0: %{dwnldurl}/visualvm_harness-%{visualvmharnessver}.tar.gz +Source1: %{dwnldurl}/visualvm_132-src.tar.gz +Source2: %{dwnldurl}/netbeans-profiler-visualvm_release691.tar.gz + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: wget +BuildRequires: java >= 1.6.0 +BuildRequires: java-devel >= 1.6.0 +BuildRequires: jakarta-commons-logging +BuildRequires: desktop-file-utils +BuildRequires: netbeans-platform >= 6.9-1 +BuildRequires: netbeans-platform-harness +BuildRequires: netbeans-apisupport + +Requires: netbeans-platform >= 6.9-1 +Requires: java >= 1.6.0 +Requires: java-devel >= 1.6.0 + +Conflicts: java-1.6.0-openjdk <= 1:1.6.0.0-47 + + +%description +VisualVM is a visual tool integrating several command-line JDK tools and +lightweight profiling capabilities. Designed for both production and +development time use, it further enhances the capability of monitoring and +performance analysis for the Java SE platform. + + +%prep +%setup -q -n visualvm_harness-%{visualvmharnessver} + +%build +./configure --prefix=/usr \ + --with-visualvm-zip=%{SOURCE1} \ + --with-netbeans-profiler-zip=%{SOURCE2} \ + --with-visualvm-version=1.3.2 \ + --sysconfdir=/etc \ + --libdir=%{_libdir} \ + --datadir=%{_datadir} + +make + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +#silence rpmlint for necessary empty files +find $RPM_BUILD_ROOT/%{_libdir}/visualvm/visualvm/config/Modules/ -type f -empty | while read FILE; do echo " +" > $FILE;done + +echo " +" > $RPM_BUILD_ROOT/%{_libdir}/visualvm/profiler/.lastModified + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%attr(0755,root,root) %{_bindir}/jvisualvm +%{_libdir}/visualvm/ +%config(noreplace) /etc/visualvm.conf +%config(noreplace) /etc/visualvm.clusters +%{_datadir}/applications/visualvm.desktop +%doc README +%doc INSTALL +%doc COPYING + + +%changelog +* Mon Mar 21 2011 Jiri Vanek - 1.3.2-1.2.8 +- updated for hearness 1.2 + +* Fri Mar 8 2011 Jiri Vanek - 1.3.2-1.2.7 +- updated for vm 1.3.2 + +* Fri Feb 2 2011 Jiri Vanek - 1.3.1-1.1.6 +- fixed requires for java-devel, fixed conflicts version + +* Wed Feb 1 2011 Jiri Vanek - 1.3.1-1.1.5 +- fixed requires for java-devel, fixed conflicts version + +* Wed Jan 12 2011 Jiri Vanek - 1.3.1-1.1.4 +- release extended for harness version + +* Wed Jan 12 2011 Jiri Vanek - 1.3.1-3 +- updated to harens 1.1 + + +* Wed Nov 24 2010 Jiri Vanek - 1.3.1-2 +- updated to harens 1.1pre +- removed file-changes fixed by upstream. + +* Wed Nov 24 2010 Jiri Vanek - 1.3.1-1 +- updated to harens 1.1, profiler 6.9.1 and visualvm 1.3.1 +- removed build of bundled jar - already fixed upstream + +* Wed Nov 24 2010 Jiri Vanek - 1.3-10 +- resolves 667314 + +* Wed Nov 24 2010 Jiri Vanek - 1.3-9 +- updated license + +* Tue Nov 23 2010 Jiri Vanek - 1.3-8 +- application moved from prefix to libdir/name +- removed fc15 from conficts, and increased release number of conflicted openjdk. + +* Thu Nov 22 2010 Jiri Vanek - 1.3-7 +- removed /etc symlink +- patched jvisualvm luncher to follow to /etc instead of prefix/etc + +* Thu Nov 16 2010 Jiri Vanek - 1.3-6 +- all simlinks and last modified moved from to install + + +* Thu Nov 16 2010 Jiri Vanek - 1.3-5 +- repaired missing slash at platform + +* Thu Nov 15 2010 Jiri Vanek - 1.3-4 +- added symlinks for: etc, profiler, platform, visualvm +- sed and renaming of visualvm script + +* Thu Oct 6 2010 Jiri Vanek - 1.3-3 +- fixed license file +- hacked empty files +- repaired .lastModified file to be tuched in post +- (rev 6)remove ./lastModified in postun +- (rev 5)removed and rebuilded build.jar from nb (proof of rebuilding) +- noarch added, and removed -caused error "arch dependent binaries in noarch package" +- (rev 4)fixed define->global macro +- (rev1 )added --sysconfdir=/etc to .configure +- (rev1 ) --sysconfdir=/etc is not working, _libdir/visualvm/etc/visualvm.conf and _libdir/visualvm/etc/visualvm.clusters moved to /etc, visualvm/etc/ removed +- (rev 2) added owenership for lib[64]/visualvm/ +- (rev 7) sed moved from install to build. Seams to have no evil efect to functionality +- (rev 3) removed _prefix/jvm/java-openjdk-jvisualvm/bin/jvisualvm and _prefix/jvm/java-openjdk-jvisualvm/share/visualvm.desktop (then jvm dir becomes empty - delete also. Both script and desktop file are before placed to right places. +- {_prefix}/jvm/java-openjdk-jvisualvm changed to {_prefix} + + +* Thu Oct 6 2010 Jiri Vanek - 1.3-2 +- fixed noreplace config files +- applied patch visualvm-debuginfo + + +* Thu Sep 30 2010 Jiri Vanek - 1.3-1 +- fixed installpath out of poor /user +- fixed missing requirments + + +* Thu Sep 16 2010 Deepak Bhole - 1.3-0 +- Initial build.