Accepting request 324490 from devel:languages:haskell

1

OBS-URL: https://build.opensuse.org/request/show/324490
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-split?expand=0&rev=8
This commit is contained in:
Stephan Kulow 2015-08-23 13:43:20 +00:00 committed by Git OBS Bridge
commit b8d4267ba4
4 changed files with 39 additions and 8 deletions

View File

@ -1,3 +0,0 @@
<services>
<service name="download_files" mode="localonly"/></services>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 12 18:50:26 UTC 2015 - mimi.vx@gmail.com
- regenerated spec file
- add split-base.patch change dep constrains in cabal file
-------------------------------------------------------------------
Tue Sep 2 10:15:15 UTC 2014 - peter.trommler@ohm-hochschule.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-split
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,6 +18,8 @@
%global pkg_name split
%bcond_with tests
Name: ghc-split
Version: 0.2.2
Release: 0
@ -25,16 +27,24 @@ Summary: Combinator library for splitting lists
License: BSD-3-Clause
Group: System/Libraries
Url: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM split-base.patch fix cabal file dependency on base -- mimi.vx@gmail.com
Patch0: split-base.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
%endif
# End cabal-rpm deps
%description
A collection of various methods for splitting lists into parts, akin to the
\"split\" function found in several mainstream languages. Here is its tale:
"split" function found in several mainstream languages. Here is its tale:
Once upon a time the standard "Data.List" module held no function for splitting
a list into parts according to a delimiter. Many a brave lambda-knight strove
@ -54,7 +64,6 @@ To get started, see the "Data.List.Split" module.
%package devel
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
@ -66,6 +75,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%patch0 -p1
%build
%ghc_lib_build
@ -73,6 +83,11 @@ This package provides the Haskell %{pkg_name} library development files.
%install
%ghc_lib_install
%check
%if %{with tests}
%cabal test
%endif
%post devel
%ghc_pkg_recache

13
split-base.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/split.cabal b/split.cabal
index 695306c..11c86df 100644
--- a/split.cabal
+++ b/split.cabal
@@ -51,7 +51,7 @@ Source-repository head
Library
ghc-options: -Wall
- build-depends: base <4.8
+ build-depends: base <4.9
exposed-modules: Data.List.Split, Data.List.Split.Internals
default-language: Haskell2010
Hs-source-dirs: src