Blame SPECS/abrt-java-connector.spec

9d8306
%global commit 230b72697c7c43db747b2644b17cb2685d1539de
9d8306
%global shortcommit %(c=%{commit}; echo ${c:0:7})
9d8306
9d8306
Name:		abrt-java-connector
9d8306
Version:	1.1.0
9d8306
Release:	15%{?dist}
9d8306
Summary:	JNI Agent library converting Java exceptions to ABRT problems
9d8306
9d8306
Group:		System Environment/Libraries
9d8306
License:	GPLv2+
9d8306
URL:		https://github.com/jfilak/abrt-java-connector
9d8306
Source0:	https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
9d8306
9d8306
BuildRequires:	cmake
9d8306
BuildRequires:	satyr-devel
9d8306
BuildRequires:	libreport-devel >= 2.4.0
9d8306
BuildRequires:	abrt-devel
9d8306
BuildRequires:	java-devel
9d8306
BuildRequires:	systemd-devel
9d8306
BuildRequires:	gettext
9d8306
BuildRequires:	check-devel
9d8306
BuildRequires:	rpm-devel
9d8306
BuildRequires:	git
9d8306
9d8306
Requires:	abrt
9d8306
9d8306
# git format-patch 416db946329b043a58acf557f0525361a97e1da1 -N
9d8306
Patch0001: 0001-Decrease-the-tested-memory-limits-because-of-failure.patch
9d8306
Patch0002: 0002-Adapt-the-arm-test-outputs-to-java-1.8.patch
9d8306
Patch0003: 0003-Add-java-1.8-test-outputs-for-aarch-ppc-and-s390.patch
9d8306
Patch0004: 0004-Update-Linux-aarch64-test-outputs.patch
9d8306
Patch0005: 0005-Update-the-test-results.patch
9d8306
Patch0006: 0006-Make-the-dependency-on-systemd-optional.patch
9d8306
Patch0007: 0007-Update-README.patch
9d8306
Patch0008: 0008-Remove-function-malloc_readlink.patch
9d8306
Patch0009: 0009-Makefile-Adds-srpm-target.patch
9d8306
Patch0010: 0010-Update-the-test-results.patch
9d8306
Patch0011: 0011-Clearly-state-that-tests-cannot-be-run-under-root.patch
9d8306
Patch0012: 0012-Disable-ClassNotFoundException-test-again.patch
9d8306
Patch0013: 0013-Correct-includes-for-ABRT.patch
9d8306
Patch0014: 0014-Drop-pedantic-from-CFLAGS.patch
9d8306
Patch0015: 0015-Rename-log-to-log_warning.patch
9d8306
Patch0016: 0016-Update-the-test-results.patch
9d8306
9d8306
%description
9d8306
JNI library providing an agent capable to process both caught and uncaught
9d8306
exceptions and transform them to ABRT problems
9d8306
9d8306
9d8306
%prep
9d8306
# http://www.rpm.org/wiki/PackagerDocs/Autosetup
9d8306
# Default '__scm_apply_git' is 'git apply && git commit' but this workflow
9d8306
# doesn't allow us to create a new file within a patch, so we have to use
9d8306
# 'git am' (see /usr/lib/rpm/macros for more details)
9d8306
%define __scm_apply_git(qp:m:) %{__git} am
9d8306
%autosetup -n %{name}-%{commit} -S git
9d8306
9d8306
9d8306
%build
9d8306
%cmake -DCMAKE_BUILD_TYPE=Release
9d8306
make %{?_smp_mflags}
9d8306
9d8306
9d8306
%install
9d8306
make install DESTDIR=%{buildroot}
9d8306
9d8306
%files
9d8306
%doc LICENSE README AUTHORS
9d8306
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf
9d8306
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf
9d8306
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf
9d8306
%config(noreplace) %{_sysconfdir}/abrt/plugins/java.conf
9d8306
%{_bindir}/abrt-action-analyze-java
9d8306
%{_mandir}/man1/abrt-action-analyze-java.1*
9d8306
%{_mandir}/man5/java_event.conf.5*
9d8306
%{_mandir}/man5/bugzilla_format_java.conf.5*
9d8306
%{_mandir}/man5/bugzilla_formatdup_java.conf.5*
9d8306
%{_datadir}/abrt/conf.d/plugins/java.conf
9d8306
9d8306
# Applications may use a single subdirectory under/usr/lib.
9d8306
# http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE22
9d8306
#
9d8306
# Java does not support multilib.
9d8306
# https://fedorahosted.org/fesco/ticket/961
9d8306
%{_prefix}/lib/abrt-java-connector
9d8306
9d8306
9d8306
%check
9d8306
make test || {
9d8306
    cat Testing/Temporary/LastTest.log
9d8306
    exit 1
9d8306
}
9d8306
9d8306
9d8306
%changelog
9d8306
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9d8306
9d8306
* Mon Sep 11 2017 Matej Habrnal <mhabrnal@redhat.com> - 1.1.0-14
9d8306
- turn on unit testing and fix test outputs
9d8306
9d8306
* Mon Aug 28 2017 Matej Habrnal <mhabrnal@redhat.com> - 1.1.0-13
9d8306
- Rename log() to log_warning()
9d8306
- Update the test results
9d8306
- Resolves: #1484585
9d8306
9d8306
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.1.0-12
9d8306
- Rebuilt for RPM soname bump
9d8306
9d8306
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9d8306
9d8306
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9d8306
9d8306
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9d8306
9d8306
* Mon Feb 15 2016 Jakub Filak <jfilak@redhat.com> - 1.1.0-8
9d8306
- Drop '-pedantic' from CFLAGS
9d8306
- Correct includes for ABRT
9d8306
- Resolves: #1307305
9d8306
9d8306
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9d8306
9d8306
* Tue Jul 28 2015 Jakub Filak <jfilak@redhat.com> - 1.1.0-6
9d8306
- Rebuilt for new rpmlib : https://lists.fedoraproject.org/pipermail/devel/2015-July/212672.html
9d8306
9d8306
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9d8306
9d8306
* Mon Mar 16 2015 Matej Habrnal <mhabrnal@redhat.com> - 1.1.0-4
9d8306
- Make the dependency on systemd optional
9d8306
- Update the test results
9d8306
- Resolves: #1185626
9d8306
9d8306
* Tue Nov 04 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-3
9d8306
- Update the test results for armv7l
9d8306
9d8306
* Tue Nov 04 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-2
9d8306
- Update the test results for aarch64
9d8306
9d8306
* Wed Oct 29 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-1
9d8306
- Support java-1.8-openjdk
9d8306
- Install the library to /usr/lib/abrt-java-connector on all arches
9d8306
9d8306
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-4
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9d8306
9d8306
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-3
9d8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9d8306
9d8306
* Fri May 9 2014 Jakub Filak <jfilak@redhat.com> - 1.0.10-2
9d8306
- Add test results for Linux-ppc64le
9d8306
- Related: #981682
9d8306
9d8306
* Fri Apr 4 2014 Jakub Filak <jfilak@redhat.com> - 1.0.10-1
9d8306
- Temporarily ignore failures of reporter-ureport until ABRT start using FAF2
9d8306
- Prevent users from reporting low quality stack traces
9d8306
9d8306
* Tue Mar 18 2014 Jakub Filak <jfilak@redhat.com> - 1.0.9-1
9d8306
- Make the agent configurable via a configuration file
9d8306
- Include custom debug info in bug reports
9d8306
- Make the detection of 'executable' working with JAR files
9d8306
9d8306
* Tue Feb 04 2014 Jakub Filak <jfilak@redhat.com> - 1.0.8-3
9d8306
- Return the correct value from Agent_OnLoad
9d8306
- Add test for multiple calls of Agent_On*
9d8306
9d8306
* Tue Feb 04 2014 Jakub Filak <jfilak@redhat.com> - 1.0.8-2
9d8306
- Make sure that agent_onload and agent_onunload are processed only once
9d8306
- Fix a pair of defects uncovered by coverity
9d8306
9d8306
* Wed Jan 22 2014 Jakub Filak <jfilak@redhat.com> - 1.0.8-1
9d8306
- Do not report exceptions caught in a native method
9d8306
- Mark stack traces with 3rd party classes as not-reportable
9d8306
- Calculate 'duphash' & 'uuid' in satyr
9d8306
- Use the main class URL for 'executable'
9d8306
- Do not ship own reporting workflow definitions
9d8306
- Code optimizations
9d8306
9d8306
* Fri Jan 10 2014 Jakub Filak <jfilak@redhat.com> - 1.0.7-1
9d8306
- Use the last frame class path for executable
9d8306
- Gracefully handle JVMTI errors
9d8306
- Add an abstract to README
9d8306
- Add support for journald and syslog
9d8306
- Make log output disabled by default
9d8306
- Add support for changing log directory
9d8306
- Fix a race condition causing a crash of JVM
9d8306
9d8306
* Tue Oct 01 2013 Jakub Filak <jfilak@redhat.com> - 1.0.6-1
9d8306
- Fix a deadlock in GC start callback
9d8306
- Disable experimental features in production releases
9d8306
9d8306
* Tue Jul 30 2013 Jakub Filak <jfilak@redhat.com> - 1.0.5-1
9d8306
- Provide a proper configuration for libreport
9d8306
9d8306
* Thu Jul 18 2013 Jakub Filak <jfilak@redhat.com> - 1.0.4-1
9d8306
- Stop creating an empty log file
9d8306
9d8306
* Tue Jul 16 2013 Jakub Filak <jfilak@redhat.com> - 1.0.3-1
9d8306
- Fix tests on arm
9d8306
9d8306
* Tue Jul 09 2013 Jakub Filak <jfilak@redhat.com> - 1.0.2-1
9d8306
- Do not crash on empty command line options
9d8306
9d8306
* Mon Jul 08 2013 Jakub Filak <jfilak@redhat.com> - 1.0.1-1
9d8306
- Fix tests on ppc and s390 on both 32 and 64 bit
9d8306
9d8306
* Thu Jun 27 2013 Jakub Filak <jfilak@redhat.com> - 1.0.0-1
9d8306
- Publicly releasable version
9d8306
9d8306
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.2-1
9d8306
- Start versioning library
9d8306
- Drop build dependency on abrt-devel
9d8306
9d8306
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-2
9d8306
- Provide ABRT configuration
9d8306
9d8306
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-1
9d8306
- New release
9d8306
9d8306
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-3
9d8306
- Build with the library name same as the package name
9d8306
9d8306
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-2
9d8306
- Build with ABRT enabled
9d8306
9d8306
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-1
9d8306
- Initial version