From abcbc4de48c4ef541c92233d6297e528b975a540ba71cb1f047f838ee0d3813d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 15 May 2018 18:42:31 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:texmath revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/texmath?expand=0&rev=73 --- texmath.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/texmath.spec b/texmath.spec index 5e89a65..37b847d 100644 --- a/texmath.spec +++ b/texmath.spec @@ -26,22 +26,25 @@ License: GPL-2.0-or-later Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: chrpath BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-mtl-devel +BuildRequires: ghc-network-uri-devel BuildRequires: ghc-pandoc-types-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-split-devel BuildRequires: ghc-syb-devel +BuildRequires: ghc-text-devel BuildRequires: ghc-xml-devel %if %{with tests} -BuildRequires: ghc-bytestring-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-process-devel -BuildRequires: ghc-split-devel BuildRequires: ghc-temporary-devel -BuildRequires: ghc-text-devel BuildRequires: ghc-utf8-string-devel %endif @@ -91,10 +94,12 @@ This package provides the Haskell %{name} library development files. %setup -q %build +%define cabal_configure_options -fexecutable %ghc_lib_build %install %ghc_lib_install +%ghc_fix_rpath %{pkg_name}-%{version} %check %cabal_test @@ -108,6 +113,7 @@ This package provides the Haskell %{name} library development files. %files %license LICENSE %doc README.markdown changelog +%{_bindir}/%{name} %files -n ghc-%{name} -f ghc-%{name}.files %license LICENSE