summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 07:11:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 07:11:35 +0000
commit8da0e911c6c02cf0eec7c9b95d7c1e017543a91e (patch)
treedbce09e2487ffa4c970229ae069a6a9da3138e32
parent6d47cd622f8f572f4f5db3c45096a83994072d38 (diff)
automatic import of ghc-asn1-encodingopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xasn1-encoding.cabal56
-rw-r--r--ghc-asn1-encoding.spec93
-rw-r--r--sources1
4 files changed, 151 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d758f10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asn1-encoding-0.9.6.tar.gz
diff --git a/asn1-encoding.cabal b/asn1-encoding.cabal
new file mode 100755
index 0000000..48aee5f
--- /dev/null
+++ b/asn1-encoding.cabal
@@ -0,0 +1,56 @@
+Name: asn1-encoding
+Version: 0.9.6
+x-revision: 2
+Synopsis: ASN1 data reader and writer in RAW, BER and DER forms
+Description:
+ ASN1 data reader and writer in raw form with supports for high level forms of ASN1 (BER, and DER).
+License: BSD3
+License-file: LICENSE
+Copyright: Vincent Hanquez <vincent@snarc.org>
+Author: Vincent Hanquez <vincent@snarc.org>
+Maintainer: vincent@snarc.org
+Category: Data
+stability: experimental
+Build-Type: Simple
+Cabal-Version: >=1.10
+Homepage: https://github.com/vincenthz/hs-asn1
+
+Library
+ Exposed-modules: Data.ASN1.Error
+ Data.ASN1.BinaryEncoding
+ Data.ASN1.BinaryEncoding.Raw
+ Data.ASN1.Encoding
+ Data.ASN1.Stream
+ Data.ASN1.Object
+ Data.ASN1.Prim
+ other-modules: Data.ASN1.BinaryEncoding.Parse
+ Data.ASN1.BinaryEncoding.Writer
+ Data.ASN1.Internal
+ Data.ASN1.Serialize
+ Data.ASN1.Get
+ Build-Depends: base >= 4.7 && < 5
+ , bytestring
+ , hourglass >= 0.2.6
+ , asn1-types >= 0.3.0 && < 0.4
+ ghc-options: -Wall -fwarn-tabs
+ Default-Language: Haskell2010
+
+Test-Suite tests-asn1-encoding
+ type: exitcode-stdio-1.0
+ hs-source-dirs: tests .
+ Main-Is: Tests.hs
+ Build-depends: base >= 3 && < 7
+ , bytestring
+ , mtl
+ , tasty
+ , tasty-quickcheck
+ , asn1-types
+ , asn1-encoding
+ , hourglass
+ ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures
+ Default-Language: Haskell2010
+
+source-repository head
+ type: git
+ location: https://github.com/vincenthz/hs-asn1
+ subdir: encoding
diff --git a/ghc-asn1-encoding.spec b/ghc-asn1-encoding.spec
new file mode 100644
index 0000000..99e3da0
--- /dev/null
+++ b/ghc-asn1-encoding.spec
@@ -0,0 +1,93 @@
+%global pkg_name asn1-encoding
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.9.6
+Release: 1
+Summary: ASN1 data reader and writer in RAW, BER and DER forms
+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/2.cabal#/%{pkg_name}.cabal
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-asn1-types-devel
+BuildRequires: ghc-asn1-types-prof
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-hourglass-devel
+BuildRequires: ghc-hourglass-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-mtl-devel
+BuildRequires: ghc-mtl-prof
+BuildRequires: ghc-tasty-devel
+BuildRequires: ghc-tasty-prof
+BuildRequires: ghc-tasty-quickcheck-devel
+BuildRequires: ghc-tasty-quickcheck-prof
+%endif
+
+%description
+ASN1 data reader and writer in raw form with supports for high level forms of
+ASN1 (BER, and DER).
+
+%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.9.6-1
+- Initial packaging (Version 0.9.6)
diff --git a/sources b/sources
new file mode 100644
index 0000000..7e762c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+98bc3d5b717eb6b5f47c2d676c9eaaf4 asn1-encoding-0.9.6.tar.gz