osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-network-info revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-network-info?expand=0&rev=1
This commit is contained in:
commit
3cf170eaf8
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
5
ghc-network-info.changes
Normal file
5
ghc-network-info.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 9 09:26:15 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
- Add network-info at version 0.2.0.10.
|
||||||
|
|
72
ghc-network-info.spec
Normal file
72
ghc-network-info.spec
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
#
|
||||||
|
# spec file for package ghc-network-info
|
||||||
|
#
|
||||||
|
# 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 network-info
|
||||||
|
Name: ghc-%{pkg_name}
|
||||||
|
Version: 0.2.0.10
|
||||||
|
Release: 0
|
||||||
|
Summary: Access the local computer's basic network configuration
|
||||||
|
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-rpm-macros
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%post devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
%doc CHANGELOG.md README.mkd
|
||||||
|
|
||||||
|
%changelog
|
3
network-info-0.2.0.10.tar.gz
Normal file
3
network-info-0.2.0.10.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5680f6975d34cf4f81fa7ca0c8efd682261d6a1119e06dece0f67c7bd97fd52a
|
||||||
|
size 6278
|
58
network-info.cabal
Normal file
58
network-info.cabal
Normal file
@ -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 <jacob@stanley.io>
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user