summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 02:15:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 02:15:37 +0000
commit90d36b743c146878319f31903aa80040109f654a (patch)
treec5882376bb6b2a214a90d4fc9eae0c03f34286d5
parentd14492db17d6ab1801e6f190c45e29808d23c849 (diff)
automatic import of ghc-network-byte-orderopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-network-byte-order.spec85
-rwxr-xr-xnetwork-byte-order.cabal43
-rw-r--r--sources1
4 files changed, 130 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..733bd81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/network-byte-order-0.1.6.tar.gz
diff --git a/ghc-network-byte-order.spec b/ghc-network-byte-order.spec
new file mode 100644
index 0000000..bb366d3
--- /dev/null
+++ b/ghc-network-byte-order.spec
@@ -0,0 +1,85 @@
+%global pkg_name network-byte-order
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.1.6
+Release: 1
+Summary: Network byte order utilities
+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-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-doctest-devel
+BuildRequires: ghc-doctest-prof
+%endif
+
+%description
+Peek and poke functions for network byte order.
+
+%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
+
+%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
+* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 0.1.6-1
+- Initial packaging (Version 0.1.6)
diff --git a/network-byte-order.cabal b/network-byte-order.cabal
new file mode 100755
index 0000000..e26efb3
--- /dev/null
+++ b/network-byte-order.cabal
@@ -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..4caf5b1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6ad68444b10b40292a5a1e1910853a05 network-byte-order-0.1.6.tar.gz