diff --git a/.gitignore b/.gitignore index bbce598..bfe18e8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ /will-crash-0.8.tar.gz /will-crash-0.9.tar.gz /will-crash-0.10.tar.gz +/will-crash-v0.12.tar.gz +/will-crash-0.13.tar.gz +/will-crash-0.13.2.tar.gz diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000..1ffaeab --- /dev/null +++ b/.packit.yml @@ -0,0 +1,19 @@ +specfile_path: 'will-crash.spec' +synced_files: + - '.packit.yml' + - 'will-crash.spec' +upstream_package_name: 'will-crash' +upstream_project_url: 'https://github.com/abrt/will-crash' +upstream_tag_template: 'v{version}' +downstream_package_name: 'will-crash' +jobs: +- job: 'propose_downstream' + trigger: 'release' + metadata: + dist-git-branch: 'fedora-all' +- job: 'copr_build' + trigger: 'pull_request' + metadata: + targets: + - 'epel-8' + - 'fedora-all' diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..19936d7 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 0.8.1. diff --git a/sources b/sources index fdcda19..909a528 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -030fdd1cf4efe2beded39a6666d9ea1b will-crash-0.10.tar.gz +SHA512 (will-crash-0.13.2.tar.gz) = 804da4c60d760132eb4bf0b15a6715118c7bfd98e5f53d3c1faaa43f7b945079cef40fdd3825c8a41a6e845d404dee80b1de6e98446930b9fabca6197257bfca diff --git a/will-crash.spec b/will-crash.spec index 10a3aaa..44dbfe3 100644 --- a/will-crash.spec +++ b/will-crash.spec @@ -1,34 +1,29 @@ +# http://fedoraproject.org/wiki/Packaging:Guidelines#PIE +# http://fedoraproject.org/wiki/Hardened_Packages +%global _hardened_build 1 + Name: will-crash -Version: 0.10 -Release: 10%{?dist} +Version: 0.13.2 +Release: 1%{?dist} Summary: Set of crashing executables written in various languages +Group: Development/Tools License: GPLv3 -URL: http://github.com/sorki/will-crash -Source0: http://sources.48.io/will-crash/%{name}-%{version}.tar.gz +URL: https://github.com/abrt/will-crash +Source0: https://github.com/abrt/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz -BuildRequires: autoconf -BuildRequires: automake BuildRequires: java-devel +BuildRequires: javapackages-tools BuildRequires: libtool +BuildRequires: meson BuildRequires: gcc-c++ BuildRequires: ruby-devel -Requires: ruby -Requires: python2 -%if 0%{?rhel} && 0%{?rhel} == 6 -Requires: java-1.8.0-openjdk-headless -Requires: jpackage-utils -%else + Requires: java-headless >= 1.7.0.0 Requires: javapackages-tools -%endif - -# Don't require python3 for el6/el7, exclude ppc64 due to missing java -%if 0%{?rhel} -ExcludeArch: ppc64 -%else +Requires: perl Requires: python3 -%endif +Requires: ruby %description The main purpose of this project is to provide sample @@ -39,44 +34,59 @@ like ABRT. %setup -q %build -./autogen.sh -%configure -make %{?_smp_mflags} +%meson \ + -Djavadir=%{_javadir} \ + -D_java_home=%{java_home} \ + %{nil} +%meson_build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/java - -make install DESTDIR=%{buildroot} -# no devel package -> no *.so links to versioned libraries needed -find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f +%meson_install %files %doc README.rst %doc LICENSE -%doc AUTHORS %{_bindir}/will_segfault +%{_bindir}/will_segfault_in_new_pid +%{_bindir}/will_segfault_threads %{_bindir}/will_abort -%{_bindir}/will_python_raise -%{_bindir}/will_python_sigsegv +%{_bindir}/will_perl_sigsegv +%{_bindir}/will_python3_sigsegv %{_bindir}/will_python3_raise %{_bindir}/will_ruby_raise %{_bindir}/will_java_segfault %{_bindir}/will_java_throw %{_bindir}/will_java_throw_remote -%if 0%{?rhel} && 0%{?rhel} > 6 %{_bindir}/will_java_throw_suppressed -%endif %{_bindir}/will_cpp_segfault %{_bindir}/will_stackoverflow %{_bindir}/will_oops -%{_datadir}/java/* +%{_datadir}/java/WillRaiseSigSegv.class +%{_datadir}/java/willcrash/willremoteloader.jar +%{_datadir}/java/willcrash/willsuppressed.jar +%{_datadir}/java/willcrash/willuncaught.jar %{_datadir}/will-crash/* -%{_libdir}/libwillcrash.so* -# Java runtime requires unversioned library +%{_libdir}/%{name}/libwillcrash.so +# There’s no way to set the rpath in Java, so it will either look in whatever +# path it does or we have to use System.load(), which takes a path to a library, +# but then you need to guess the extension, which is not portable (though doesn’t +# matter here per se, it’s still not desirable to write hacks). %{_libdir}/libwilljavasegfault.so* %{ruby_vendorlibdir}/will_crash.rb %changelog +* Fri Feb 21 2020 Ernestas Kulik - 0.13.2-1 +- new upstream release: 0.13.2 + +* Thu Feb 20 2020 Ernestas Kulik - 0.13-1 +- new upstream release: 0.13 + +* Tue Jul 02 2019 Ernestas Kulik - 0.12-1 +- Update upstream URIs +- Enable PIEs +- Remove RHEL 6/7-specific content +- Update to 0.12 + * Sun Feb 03 2019 Fedora Release Engineering - 0.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild