From 381aec6a6e329c5e8ac50e60699a2cd3f8f02a24047ff99b31ffab5121ba6dd8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 22 Nov 2020 18:08:48 +0000 Subject: [PATCH] - OpenCL required at runtime [boo#1177190] OBS-URL: https://build.opensuse.org/package/show/security/hashcat?expand=0&rev=14 --- hashcat-rpmlintrc | 2 ++ hashcat.changes | 5 +++++ hashcat.spec | 11 +++-------- 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 hashcat-rpmlintrc diff --git a/hashcat-rpmlintrc b/hashcat-rpmlintrc new file mode 100644 index 0000000..aac89bb --- /dev/null +++ b/hashcat-rpmlintrc @@ -0,0 +1,2 @@ +# program wants openCL headers at runtime for some reason +addFilter("devel-file-in-non-devel-package") diff --git a/hashcat.changes b/hashcat.changes index fde9ca4..e9daa50 100644 --- a/hashcat.changes +++ b/hashcat.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 22 17:07:52 UTC 2020 - Jan Engelhardt + +- OpenCL required at runtime [boo#1177190] + ------------------------------------------------------------------- Tue Sep 8 08:47:27 UTC 2020 - Jan Engelhardt diff --git a/hashcat.spec b/hashcat.spec index 28c07de..cebc485 100644 --- a/hashcat.spec +++ b/hashcat.spec @@ -26,6 +26,7 @@ Group: Productivity/Security URL: https://hashcat.net/ Source: https://github.com/hashcat/hashcat/archive/v%version.tar.gz +Source9: %name-rpmlintrc Patch1: system-libs.patch BuildRequires: fdupes BuildRequires: gmp-devel @@ -71,6 +72,7 @@ This subpackage contains the header files. %prep %autosetup -p1 +find . -name .lock -type f -delete %build %global margs DOCUMENT_FOLDER="%_docdir/%name" our_CFLAGS="%optflags" LIBRARY_FOLDER="%_libdir" @@ -94,12 +96,7 @@ ln -s "%_libdir/%name/modules" "$b/%_datadir/%name/" %_bindir/hashcat %_docdir/%name/ %_libdir/%name/ -%dir %_datadir/%name/ -%_datadir/%name/modules -%_datadir/%name/hashcat.hcstat2 -%_datadir/%name/hashcat.hctune -%dir %_datadir/%name/OpenCL/ -%_datadir/%name/OpenCL/*.cl +%_datadir/%name/ %files -n %lname %_libdir/libhashcat.so.%version @@ -107,7 +104,5 @@ ln -s "%_libdir/%name/modules" "$b/%_datadir/%name/" %files devel %_includedir/hashcat/ %_libdir/libhashcat.so -%dir %_datadir/%name/ -%_datadir/%name/OpenCL/*.h %changelog