Accepting request 322678 from devel:languages:haskell:lts

- regenerated spec file 
- add split-base.patch change dep constrains in cabal file

OBS-URL: https://build.opensuse.org/request/show/322678
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-split?expand=0&rev=14
This commit is contained in:
Ondřej Súkup 2015-08-20 06:37:17 +00:00 committed by Git OBS Bridge
parent 53e2a649bd
commit 02c60b74f5
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 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,6 +18,8 @@
%global pkg_name split %global pkg_name split
%bcond_with tests
Name: ghc-split Name: ghc-split
Version: 0.2.2 Version: 0.2.2
Release: 0 Release: 0
@ -25,16 +27,24 @@ Summary: Combinator library for splitting lists
License: BSD-3-Clause License: BSD-3-Clause
Group: System/Libraries Group: System/Libraries
Url: http://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
%endif
# End cabal-rpm deps
%description %description
A collection of various methods for splitting lists into parts, akin to the 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 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 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 %package devel
Summary: Haskell %{pkg_name} library development files Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other Group: Development/Libraries/Other
Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version} Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): 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 %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkg_name}-%{version}
%patch0 -p1
%build %build
%ghc_lib_build %ghc_lib_build
@ -73,6 +83,11 @@ This package provides the Haskell %{pkg_name} library development files.
%install %install
%ghc_lib_install %ghc_lib_install
%check
%if %{with tests}
%cabal test
%endif
%post devel %post devel
%ghc_pkg_recache %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