summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 02:13:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 02:13:07 +0000
commitba286840753a53ed9c4021f5b948a0561259b8e4 (patch)
tree5ad3d846ef5afe04a526cca683b6e72212fd4b56
parentc90d5b9f3aa5dfa134ebeb971935b0738defdd18 (diff)
automatic import of ghc-networkopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-network.spec113
-rwxr-xr-xnetwork.cabal203
-rw-r--r--sources1
4 files changed, 318 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5a67619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/network-3.1.4.0.tar.gz
diff --git a/ghc-network.spec b/ghc-network.spec
new file mode 100644
index 0000000..d06c7db
--- /dev/null
+++ b/ghc-network.spec
@@ -0,0 +1,113 @@
+%global pkg_name network
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 3.1.4.0
+Release: 1
+Summary: Low-level networking interface
+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-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-deepseq-devel
+BuildRequires: ghc-deepseq-prof
+BuildRequires: ghc-directory-devel
+BuildRequires: ghc-directory-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-HUnit-prof
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-hspec-devel
+BuildRequires: ghc-hspec-prof
+BuildRequires: ghc-temporary-devel
+BuildRequires: ghc-temporary-prof
+%endif
+
+%description
+This package provides a low-level networking interface.
+
+=== High-Level Packages Other packages provide higher level interfaces:
+
+* connection * hookup * network-simple
+
+=== Extended Packages 'network' seeks to provide a cross-platform core for
+networking. As such some APIs live in extended libraries. Packages in the
+'network' ecosystem are often prefixed with 'network-'.
+
+==== 'network-bsd' In 'network-3.0.0.0' the 'Network.BSD' module was split off
+into its own package, 'network-bsd-3.0.0.0'.
+
+==== 'network-uri' In 'network-2.6' the 'Network.URI' module was split off into
+its own package, 'network-uri-2.6'. If you're using the 'Network.URI' module
+you can automatically get it from the right package by adding this to your
+'.cabal' file:
+
+> library > build-depends: network-uri-flag.
+
+%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.
+
+%package -n ghc-%{pkg_name}-help
+Summary: Haskell %{pkg_name} library documentation
+BuildArch: noarch
+
+%description -n ghc-%{pkg_name}-help
+This package provides the Haskell %{pkg_name} library documentation.
+
+%package -n ghc-%{pkg_name}-prof
+Summary: Haskell %{pkg_name} profiling library
+Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
+Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
+
+%description -n ghc-%{pkg_name}-prof
+This package provides the Haskell %{pkg_name} profiling library.
+
+%prep
+%autosetup -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
+
+%build
+%ghc_lib_build
+
+%install
+%ghc_lib_install
+
+%check
+%cabal_test
+
+%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.md examples
+
+%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
+%changelog
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 3.1.4.0-1
+- Initial packaging (Version 3.1.4.0)
diff --git a/network.cabal b/network.cabal
new file mode 100755
index 0000000..3c2145e
--- /dev/null
+++ b/network.cabal
@@ -0,0 +1,203 @@
+cabal-version: 1.18
+name: network
+version: 3.1.4.0
+x-revision: 1
+license: BSD3
+license-file: LICENSE
+maintainer: Kazu Yamamoto, Evan Borden
+
+tested-with:
+ GHC == 9.6.1
+ GHC == 9.4.4
+ GHC == 9.2.7
+ GHC == 9.0.2
+ GHC == 8.10.7
+ GHC == 8.8.4
+ GHC == 8.6.5
+ GHC == 8.4.4
+ GHC == 8.2.2
+ GHC == 8.0.2
+
+homepage: https://github.com/haskell/network
+bug-reports: https://github.com/haskell/network/issues
+synopsis: Low-level networking interface
+description:
+ This package provides a low-level networking interface.
+ .
+ === High-Level Packages
+ Other packages provide higher level interfaces:
+ .
+ * connection
+ * hookup
+ * network-simple
+ .
+ === Extended Packages
+ @network@ seeks to provide a cross-platform core for networking. As such some
+ APIs live in extended libraries. Packages in the @network@ ecosystem are
+ often prefixed with @network-@.
+ .
+ ==== @network-bsd@
+ In @network-3.0.0.0@ the @Network.BSD@ module was split off into its own
+ package, @network-bsd-3.0.0.0@.
+ .
+ ==== @network-uri@
+ In @network-2.6@ the @Network.URI@ module was split off into its own package,
+ @network-uri-2.6@. If you're using the @Network.URI@ module you can
+ automatically get it from the right package by adding this to your @.cabal@
+ file:
+ .
+ > library
+ > build-depends: network-uri-flag
+
+category: Network
+build-type: Configure
+
+extra-doc-files:
+ README.md
+ CHANGELOG.md
+
+extra-source-files:
+ examples/*.hs
+ tests/*.hs
+ config.guess
+ config.sub
+ install-sh
+ configure.ac
+ configure
+ include/HsNetworkConfig.h.in
+ include/HsNet.h
+ include/HsNetDef.h
+ include/afunix_compat.h
+ cbits/asyncAccept.c
+ cbits/initWinSock.c
+ cbits/winSockErr.c
+ cbits/cmsg.c
+
+extra-tmp-files:
+ config.log
+ config.status
+ autom4te.cache
+ network.buildinfo
+ include/HsNetworkConfig.h
+
+source-repository head
+ type: git
+ location: https://github.com/haskell/network.git
+
+flag devel
+ description: using tests for developers
+ default: False
+
+library
+ exposed-modules:
+ Network.Socket
+ Network.Socket.Address
+ Network.Socket.ByteString
+ Network.Socket.ByteString.Lazy
+ Network.Socket.Internal
+
+ build-tools: hsc2hs >=0
+ c-sources:
+ cbits/HsNet.c
+ cbits/cmsg.c
+
+ other-modules:
+ Network.Socket.Buffer
+ Network.Socket.ByteString.IO
+ Network.Socket.ByteString.Internal
+ Network.Socket.Cbits
+ Network.Socket.Fcntl
+ Network.Socket.Flag
+ Network.Socket.Handle
+ Network.Socket.If
+ Network.Socket.Imports
+ Network.Socket.Info
+ Network.Socket.Name
+ Network.Socket.Options
+ Network.Socket.ReadShow
+ Network.Socket.Shutdown
+ Network.Socket.SockAddr
+ Network.Socket.Syscall
+ Network.Socket.Types
+ Network.Socket.Unix
+
+ default-language: Haskell2010
+ include-dirs: include
+ includes: HsNet.h HsNetDef.h alignment.h win32defs.h
+ install-includes: HsNet.h HsNetDef.h alignment.h win32defs.h
+ if os(windows)
+ includes: afunix_compat.h
+ install-includes: afunix_compat.h
+
+ ghc-options: -Wall -fwarn-tabs
+ build-depends:
+ base >=4.9 && <5,
+ bytestring >=0.10 && <0.13,
+ deepseq,
+ directory
+
+ if !os(windows)
+ other-modules:
+ Network.Socket.ByteString.Lazy.Posix
+ Network.Socket.Posix.Cmsg
+ Network.Socket.Posix.CmsgHdr
+ Network.Socket.Posix.IOVec
+ Network.Socket.Posix.MsgHdr
+
+ if os(solaris)
+ cpp-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
+ cc-options: -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
+ extra-libraries:
+ nsl
+ socket
+
+ if os(windows)
+ c-sources:
+ cbits/initWinSock.c
+ cbits/winSockErr.c
+ cbits/asyncAccept.c
+
+ other-modules:
+ Network.Socket.ByteString.Lazy.Windows
+ Network.Socket.Win32.Cmsg
+ Network.Socket.Win32.CmsgHdr
+ Network.Socket.Win32.WSABuf
+ Network.Socket.Win32.MsgHdr
+
+ extra-libraries:
+ ws2_32
+ iphlpapi
+ mswsock
+
+ if impl(ghc >=7.10)
+ cpp-options: -D_WIN32_WINNT=0x0600
+ cc-options: -D_WIN32_WINNT=0x0600
+
+ build-depends:
+ temporary
+
+test-suite spec
+ type: exitcode-stdio-1.0
+ main-is: Spec.hs
+ build-tools: hspec-discover >=2.6
+ hs-source-dirs: tests
+ other-modules:
+ Network.Test.Common
+ Network.SocketSpec
+ Network.Socket.ByteStringSpec
+ Network.Socket.ByteString.LazySpec
+
+ default-language: Haskell2010
+ ghc-options: -Wall -threaded
+ build-depends:
+ base >=4.9 && <5,
+ bytestring,
+ directory,
+ HUnit,
+ network,
+ temporary,
+ hspec >=2.6,
+ QuickCheck
+
+ if flag(devel)
+ cpp-options: -DDEVELOPMENT
diff --git a/sources b/sources
new file mode 100644
index 0000000..75798a2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c70f3289bc80887a72aa37bf8e4e1e87 network-3.1.4.0.tar.gz