2bcb99b
%global snapshot 0
Packit Service d5650a6
%global commit bef7e39ce5fdc4a8a620d56be186d4463ed761a8
Jakub Filak d9e9a8a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Jakub Filak d9e9a8a
52e043a
Name:          abrt-java-connector
Packit Service d5650a6
Version:       1.1.5
abc7430
Release:       1%{?dist}
abc7430
Summary:       JNI Agent library converting Java exceptions to ABRT problems
abc7430
abc7430
Group:         System Environment/Libraries
abc7430
License:       GPLv2+
abc7430
URL:           https://github.com/abrt/abrt-java-connector
2bcb99b
%if 0%{?snapshot}
2bcb99b
Source0:       %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
2bcb99b
%else
2bcb99b
Source0:       %{url}/archive/%{version}/%{name}-%{version}.tar.gz
2bcb99b
%endif
abc7430
Packit Service d5650a6
BuildRequires: pkgconfig(abrt) >= 2.14.1
abc7430
BuildRequires: check-devel
cb7271f
BuildRequires: cmake
cb7271f
BuildRequires: gcc
7692527
BuildRequires: gcc-c++
cb7271f
BuildRequires: gettext
cb7271f
BuildRequires: java-devel
Packit Service d5650a6
BuildRequires: pkgconfig(libreport) >= 2.13.0
abc7430
BuildRequires: rpm-devel
cb7271f
BuildRequires: satyr-devel
cb7271f
BuildRequires: systemd-devel
abc7430
abc7430
Requires:      abrt
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%description
Jakub Filak d9e9a8a
JNI library providing an agent capable to process both caught and uncaught
3b15486
exceptions and transform them to ABRT problems.
3b15486
3b15486
%package container
3b15486
Summary: JNI Agent library converting Java exceptions to ABRT problems (minimal version)
3b15486
Requires: container-exception-logger
3b15486
conflicts: %{name}
3b15486
3b15486
%description container
3b15486
JNI library providing an agent capable to process both caught and uncaught
Jakub Filak d9e9a8a
exceptions and transform them to ABRT problems
Jakub Filak d9e9a8a
3b15486
This package contains only minimal set of files needed for container exception
3b15486
logging.
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%prep
2bcb99b
%if 0%{?snapshot}
14c1eea
%autosetup -n %{name}-%{commit}
2bcb99b
%else
2bcb99b
%autosetup
2bcb99b
%endif
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%build
Jakub Filak d9e9a8a
%cmake -DCMAKE_BUILD_TYPE=Release
fc44141
%make_build
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%install
fc44141
%make_install
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%files
3b15486
%doc README AUTHORS
3b15486
%license LICENSE
Jakub Filak d9e9a8a
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf
Jakub Filak d9e9a8a
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf
Jakub Filak d9e9a8a
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf
Jakub Filak 2c11d95
%config(noreplace) %{_sysconfdir}/abrt/plugins/java.conf
Jakub Filak 0188d2b
%{_bindir}/abrt-action-analyze-java
Jakub Filak 0188d2b
%{_mandir}/man1/abrt-action-analyze-java.1*
Jakub Filak 384a1e5
%{_mandir}/man5/java_event.conf.5*
Jakub Filak 384a1e5
%{_mandir}/man5/bugzilla_format_java.conf.5*
Jakub Filak 384a1e5
%{_mandir}/man5/bugzilla_formatdup_java.conf.5*
Jakub Filak 2c11d95
%{_datadir}/abrt/conf.d/plugins/java.conf
Jakub Filak 384a1e5
Jakub Filak 4bfb138
# Applications may use a single subdirectory under/usr/lib.
Jakub Filak 4bfb138
# http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE22
Jakub Filak 4bfb138
#
Jakub Filak 4bfb138
# Java does not support multilib.
Jakub Filak 4bfb138
# https://fedorahosted.org/fesco/ticket/961
Jakub Filak 4bfb138
%{_prefix}/lib/abrt-java-connector
Jakub Filak d9e9a8a
3b15486
%files container
3b15486
%doc README AUTHORS
3b15486
%license LICENSE
3b15486
# Applications may use a single subdirectory under/usr/lib.
3b15486
# http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE22
3b15486
#
3b15486
# Java does not support multilib.
3b15486
# https://fedorahosted.org/fesco/ticket/961
3b15486
%{_prefix}/lib/abrt-java-connector
3b15486
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%check
05aeeb9
make test || {
05aeeb9
    cat Testing/Temporary/LastTest.log
05aeeb9
    exit 1
05aeeb9
}
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
%changelog
2bcb99b
* Wed May 13 2020 Michal Fabik <mfabik@redhat.com> - 1.1.5-1
2bcb99b
- new upstream release: 1.1.5
2bcb99b
Packit Service d5650a6
* Tue May 12 2020 Packit Service <user-cont-team+packit-service@redhat.com> - 1.1.5-1
Packit Service d5650a6
- new upstream release: 1.1.5
Packit Service d5650a6
4e4b37a
* Fri Feb 07 2020 Ernestas Kulik <ekulik@redhat.com> - 1.1.4-1
4e4b37a
- Fix build failure with GCC 10
4e4b37a
abc7430
* Fri Feb 07 2020 Ernestas Kulik <ekulik@redhat.com> - 1.1.3-1
abc7430
- Fix stack traces not being logged in journald
abc7430
eafd433
* Fri Feb 07 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.1.2-4
eafd433
- Rebuild for satyr 0.30
eafd433
2d45f78
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
2d45f78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d45f78
9d547c7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
9d547c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9d547c7
8c0cef3
* Tue Jun 11 2019 Martin Kutlak <mkutlak@redhat.com> - 1.1.2-1
8c0cef3
- Fix gcc string truncation warning for strncpy
8c0cef3
- Replace legacy backticked with $() notation
8c0cef3
b3effd7
* Mon Jun 10 22:13:17 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.1-5
b3effd7
- Rebuild for RPM 4.15
b3effd7
e596528
* Mon Jun 10 15:41:59 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.1-4
e596528
- Rebuild for RPM 4.15
e596528
384a412
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
384a412
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
384a412
811efeb
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
811efeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
811efeb
3b15486
* Wed May 16 2018 Matej Habrnal <mhabrnal@redhat.com> - 1.1.1-1
3b15486
- Add possibility report reports problems to CEL
3b15486
- Upate test results
3b15486
- Change log() to log_warning()
Jakub Filak e3208be
- Correct includes for ABRT
aa598bf
- Make the dependency on systemd optional
Jakub Filak e8fc427
Jakub Filak 4bfb138
* Wed Oct 29 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-1
Jakub Filak 4bfb138
- Support java-1.8-openjdk
Jakub Filak 4bfb138
- Install the library to /usr/lib/abrt-java-connector on all arches
Jakub Filak 4bfb138
Jakub Filak e28ea6e
* Fri Apr 4 2014 Jakub Filak <jfilak@redhat.com> - 1.0.10-1
Jakub Filak e28ea6e
- Temporarily ignore failures of reporter-ureport until ABRT start using FAF2
Jakub Filak e28ea6e
- Prevent users from reporting low quality stack traces
Jakub Filak e28ea6e
Jakub Filak 2c11d95
* Tue Mar 18 2014 Jakub Filak <jfilak@redhat.com> - 1.0.9-1
Jakub Filak 2c11d95
- Make the agent configurable via a configuration file
Jakub Filak 2c11d95
- Include custom debug info in bug reports
Jakub Filak 2c11d95
- Make the detection of 'executable' working with JAR files
Jakub Filak 2c11d95
Jakub Filak 0188d2b
* Wed Jan 22 2014 Jakub Filak <jfilak@redhat.com> - 1.0.8-1
Jakub Filak 0188d2b
- Do not report exceptions caught in a native method
Jakub Filak 0188d2b
- Mark stack traces with 3rd party classes as not-reportable
Jakub Filak 0188d2b
- Calculate 'duphash' & 'uuid' in satyr
Jakub Filak 0188d2b
- Use the main class URL for 'executable'
Jakub Filak 0188d2b
- Do not ship own reporting workflow definitions
Jakub Filak 0188d2b
- Code optimizations
Jakub Filak 0188d2b
Jakub Filak a67eae1
* Fri Jan 10 2014 Jakub Filak <jfilak@redhat.com> - 1.0.7-1
Jakub Filak a67eae1
- Use the last frame class path for executable
Jakub Filak a67eae1
- Gracefully handle JVMTI errors
Jakub Filak a67eae1
- Add an abstract to README
Jakub Filak a67eae1
- Add support for journald and syslog
Jakub Filak a67eae1
- Make log output disabled by default
Jakub Filak a67eae1
- Add support for changing log directory
Jakub Filak a67eae1
- Fix a race condition causing a crash of JVM
Jakub Filak a67eae1
Jakub Filak 0a1fd4c
* Tue Oct 01 2013 Jakub Filak <jfilak@redhat.com> - 1.0.6-1
Jakub Filak 0a1fd4c
- Fix a deadlock in GC start callback
Jakub Filak 0a1fd4c
- Disable experimental features in production releases
Jakub Filak 0a1fd4c
Jakub Filak 384a1e5
* Tue Jul 30 2013 Jakub Filak <jfilak@redhat.com> - 1.0.5-1
Jakub Filak 384a1e5
- Provide a proper configuration for libreport
Jakub Filak 384a1e5
Jakub Filak ee47198
* Thu Jul 18 2013 Jakub Filak <jfilak@redhat.com> - 1.0.4-1
Jakub Filak ee47198
- Stop creating an empty log file
Jakub Filak ee47198
Jakub Filak 9b7abd2
* Tue Jul 16 2013 Jakub Filak <jfilak@redhat.com> - 1.0.3-1
Jakub Filak 9b7abd2
- Fix tests on arm
Jakub Filak 9b7abd2
Jakub Filak 2b02941
* Tue Jul 09 2013 Jakub Filak <jfilak@redhat.com> - 1.0.2-1
Jakub Filak 2b02941
- Do not crash on empty command line options
Jakub Filak 2b02941
Jakub Filak bfaa825
* Mon Jul 08 2013 Jakub Filak <jfilak@redhat.com> - 1.0.1-1
Jakub Filak bfaa825
- Fix tests on ppc and s390 on both 32 and 64 bit
Jakub Filak bfaa825
Jakub Filak d9e9a8a
* Thu Jun 27 2013 Jakub Filak <jfilak@redhat.com> - 1.0.0-1
Jakub Filak d9e9a8a
- Publicly releasable version
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.2-1
Jakub Filak d9e9a8a
- Start versioning library
Jakub Filak d9e9a8a
- Drop build dependency on abrt-devel
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-2
Jakub Filak d9e9a8a
- Provide ABRT configuration
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-1
Jakub Filak d9e9a8a
- New release
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-3
Jakub Filak d9e9a8a
- Build with the library name same as the package name
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-2
Jakub Filak d9e9a8a
- Build with ABRT enabled
Jakub Filak d9e9a8a
Jakub Filak d9e9a8a
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-1
Jakub Filak d9e9a8a
- Initial version