Accepting request 432731 from devel:languages:haskell:lts:7
version / revision update OBS-URL: https://build.opensuse.org/request/show/432731 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ed25519?expand=0&rev=5
This commit is contained in:
@@ -1,150 +1,150 @@
|
|||||||
name: ed25519
|
name: ed25519
|
||||||
version: 0.0.5.0
|
version: 0.0.5.0
|
||||||
x-revision: 2
|
x-revision: 2
|
||||||
category: Cryptography
|
category: Cryptography
|
||||||
license: MIT
|
license: MIT
|
||||||
synopsis: Ed25519 cryptographic signatures
|
synopsis: Ed25519 cryptographic signatures
|
||||||
homepage: http://thoughtpolice.github.com/hs-ed25519
|
homepage: http://thoughtpolice.github.com/hs-ed25519
|
||||||
bug-reports: http://github.com/thoughtpolice/hs-ed25519/issues
|
bug-reports: http://github.com/thoughtpolice/hs-ed25519/issues
|
||||||
license-file: LICENSE.txt
|
license-file: LICENSE.txt
|
||||||
copyright: Copyright (c) Austin Seipp 2013-2015
|
copyright: Copyright (c) Austin Seipp 2013-2015
|
||||||
author: Austin Seipp
|
author: Austin Seipp
|
||||||
maintainer: Austin Seipp <aseipp@pobox.com>
|
maintainer: Austin Seipp <aseipp@pobox.com>
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
tested-with: GHC == 7.0.1, GHC == 7.0.2, GHC == 7.0.3, GHC == 7.0.4,
|
tested-with: GHC == 7.0.1, GHC == 7.0.2, GHC == 7.0.3, GHC == 7.0.4,
|
||||||
GHC == 7.2.1, GHC == 7.2.2, GHC == 7.4.1, GHC == 7.4.2,
|
GHC == 7.2.1, GHC == 7.2.2, GHC == 7.4.1, GHC == 7.4.2,
|
||||||
GHC == 7.6.1, GHC == 7.6.2, GHC == 7.6.3,
|
GHC == 7.6.1, GHC == 7.6.2, GHC == 7.6.3,
|
||||||
GHC == 7.8.2, GHC == 7.8.3, GHC == 7.8.4,
|
GHC == 7.8.2, GHC == 7.8.3, GHC == 7.8.4,
|
||||||
GHC == 7.10.1, GHC == 7.10.2
|
GHC == 7.10.1, GHC == 7.10.2
|
||||||
|
|
||||||
description:
|
description:
|
||||||
This package provides a simple, fast, self-contained copy of the
|
This package provides a simple, fast, self-contained copy of the
|
||||||
Ed25519 public-key signature system with a clean interface. It also
|
Ed25519 public-key signature system with a clean interface. It also
|
||||||
includes support for detached signatures, and thorough documentation
|
includes support for detached signatures, and thorough documentation
|
||||||
on the design and implementation, including usage guidelines.
|
on the design and implementation, including usage guidelines.
|
||||||
|
|
||||||
extra-source-files:
|
extra-source-files:
|
||||||
.travis.yml
|
.travis.yml
|
||||||
AUTHORS.txt
|
AUTHORS.txt
|
||||||
README.md
|
README.md
|
||||||
CONTRIBUTING.md
|
CONTRIBUTING.md
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
src/cbits/ref10/*.c
|
src/cbits/ref10/*.c
|
||||||
src/cbits/ref10/include/*.h
|
src/cbits/ref10/include/*.h
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/thoughtpolice/hs-ed25519.git
|
location: https://github.com/thoughtpolice/hs-ed25519.git
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- Flags
|
-- Flags
|
||||||
|
|
||||||
flag test-properties
|
flag test-properties
|
||||||
default: True
|
default: True
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
flag test-hlint
|
flag test-hlint
|
||||||
default: True
|
default: True
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
flag test-doctests
|
flag test-doctests
|
||||||
default: True
|
default: True
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
flag no-donna
|
flag no-donna
|
||||||
default: True
|
default: True
|
||||||
manual: True
|
manual: True
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- Build pt 1: main project
|
-- Build pt 1: main project
|
||||||
|
|
||||||
library
|
library
|
||||||
build-depends:
|
build-depends:
|
||||||
ghc-prim >= 0.1 && < 0.6,
|
ghc-prim >= 0.1 && < 0.6,
|
||||||
base >= 4 && < 5,
|
base >= 4 && < 5,
|
||||||
bytestring >= 0.9 && < 0.11
|
bytestring >= 0.9 && < 0.11
|
||||||
|
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Crypto.Sign.Ed25519
|
Crypto.Sign.Ed25519
|
||||||
|
|
||||||
ghc-options: -Wall -fwarn-tabs
|
ghc-options: -Wall -fwarn-tabs
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
|
|
||||||
-- Choose the underlying C implementation
|
-- Choose the underlying C implementation
|
||||||
if flag(no-donna)
|
if flag(no-donna)
|
||||||
-- ref10 implementation from SUPERCOP, about 2x slower than the AMD64
|
-- ref10 implementation from SUPERCOP, about 2x slower than the AMD64
|
||||||
-- SUPERCOP implementations, 15x faster than ronald3072 for signing.
|
-- SUPERCOP implementations, 15x faster than ronald3072 for signing.
|
||||||
c-sources: src/cbits/ref10/ed25519.c
|
c-sources: src/cbits/ref10/ed25519.c
|
||||||
include-dirs: src/cbits/ref10 src/cbits/ref10/include
|
include-dirs: src/cbits/ref10 src/cbits/ref10/include
|
||||||
else
|
else
|
||||||
-- TODO(aseipp): ed25519-donna import
|
-- TODO(aseipp): ed25519-donna import
|
||||||
buildable: False
|
buildable: False
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- Build pt 2: Tests
|
-- Build pt 2: Tests
|
||||||
|
|
||||||
test-suite properties
|
test-suite properties
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: properties.hs
|
main-is: properties.hs
|
||||||
ghc-options: -w
|
ghc-options: -w
|
||||||
hs-source-dirs: tests
|
hs-source-dirs: tests
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
if !flag(test-properties)
|
if !flag(test-properties)
|
||||||
buildable: False
|
buildable: False
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
base >= 4 && < 5,
|
base >= 4 && < 5,
|
||||||
bytestring >= 0.9 && < 0.11,
|
bytestring >= 0.9 && < 0.11,
|
||||||
QuickCheck >= 2.4 && < 2.9,
|
QuickCheck >= 2.4 && < 2.9,
|
||||||
ed25519
|
ed25519
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Style/doc tests below
|
-- Style/doc tests below
|
||||||
--
|
--
|
||||||
|
|
||||||
test-suite hlint
|
test-suite hlint
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: hlint.hs
|
main-is: hlint.hs
|
||||||
hs-source-dirs: tests
|
hs-source-dirs: tests
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
if !flag(test-hlint)
|
if !flag(test-hlint)
|
||||||
buildable: False
|
buildable: False
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
base >= 4 && < 5,
|
base >= 4 && < 5,
|
||||||
hlint >= 1.7 && < 1.10
|
hlint >= 1.7 && < 1.10
|
||||||
|
|
||||||
test-suite doctests
|
test-suite doctests
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: doctests.hs
|
main-is: doctests.hs
|
||||||
hs-source-dirs: tests
|
hs-source-dirs: tests
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
if !flag(test-doctests)
|
if !flag(test-doctests)
|
||||||
buildable: False
|
buildable: False
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
base >= 4 && < 5,
|
base >= 4 && < 5,
|
||||||
filepath >= 1.0 && < 1.5,
|
filepath >= 1.0 && < 1.5,
|
||||||
directory >= 1.0 && < 1.3,
|
directory >= 1.0 && < 1.3,
|
||||||
doctest >= 0.10 && < 0.12
|
doctest >= 0.10 && < 0.12
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- Build pt 3: benchmarks
|
-- Build pt 3: benchmarks
|
||||||
|
|
||||||
benchmark bench
|
benchmark bench
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
build-depends:
|
build-depends:
|
||||||
base >= 4 && < 5,
|
base >= 4 && < 5,
|
||||||
bytestring >= 0.9 && < 0.11,
|
bytestring >= 0.9 && < 0.11,
|
||||||
criterion >= 0.8 && < 1.2,
|
criterion >= 0.8 && < 1.2,
|
||||||
deepseq >= 1.3 && < 1.5,
|
deepseq >= 1.3 && < 1.5,
|
||||||
ed25519
|
ed25519
|
||||||
|
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
hs-source-dirs: benchmarks
|
hs-source-dirs: benchmarks
|
||||||
main-is: bench.hs
|
main-is: bench.hs
|
@@ -23,12 +23,11 @@ Version: 0.0.5.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Ed25519 cryptographic signatures
|
Summary: Ed25519 cryptographic signatures
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System/Libraries
|
Group: Development/Languages/Other
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
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
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -39,7 +38,6 @@ BuildRequires: ghc-doctest-devel
|
|||||||
BuildRequires: ghc-filepath-devel
|
BuildRequires: ghc-filepath-devel
|
||||||
BuildRequires: ghc-hlint-devel
|
BuildRequires: ghc-hlint-devel
|
||||||
%endif
|
%endif
|
||||||
# End cabal-rpm deps
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a simple, fast, self-contained copy of the Ed25519
|
This package provides a simple, fast, self-contained copy of the Ed25519
|
||||||
@@ -62,20 +60,14 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%cabal_test
|
||||||
%{cabal} test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
@@ -89,6 +81,5 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
|
|||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS.txt CHANGELOG.md README.md
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user