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
This commit is contained in:
Ondřej Súkup 2021-03-08 08:01:17 +00:00 committed by Git OBS Bridge
parent 7e92563f4c
commit 55df0446fd
3 changed files with 52 additions and 1 deletions

View File

@ -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 <mimi.vx@gmail.com>

View File

@ -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

43
network-byte-order.cabal Normal file
View File

@ -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