From a04e0168824313b3c520f4f1f8756e9e60cda1187e66f7dba81db7107ee71dd4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 29 Nov 2018 02:01:22 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-x509 revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-x509?expand=0&rev=41 --- ghc-x509.spec | 2 ++ x509.cabal | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 x509.cabal diff --git a/ghc-x509.spec b/ghc-x509.spec index 776ea03..e827cd6 100644 --- a/ghc-x509.spec +++ b/ghc-x509.spec @@ -26,6 +26,7 @@ License: BSD-3-Clause Group: Development/Libraries/Haskell 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-asn1-encoding-devel BuildRequires: ghc-asn1-parse-devel @@ -59,6 +60,7 @@ 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 diff --git a/x509.cabal b/x509.cabal new file mode 100644 index 0000000..a3d59cb --- /dev/null +++ b/x509.cabal @@ -0,0 +1,65 @@ +Name: x509 +version: 1.7.5 +x-revision: 1 +Description: X509 reader and writer. please see README +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: Vincent Hanquez +Synopsis: X509 reader and writer +Build-Type: Simple +Category: Data +stability: experimental +Homepage: http://github.com/vincenthz/hs-certificate +Cabal-Version: >= 1.10 + +Library + Default-Language: Haskell2010 + Build-Depends: base >= 4.7 && < 5 + , bytestring + , memory + , mtl + , containers + , hourglass + , pem >= 0.1 + , asn1-types >= 0.3.1 && < 0.4 + , asn1-encoding >= 0.9 && < 0.10 + , asn1-parse >= 0.9.3 && < 0.10 + , cryptonite >= 0.24 + Exposed-modules: Data.X509 + Data.X509.EC + Other-modules: Data.X509.Internal + Data.X509.CertificateChain + Data.X509.AlgorithmIdentifier + Data.X509.DistinguishedName + Data.X509.Cert + Data.X509.PublicKey + Data.X509.PrivateKey + Data.X509.Ext + Data.X509.ExtensionRaw + Data.X509.CRL + Data.X509.OID + Data.X509.Signed + ghc-options: -Wall + +Test-Suite test-x509 + Default-Language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: Tests + Main-is: Tests.hs + Build-Depends: base >= 3 && < 5 + , bytestring + , mtl + , tasty + , tasty-quickcheck + , hourglass + , asn1-types + , x509 + , cryptonite + ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures + +source-repository head + type: git + location: git://github.com/vincenthz/hs-certificate + subdir: x509