revise .cabal

This commit is contained in:
Jens Petersen 2021-08-04 22:29:11 +08:00
parent bedada0ca3
commit 262c0dc8d2
2 changed files with 45 additions and 0 deletions

View File

@ -15,6 +15,7 @@ License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
@ -70,6 +71,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup

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