Blame SPECS/abrt-java-connector.spec

ad6d9c
%global commit befb850dbc72b117ad6bebabee314e7d41b97183
ad6d9c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
ad6d9c
ad6d9c
Name:		abrt-java-connector
ad6d9c
Version:	1.0.6
ad6d9c
Release:	1%{?dist}
ad6d9c
Summary:	JNI Agent library converting Java exceptions to ABRT problems
ad6d9c
ad6d9c
Group:		System Environment/Libraries
ad6d9c
License:	GPLv2+
ad6d9c
URL:		https://github.com/jfilak/abrt-java-connector
ad6d9c
Source0:	https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
ad6d9c
ad6d9c
BuildRequires:	cmake
ad6d9c
BuildRequires:	libreport-devel
ad6d9c
BuildRequires:	java-1.7.0-openjdk-devel
ad6d9c
ad6d9c
Requires:	abrt
ad6d9c
ad6d9c
%description
ad6d9c
JNI library providing an agent capable to process both caught and uncaught
ad6d9c
exceptions and transform them to ABRT problems
ad6d9c
ad6d9c
ad6d9c
%prep
ad6d9c
%setup -qn %{name}-%{commit}
ad6d9c
ad6d9c
ad6d9c
%build
ad6d9c
%cmake -DCMAKE_BUILD_TYPE=Release
ad6d9c
make %{?_smp_mflags}
ad6d9c
ad6d9c
ad6d9c
%install
ad6d9c
make install DESTDIR=%{buildroot}
ad6d9c
ad6d9c
# Remove unwanted Fedora specific workflow configuration files
ad6d9c
%if 0%{!?fedora:1}
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraJava.xml
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_fedora_java.conf
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/events.d/java_event_fedora.conf
ad6d9c
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_fedora_java.conf.5
ad6d9c
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/java_event_fedora.conf.5
ad6d9c
%endif
ad6d9c
ad6d9c
# Remove unwanted RHEL specific workflow configuration files
ad6d9c
%if 0%{!?rhel:1}
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELJava.xml
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_rhel_java.conf
ad6d9c
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/events.d/java_event_rhel.conf
ad6d9c
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_rhel_java.conf.5
ad6d9c
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/java_event_rhel.conf.5
ad6d9c
%endif
ad6d9c
ad6d9c
ad6d9c
%files
ad6d9c
%doc LICENSE README AUTHORS
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf
ad6d9c
%{_mandir}/man5/java_event.conf.5*
ad6d9c
%{_mandir}/man5/bugzilla_format_java.conf.5*
ad6d9c
%{_mandir}/man5/bugzilla_formatdup_java.conf.5*
ad6d9c
ad6d9c
%if 0%{?fedora}
ad6d9c
%{_datadir}/libreport/workflows/workflow_FedoraJava.xml
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event_fedora.conf
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora_java.conf
ad6d9c
%{_mandir}/man5/java_event_fedora.conf.5*
ad6d9c
%{_mandir}/man5/report_fedora_java.conf.5*
ad6d9c
%endif
ad6d9c
ad6d9c
%if 0%{?rhel}
ad6d9c
%{_datadir}/libreport/workflows/workflow_RHELJava.xml
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event_rhel.conf
ad6d9c
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_java.conf
ad6d9c
%{_mandir}/man5/java_event_rhel.conf.5*
ad6d9c
%{_mandir}/man5/report_rhel_java.conf.5*
ad6d9c
%endif
ad6d9c
ad6d9c
# install only unversioned shared object because the package is a Java plugin
ad6d9c
# and not a system library but unfortunately the library must be placed in ld
ad6d9c
# library paths
ad6d9c
%{_libdir}/lib%{name}.so
ad6d9c
ad6d9c
ad6d9c
%check
ad6d9c
make test
ad6d9c
ad6d9c
ad6d9c
%post -p /sbin/ldconfig
ad6d9c
ad6d9c
ad6d9c
%postun -p /sbin/ldconfig
ad6d9c
ad6d9c
ad6d9c
ad6d9c
%changelog
ad6d9c
* Tue Oct 01 2013 Jakub Filak <jfilak@redhat.com> - 1.0.6-1
ad6d9c
- Fix a deadlock in GC start callback
ad6d9c
- Disable experimental features in production releases
ad6d9c
- Resolves: #1012827
ad6d9c
ad6d9c
* Tue Jul 30 2013 Jakub Filak <jfilak@redhat.com> - 1.0.5-1
ad6d9c
- Provide a proper configuration for libreport
ad6d9c
ad6d9c
* Thu Jul 18 2013 Jakub Filak <jfilak@redhat.com> - 1.0.4-1
ad6d9c
- Stop creating an empty log file
ad6d9c
- Resolves: #985776
ad6d9c
ad6d9c
* Tue Jul 16 2013 Jakub Filak <jfilak@redhat.com> - 1.0.3-1
ad6d9c
- Fix tests on arm
ad6d9c
ad6d9c
* Tue Jul 09 2013 Jakub Filak <jfilak@redhat.com> - 1.0.2-1
ad6d9c
- Do not crash on empty command line options
ad6d9c
ad6d9c
* Mon Jul 08 2013 Jakub Filak <jfilak@redhat.com> - 1.0.1-1
ad6d9c
- Fix tests on ppc and s390 on both 32 and 64 bit
ad6d9c
ad6d9c
* Thu Jun 27 2013 Jakub Filak <jfilak@redhat.com> - 1.0.0-1
ad6d9c
- Publicly releasable version
ad6d9c
ad6d9c
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.2-1
ad6d9c
- Start versioning library
ad6d9c
- Drop build dependency on abrt-devel
ad6d9c
ad6d9c
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-2
ad6d9c
- Provide ABRT configuration
ad6d9c
ad6d9c
* Mon Jun 03 2013 Jakub Filak <jfilak@redhat.com> - 0.1.1-1
ad6d9c
- New release
ad6d9c
ad6d9c
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-3
ad6d9c
- Build with the library name same as the package name
ad6d9c
ad6d9c
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-2
ad6d9c
- Build with ABRT enabled
ad6d9c
ad6d9c
* Fri May 31 2013 Jakub Filak <jfilak@redhat.com> - 0.1.0-1
ad6d9c
- Initial version