osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-ed25519 revision:3, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ed25519?expand=0&rev=62
This commit is contained in:
Peter Simons 2025-02-16 22:01:25 +00:00 committed by Git OBS Bridge
commit 7393026d32
6 changed files with 401 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
ed25519-0.0.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8a5958ebfa9309790efade64275dc5c441b568645c45ceed1b0c6ff36d6156d
size 80034

160
ed25519.cabal Normal file
View File

@ -0,0 +1,160 @@
cabal-version: >=1.10
name: ed25519
version: 0.0.5.0
x-revision: 9
category: Cryptography
license: MIT
synopsis: Ed25519 cryptographic signatures
homepage: https://github.com/thoughtpolice/hs-ed25519/
bug-reports: https://github.com/thoughtpolice/hs-ed25519/issues
license-file: LICENSE.txt
copyright: Copyright (c) Austin Seipp 2013-2017
author: Austin Seipp
maintainer: Austin Seipp <aseipp@pobox.com>
build-type: Simple
description:
This package provides a simple, fast, self-contained copy of the
Ed25519 public-key signature system with a clean interface. It also
includes support for detached signatures, and thorough documentation
on the design and implementation, including usage guidelines.
tested-with:
GHC == 9.12.1
GHC == 9.10.1
GHC == 9.8.4
GHC == 9.6.6
GHC == 9.4.8
GHC == 9.2.8
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
extra-source-files:
.travis.yml
AUTHORS.txt
README.md
CONTRIBUTING.md
CHANGELOG.md
src/cbits/ref10/*.c
src/cbits/ref10/include/*.h
source-repository head
type: git
location: https://github.com/thoughtpolice/hs-ed25519.git
-------------------------------------------------------------------------------
-- Flags
flag test-properties
default: True
manual: True
flag test-hlint
default: True
manual: True
flag test-doctests
default: True
manual: True
flag no-donna
default: True
manual: True
-------------------------------------------------------------------------------
-- Build pt 1: main project
library
build-depends:
ghc-prim >= 0.1 && < 1,
base >= 4 && < 5,
bytestring >= 0.9 && < 0.13
exposed-modules:
Crypto.Sign.Ed25519
ghc-options: -Wall -fwarn-tabs
default-language: Haskell2010
hs-source-dirs: src
-- Choose the underlying C implementation
if flag(no-donna)
-- ref10 implementation from SUPERCOP, about 2x slower than the AMD64
-- SUPERCOP implementations, 15x faster than ronald3072 for signing.
c-sources: src/cbits/ref10/ed25519.c
include-dirs: src/cbits/ref10 src/cbits/ref10/include
else
-- TODO(aseipp): ed25519-donna import
buildable: False
-------------------------------------------------------------------------------
-- Build pt 2: Tests
test-suite properties
type: exitcode-stdio-1.0
main-is: properties.hs
ghc-options: -w
hs-source-dirs: tests
default-language: Haskell2010
if !flag(test-properties)
buildable: False
else
build-depends:
base >= 4 && < 5,
bytestring >= 0.9 && < 0.13,
QuickCheck >= 2.4 && < 2.16,
ed25519
--
-- Style/doc tests below
--
test-suite hlint
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: tests
default-language: Haskell2010
if !flag(test-hlint)
buildable: False
else
build-depends:
base >= 4 && < 5,
hlint >= 1.7 && < 4
test-suite doctests
type: exitcode-stdio-1.0
main-is: doctests.hs
hs-source-dirs: tests
default-language: Haskell2010
if !flag(test-doctests)
buildable: False
else
build-depends:
base >= 4 && < 5,
filepath >= 1.0 && < 1.6,
directory >= 1.0 && < 1.4,
doctest >= 0.10 && < 0.24
-------------------------------------------------------------------------------
-- Build pt 3: benchmarks
benchmark bench
type: exitcode-stdio-1.0
build-depends:
base >= 4 && < 5,
bytestring >= 0.9 && < 0.13,
criterion >= 0.8 && < 1.8,
deepseq >= 1.3 && < 1.6,
ed25519
default-language: Haskell2010
hs-source-dirs: benchmarks
main-is: bench.hs

102
ghc-ed25519.changes Normal file
View File

@ -0,0 +1,102 @@
-------------------------------------------------------------------
Sat Feb 15 16:10:45 UTC 2025 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 9.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Oct 24 16:38:36 UTC 2023 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 8.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 30 17:06:41 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Mon Mar 13 19:55:57 UTC 2023 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 7.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Oct 25 21:20:58 UTC 2022 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 6.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 17 05:37:05 UTC 2022 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 5.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Jan 13 15:31:21 UTC 2022 - Peter Simons <psimons@suse.com>
- Update ed25519 to version 0.0.5.0 revision 4.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Mon Aug 31 09:34:31 UTC 2020 - psimons@suse.com
- Update ed25519 to version 0.0.5.0 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Aug 18 10:44:43 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 16 11:14:04 UTC 2020 - Peter Simons <psimons@suse.com>
- Re-generate file with latest version of spec-cleaner.
-------------------------------------------------------------------
Thu May 7 07:47:10 UTC 2020 - Peter Simons <psimons@suse.com>
- Tweak dependency information to fix building with ghc-8.10.x.
-------------------------------------------------------------------
Fri Nov 8 16:13:39 UTC 2019 - Peter Simons <psimons@suse.com>
- Drop obsolete group attributes.
-------------------------------------------------------------------
Sat Oct 20 11:31:28 UTC 2018 - Peter Simons <psimons@suse.com>
- Use https URL to refer to bugs.opensuse.org.
-------------------------------------------------------------------
Wed Jul 18 14:26:22 UTC 2018 - psimons@suse.com
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
-------------------------------------------------------------------
Wed May 16 13:06:54 UTC 2018 - psimons@suse.com
- Prefer the new %license attribute over %doc.
-------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
-------------------------------------------------------------------
Sun Jul 10 17:04:45 UTC 2016 - psimons@suse.com
- Update to version 0.0.5.0 revision 2 with cabal2obs.
-------------------------------------------------------------------
Fri May 27 12:02:07 UTC 2016 - mimi.vx@gmail.com
- ghc-ed25519 generated by st2obs scritpt

112
ghc-ed25519.spec Normal file
View File

@ -0,0 +1,112 @@
#
# spec file for package ghc-ed25519
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name ed25519
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.0.5.0
Release: 0
Summary: Ed25519 cryptographic signatures
License: MIT
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/9.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-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-doctest-devel
BuildRequires: ghc-doctest-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hlint-devel
BuildRequires: ghc-hlint-prof
%endif
%description
This package provides a simple, fast, self-contained copy of the Ed25519
public-key signature system with a clean interface. It also includes support
for detached signatures, and thorough documentation on the design and
implementation, including usage guidelines.
%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}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
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.txt
%files devel -f %{name}-devel.files
%doc AUTHORS.txt CHANGELOG.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE.txt
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog