From 3cf170eaf8a3c2124089e921920c398e6e14bdae1cbcf411f1c6a15e9e5b849f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 16 Jun 2020 10:57:07 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++ ghc-network-info.changes | 5 +++ ghc-network-info.spec | 72 ++++++++++++++++++++++++++++++++++++ network-info-0.2.0.10.tar.gz | 3 ++ network-info.cabal | 58 +++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+) create mode 100644 .gitattributes create mode 100644 ghc-network-info.changes create mode 100644 ghc-network-info.spec create mode 100644 network-info-0.2.0.10.tar.gz create mode 100644 network-info.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/ghc-network-info.changes b/ghc-network-info.changes new file mode 100644 index 0000000..3c34f6a --- /dev/null +++ b/ghc-network-info.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:15 UTC 2020 - psimons@suse.com + +- Add network-info at version 0.2.0.10. + diff --git a/ghc-network-info.spec b/ghc-network-info.spec new file mode 100644 index 0000000..c848309 --- /dev/null +++ b/ghc-network-info.spec @@ -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 diff --git a/network-info-0.2.0.10.tar.gz b/network-info-0.2.0.10.tar.gz new file mode 100644 index 0000000..ce66c52 --- /dev/null +++ b/network-info-0.2.0.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5680f6975d34cf4f81fa7ca0c8efd682261d6a1119e06dece0f67c7bd97fd52a +size 6278 diff --git a/network-info.cabal b/network-info.cabal new file mode 100644 index 0000000..798d1fd --- /dev/null +++ b/network-info.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