From 5e47ce8ca9e9fce39dc5aed16e430f555f470972a7b04cc39be91bec523432c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 8 Jan 2021 10:06:15 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-iproute revision:11, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-iproute?expand=0&rev=13 --- ghc-iproute.changes | 6 ++++ ghc-iproute.spec | 2 ++ iproute.cabal | 86 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 iproute.cabal diff --git a/ghc-iproute.changes b/ghc-iproute.changes index 14d7fc2..53bc1a8 100644 --- a/ghc-iproute.changes +++ b/ghc-iproute.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 22 12:58:18 UTC 2020 - psimons@suse.com + +- Update iproute to version 1.7.10 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup diff --git a/ghc-iproute.spec b/ghc-iproute.spec index 4c61324..161af14 100644 --- a/ghc-iproute.spec +++ b/ghc-iproute.spec @@ -25,6 +25,7 @@ Summary: IP Routing Table License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-appar-devel BuildRequires: ghc-byteorder-devel @@ -57,6 +58,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/iproute.cabal b/iproute.cabal new file mode 100644 index 0000000..105218c --- /dev/null +++ b/iproute.cabal @@ -0,0 +1,86 @@ +Name: iproute +Version: 1.7.10 +x-revision: 1 +Author: Kazu Yamamoto +Maintainer: Kazu Yamamoto +License: BSD3 +License-File: LICENSE +Homepage: http://www.mew.org/~kazu/proj/iproute/ +Synopsis: IP Routing Table +Description: IP Routing Table is a tree of IP ranges + to search one of them on the longest + match base. It is a kind of TRIE with one + way branching removed. Both IPv4 and IPv6 + are supported. +Category: Algorithms, Network +Cabal-Version: >= 1.10 +Build-Type: Simple +Tested-With: GHC == 7.8.4 + , GHC == 7.10.3 + , GHC == 8.0.2 + , GHC == 8.2.2 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.2 + +Library + Default-Language: Haskell2010 + GHC-Options: -Wall + Exposed-Modules: Data.IP + Data.IP.Builder + Data.IP.Internal + Data.IP.RouteTable + Data.IP.RouteTable.Internal + Other-Modules: Data.IP.Addr + Data.IP.Mask + Data.IP.Op + Data.IP.Range + Build-Depends: base >= 4.9 && < 5 + , appar + , byteorder + , bytestring + , containers + , network + if impl(ghc < 8.0) + Build-Depends: semigroups >= 0.17 + if impl(ghc >= 8) + Default-Extensions: Strict StrictData + +Test-Suite doctest + Type: exitcode-stdio-1.0 + Default-Language: Haskell2010 + HS-Source-Dirs: test + Ghc-Options: -threaded -Wall + Main-Is: doctests.hs + Build-Depends: base >= 4.9 && < 5 + , doctest >= 0.9.3 + , appar + , byteorder + , bytestring + , network + +Test-Suite spec + Type: exitcode-stdio-1.0 + Default-Language: Haskell2010 + Hs-Source-Dirs: test + Ghc-Options: -Wall + Main-Is: Spec.hs + Other-Modules: RouteTableSpec + , BuilderSpec + , IPSpec + Build-Depends: base >= 4.9 && < 5 + , hspec + , QuickCheck + , appar + , byteorder + , bytestring + , containers + , network + , safe + , iproute + if impl(ghc < 8.0) + Build-Depends: semigroups >= 0.17 + +Source-Repository head + Type: git + Location: git://github.com/kazu-yamamoto/iproute.git