Synchronize builds with devel:languages:haskell:lts:7.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-syb?expand=0&rev=21
This commit is contained in:
Peter Simons 2016-10-06 18:52:51 +00:00 committed by Git OBS Bridge
parent c3afe8b5fd
commit 07bcaafc3a

View File

@ -23,19 +23,17 @@ Version: 0.6
Release: 0
Summary: Scrap Your Boilerplate
License: BSD-3-Clause
Group: System/Libraries
Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Begin cabal-rpm deps:
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-mtl-devel
%endif
# End cabal-rpm deps
%description
This package contains the generics system described in the /Scrap Your
@ -58,20 +56,15 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
sed -i 's/\r$//' README LICENSE
%check
%if %{with tests}
%{cabal} test
%endif
%cabal_test
%post devel
%ghc_pkg_recache