From 1d2589cb618fe78b2edcaf64baaa41675f0e71d2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Jul 2020 16:38:01 +0800 Subject: [PATCH] add revision --- ghc-network-info.spec | 2 ++ network-info-0.2.0.10.cabal | 58 +++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 network-info-0.2.0.10.cabal diff --git a/ghc-network-info.spec b/ghc-network-info.spec index beec285..c2e0ffd 100644 --- a/ghc-network-info.spec +++ b/ghc-network-info.spec @@ -13,6 +13,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: @@ -64,6 +65,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 diff --git a/network-info-0.2.0.10.cabal b/network-info-0.2.0.10.cabal new file mode 100644 index 0000000..8ef12b2 --- /dev/null +++ b/network-info-0.2.0.10.cabal @@ -0,0 +1,58 @@ +name: network-info +version: 0.2.0.10 +x-revision: 1 +synopsis: Access the local computer's basic network configuration + +description: This library provides simple read-only access to the + local computer's networking configuration. It is + currently capable of getting a list of all the network + interfaces and their respective IPv4, IPv6 and MAC + addresses. + . + network-info has been tested and is known to work on + Ubuntu 10.10, FreeBSD 9.0, Mac OS X 10.6.4 and Windows + XP/7. It probably works on other flavours of Linux, + OS X, FreeBSD and Windows as well. + +homepage: http://github.com/jacobstanley/network-info +license: BSD3 +license-file: LICENSE +author: Jacob Stanley +maintainer: Jacob Stanley +category: Network +build-type: Simple +cabal-version: >= 1.6 +tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1 + +extra-source-files: + cbits/common.h, + cbits/common.inc, + cbits/network.h, + test/src/Main.hs, + test/network-info-test.cabal, + test/run-tests.bat, + test/run-tests.sh, + README.mkd, + CHANGELOG.md + +source-repository head + type: git + location: git://github.com/jacobstanley/network-info.git + +Library + hs-source-dirs: src + include-dirs: cbits + cc-options: -Wall -std=c99 + + exposed-modules: Network.Info + + build-depends: + base == 4.* + + if os(windows) + c-sources: cbits/network-windows.c + extra-libraries: iphlpapi + else + c-sources: cbits/network-unix.c + if os(solaris) + extra-libraries: socket, nsl