From 805fc1c040b59fe4e89c4df3b4496326ee9639ca Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 2 Sep 2016 19:07:33 +0900 Subject: [PATCH] handle the ghc-haskell-platform-devel license file correctly --- haskell-platform.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haskell-platform.spec b/haskell-platform.spec index 5410aec..141bb09 100644 --- a/haskell-platform.spec +++ b/haskell-platform.spec @@ -233,6 +233,8 @@ mv packages/* .. %install %ghc_libs_install $(egrep \-v "^(%{?separate_packages})-[0-9]" %{name}-%{upstream_version}/etc/build.packages) %{name}-%{version} +mv %{buildroot}%{_datadir}/licenses/ghc-haskell-platform{,-devel} + %ghc_strip_dynlinked @@ -250,7 +252,7 @@ mv packages/* .. %files -n ghc-haskell-platform-devel -f ghc-haskell-platform-devel.files -%license haskell-platform-%{version}/LICENSE +%license %{name}-%{version}/LICENSE %changelog