From 00cf23faf5883a65e1f7497ccdb6df1cecfe287984f313ffdbeef4a83dc5ea45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 8 Mar 2021 08:01:17 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-network-byte-order revision:10, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-network-byte-order?expand=0&rev=11 --- ghc-network-byte-order.changes | 6 +++++ ghc-network-byte-order.spec | 4 +++- network-byte-order.cabal | 43 ++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 network-byte-order.cabal diff --git a/ghc-network-byte-order.changes b/ghc-network-byte-order.changes index 8d93d5e..780d537 100644 --- a/ghc-network-byte-order.changes +++ b/ghc-network-byte-order.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 15 09:42:51 UTC 2021 - psimons@suse.com + +- Update network-byte-order to version 0.1.6 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-network-byte-order.spec b/ghc-network-byte-order.spec index 7da8700..a56bbcc 100644 --- a/ghc-network-byte-order.spec +++ b/ghc-network-byte-order.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-network-byte-order # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Network byte order utilities 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-bytestring-devel BuildRequires: ghc-rpm-macros @@ -49,6 +50,7 @@ files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/network-byte-order.cabal b/network-byte-order.cabal new file mode 100644 index 0000000..360acc0 --- /dev/null +++ b/network-byte-order.cabal @@ -0,0 +1,43 @@ +-- Initial network-byte-order.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/ + +name: network-byte-order +version: 0.1.6 +x-revision: 1 +synopsis: Network byte order utilities +description: Peek and poke functions for network byte order. +license: BSD3 +license-file: LICENSE +author: Kazu Yamamoto +maintainer: kazu@iij.ad.jp +-- copyright: +category: Network +build-type: Simple +-- extra-source-files: ChangeLog.md +cabal-version: >= 1.10 + +library + ghc-options: -Wall + exposed-modules: Network.ByteOrder + -- other-modules: + -- other-extensions: + build-depends: base >= 4.9 && < 5 + , bytestring + -- hs-source-dirs: + default-language: Haskell2010 + 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: -Wall + main-is: doctests.hs + build-depends: base + , bytestring + , doctest + +source-repository head + type: git + location: git://github.com/kazu-yamamoto/network-byte-order.git