From 2b9180c684e077798904ff00c63acceb1132e64309c5c34d333740610856f5b5 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 19 Jun 2018 06:11:03 +0000 Subject: [PATCH] Accepting request 617646 from home:eeich:branches:science:HPC - Handle license file using %license where applicable. OBS-URL: https://build.opensuse.org/request/show/617646 OBS-URL: https://build.opensuse.org/package/show/science:HPC/suse-hpc?expand=0&rev=26 --- suse-hpc.changes | 5 +++++ suse-hpc.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/suse-hpc.changes b/suse-hpc.changes index cc26c47..0449dd9 100644 --- a/suse-hpc.changes +++ b/suse-hpc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 19 05:08:01 UTC 2018 - eich@suse.com + +- Handle license file using %license where applicable. + ------------------------------------------------------------------- Mon Jun 18 04:56:03 UTC 2018 - eich@suse.com diff --git a/suse-hpc.spec b/suse-hpc.spec index 3a5ce2f..b4729a3 100644 --- a/suse-hpc.spec +++ b/suse-hpc.spec @@ -49,9 +49,15 @@ install -m 755 %{S:2} dlinfo %{buildroot}%{_rpmconfigdir} install -m 644 %{S:3} %{S:4} %{buildroot}%{_rpmconfigdir}/fileattrs cp %{S:5} . +%if 0%{?sle_version} && 0%{?sle_version} <= 120200 +%define mylicense %doc +%else +%define mylicense %license +%endif + %files %defattr(-,root,root,-) -%doc LICENSE +%mylicense LICENSE %config %{_sysconfdir}/rpm/macros.hpc %{_rpmconfigdir}/dlinfo %{_rpmconfigdir}/hpc_elf.pl