From e9389bbc3916377f62de5fcd296dd8451029d758a8d3a50f04ab81a1624435b0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 16 Jun 2020 10:56:59 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-iproute revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-iproute?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + ghc-iproute.changes | 5 +++ ghc-iproute.spec | 82 ++++++++++++++++++++++++++++++++++++++++++ iproute-1.7.9.tar.gz | 3 ++ iproute.cabal | 86 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 200 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-iproute.changes create mode 100644 ghc-iproute.spec create mode 100644 iproute-1.7.9.tar.gz create mode 100644 iproute.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-iproute.changes b/ghc-iproute.changes new file mode 100644 index 0000000..550e2ea --- /dev/null +++ b/ghc-iproute.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:15 UTC 2020 - psimons@suse.com + +- Add iproute at version 1.7.9. + diff --git a/ghc-iproute.spec b/ghc-iproute.spec new file mode 100644 index 0000000..c6f941a --- /dev/null +++ b/ghc-iproute.spec @@ -0,0 +1,82 @@ +# +# spec file for package ghc-iproute +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name iproute +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 1.7.9 +Release: 0 +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 +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-network-devel +BuildRequires: ghc-rpm-macros +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-safe-devel +%endif + +%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. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%prep +%setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files + +%changelog diff --git a/iproute-1.7.9.tar.gz b/iproute-1.7.9.tar.gz new file mode 100644 index 0000000..421a26c --- /dev/null +++ b/iproute-1.7.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5547fa599c46b854c98625d7d3b745557193704096d3a947c1d8c534a23360d4 +size 17732 diff --git a/iproute.cabal b/iproute.cabal new file mode 100644 index 0000000..a9d54ef --- /dev/null +++ b/iproute.cabal @@ -0,0 +1,86 @@ +Name: iproute +Version: 1.7.9 +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.7 && < 5 + , appar + , byteorder + , bytestring >= 0.10.2 + , 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.6 && < 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.6 && < 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