Blame SPECS/abrt-java-connector.spec

78a2f7
%global commit befb850dbc72b117ad6bebabee314e7d41b97183
78a2f7
%global shortcommit %(c=%{commit}; echo ${c:0:7})
78a2f7
78a2f7
Name:		abrt-java-connector
78a2f7
Version:	1.0.6
78a2f7
Release:	8%{?dist}
78a2f7
Summary:	JNI Agent library converting Java exceptions to ABRT problems
78a2f7
78a2f7
Group:		System Environment/Libraries
78a2f7
License:	GPLv2+
78a2f7
URL:		https://github.com/jfilak/abrt-java-connector
78a2f7
Source0:	https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
78a2f7
78a2f7
#Patch0001:	0001-Update-the-spec-file.patch
78a2f7
Patch0002:	0002-Encapsulate-all-jthread_map-calls-inside-critical-se.patch
78a2f7
Patch0003:	0003-Add-thread-stress-test.patch
78a2f7
Patch0004:	0004-Make-thread-stress-test-more-robust.patch
78a2f7
Patch0005:	0005-Unify-reason-message-format.patch
78a2f7
Patch0006:	0006-Adapt-tests-to-the-recent-changes-in-formats.patch
78a2f7
Patch0007:	0007-Add-tests-for-reason-message-shortening.patch
78a2f7
Patch0008:	0008-Fix-a-bug-in-testdriver.patch
78a2f7
Patch0009:	0009-Add-support-for-changing-log-directory.patch
78a2f7
Patch0010:	0010-Make-log-output-disabled-by-default.patch
78a2f7
Patch0011:	0011-Add-support-for-journald-and-syslog.patch
78a2f7
Patch0012:	0012-Completely-disable-logging-in-ThreadStressTest.patch
78a2f7
Patch0013:	0013-Make-ThreadStressTest-configurable.patch
78a2f7
Patch0014:	0014-Add-an-abstract-to-README.patch
78a2f7
Patch0015:	0015-Check-error-codes-of-jvmti-functions.patch
78a2f7
Patch0016:	0016-Use-the-last-frame-s-class-path-for-executable.patch
78a2f7
Patch0017:	0017-Provide-Arch-specific-StressTest-configuration.patch
78a2f7
Patch0018:	0018-Fix-arch-specific-outputs.patch
78a2f7
#Patch0019:	0019-Update-the-spec-file.patch
78a2f7
Patch0020:	0020-Use-the-main-class-URL-for-executable.patch
78a2f7
Patch0021:	0021-Add-documentation-for-executable-option.patch
78a2f7
Patch0022:	0022-Exception-callback-code-optimizations.patch
78a2f7
Patch0023:	0023-Do-not-enter-critical-section-if-not-necessary.patch
78a2f7
Patch0024:	0024-Do-not-report-exceptions-caught-by-native-methods.patch
78a2f7
Patch0025:	0025-Update-the-missing-class-test.patch
78a2f7
Patch0026:	0026-Surround-all-JNI-calls-in-try-catch-all-block.patch
78a2f7
Patch0027:	0027-Do-not-ship-own-reporting-workflow-definitions.patch
78a2f7
#Patch0028:	0028-Remove-the-workflow-files-from-the-spec-file.patch
78a2f7
Patch0029:	0029-Speed-up-ExceptionCatch-event-callback.patch
78a2f7
Patch0030:	0030-Add-an-utility-for-stack-trace-analysis.patch
78a2f7
Patch0031:	0031-Hook-the-stack-trace-analysis-tool-in-post-create.patch
78a2f7
#Patch0032:	0032-Add-abrt-action-analyze-java-to-the-spec-file.patch
78a2f7
Patch0033:	0033-Add-test-for-analysis-tool.patch
78a2f7
Patch0034:	0034-Use-satyr-for-calculation-of-the-duplicates-hashes.patch
78a2f7
Patch0035:	0035-Add-a-manual-page-for-the-analysis-tool.patch
78a2f7
#Patch0036:	0036-Add-the-analysis-tool-s-manual-page-to-the-spec-file.patch
78a2f7
#Patch0037:	0037-Add-build-requires-for-the-analysis-tool.patch
78a2f7
Patch0038:	0038-Speed-up-thread-start-end-processing.patch
78a2f7
#Patch0039:	0039-Update-the-spec-file.patch
78a2f7
Patch0040:	0040-Fix-a-pair-of-defects-uncovered-by-coverity.patch
78a2f7
Patch0041:	0041-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch
78a2f7
Patch0042:	0042-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch
78a2f7
Patch0043:	0043-Add-test-results-for-Linux-aarch64.patch
78a2f7
Patch0044:	0044-Add-test-results-for-Linux-ppc64le.patch
78a2f7
Patch0045:	0045-Update-Linux-aarch64-tests-for-rhel-7.1.patch
78a2f7
78a2f7
# git is need for '%%autosetup -S git' which automatically applies all the
78a2f7
# patches above. Please, be aware that the patches must be generated
78a2f7
# by 'git format-patch'
78a2f7
BuildRequires:	git
78a2f7
78a2f7
BuildRequires:	cmake
78a2f7
BuildRequires:	satyr-devel
78a2f7
BuildRequires:	libreport-devel
78a2f7
BuildRequires:	abrt-devel
78a2f7
BuildRequires:	java-1.7.0-openjdk-devel
78a2f7
BuildRequires:	systemd-devel
78a2f7
BuildRequires:	gettext
78a2f7
78a2f7
Requires:	abrt >= 2.1.11-3
78a2f7
78a2f7
78a2f7
%description
78a2f7
JNI library providing an agent capable to process both caught and uncaught
78a2f7
exceptions and transform them to ABRT problems
78a2f7
78a2f7
78a2f7
%prep
78a2f7
# http://www.rpm.org/wiki/PackagerDocs/Autosetup
78a2f7
# Default '__scm_apply_git' is 'git apply && git commit' but this workflow
78a2f7
# doesn't allow us to create a new file within a patch, so we have to use
78a2f7
# 'git am' (see /usr/lib/rpm/macros for more details)
78a2f7
%define __scm_apply_git(qp:m:) %{__git} am
78a2f7
%autosetup -S git -n %{name}-%{commit}
78a2f7
78a2f7
78a2f7
%build
78a2f7
%cmake -DCMAKE_BUILD_TYPE=Release
78a2f7
make %{?_smp_mflags}
78a2f7
78a2f7
78a2f7
%install
78a2f7
make install DESTDIR=%{buildroot}
78a2f7
78a2f7
%files
78a2f7
%doc LICENSE README AUTHORS
78a2f7
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf
78a2f7
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf
78a2f7
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf
78a2f7
%{_bindir}/abrt-action-analyze-java
78a2f7
%{_mandir}/man1/abrt-action-analyze-java.1*
78a2f7
%{_mandir}/man5/java_event.conf.5*
78a2f7
%{_mandir}/man5/bugzilla_format_java.conf.5*
78a2f7
%{_mandir}/man5/bugzilla_formatdup_java.conf.5*
78a2f7
78a2f7
# install only unversioned shared object because the package is a Java plugin
78a2f7
# and not a system library but unfortunately the library must be placed in ld
78a2f7
# library paths
78a2f7
%{_libdir}/lib%{name}.so
78a2f7
78a2f7
78a2f7
%check
78a2f7
make test || {
78a2f7
    cat Testing/Temporary/LastTest.log
78a2f7
    exit 69
78a2f7
}
78a2f7
78a2f7
78a2f7
%post -p /sbin/ldconfig
78a2f7
78a2f7
78a2f7
%postun -p /sbin/ldconfig
78a2f7
78a2f7
78a2f7
78a2f7
%changelog
78a2f7
* Mon Sep 22 2014 Jakub Filak <jfilak@redhat.com> - 1.0.6-8
78a2f7
- Adapt aarch64 test results to RHEL7.1
78a2f7
- Resolves: #1133406
78a2f7
78a2f7
* Thu Aug 21 2014 Jakub Filak <jfilak@redhat.com> - 1.0.6-7
78a2f7
- Add test results for Linux-ppc64le
78a2f7
- Resolves: #1125469
78a2f7
78a2f7
* Tue Feb 11 2014 Jakub Filak <jfilak@redhat.com> - 1.0.6-6
78a2f7
- Make sure that agent_onload and agent_onunload are processed only once
78a2f7
- Add test results for Linux-aarch64
78a2f7
- Resolves: #1044756, #1063322
78a2f7
78a2f7
* Fri Jan 31 2014 Jakub Filak <jfilak@redhat.com> - 1.0.6-5
78a2f7
- Fix a pair of defects uncovered by covscan
78a2f7
- Resolves: #1056584
78a2f7
78a2f7
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 1.0.6-4
78a2f7
- Mass rebuild 2014-01-24
78a2f7
78a2f7
* Wed Jan 22 2014 Jakub Filak <jfilak@redhat.com> - 1.0.6-3
78a2f7
- Mark stack trace with remote paths as not-reportable
78a2f7
- Do not provide own reporting workflows
78a2f7
- Code optimization
78a2f7
- Do not report exception caught by native functions
78a2f7
- Use the last frame class path for executable
78a2f7
- Gracefully handle JVMTI errors
78a2f7
- Add an abstract to README
78a2f7
- Add support for journald and syslog
78a2f7
- Make log output disabled by default
78a2f7
- Add support for changing log directory
78a2f7
- Fix a race condition causing a crash of JVM
78a2f7
- Related: #1051198
78a2f7
- Resolves: #1051483, #1054720, #1054737, #1055581
78a2f7
78a2f7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.6-2
78a2f7
- Mass rebuild 2013-12-27
78a2f7
78a2f7
* Tue Oct 01 2013 Jakub Filak <jfilak@redhat.com> - 1.0.6-1
78a2f7
- Fix a deadlock in GC start callback
78a2f7
- Disable experimental features in production releases
78a2f7
- Resolves: #1012827
78a2f7
78a2f7
* Tue Jul 30 2013 Jakub Filak <jfilak@redhat.com> - 1.0.5-1
78a2f7
- Provide a proper configuration for libreport
78a2f7
78a2f7
* Thu Jul 18 2013 Jakub Filak <jfilak@redhat.com> - 1.0.4-1
78a2f7
- Stop creating an empty log file
78a2f7
- Resolves: #985776
78a2f7
78a2f7
* Tue Jul 16 2013 Jakub Filak <jfilak@redhat.com> - 1.0.3-1
78a2f7
- Fix tests on arm
78a2f7
78a2f7
* Tue Jul 09 2013 Jakub Filak <jfilak@redhat.com> - 1.0.2-1
78a2f7
- Do not crash on empty command line options
78a2f7
78a2f7
* Mon Jul 08 2013 Jakub Filak <jfilak@redhat.com> - 1.0.1-1
78a2f7
- Fix tests on ppc and s390 on both 32 and 64 bit
78a2f7
78a2f7
* Thu Jun 27 2013 Jakub Filak <jfilak@redhat.com> - 1.0.0-1
78a2f7
- Publicly releasable version
78a2f7
78a2f7
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.2-1
78a2f7
- Start versioning library
78a2f7
- Drop build dependency on abrt-devel
78a2f7
78a2f7
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-2
78a2f7
- Provide ABRT configuration
78a2f7
78a2f7
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-1
78a2f7
- New release
78a2f7
78a2f7
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-3
78a2f7
- Build with the library name same as the package name
78a2f7
78a2f7
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-2
78a2f7
- Build with ABRT enabled
78a2f7
78a2f7
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-1
78a2f7
- Initial version