Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
|
@ -1 +1 @@
|
||||||
1cc4907296f83e54587b8aa73e62cd87a7755ca0 SOURCES/random-1.1.tar.gz
|
1cc4907296f83e54587b8aa73e62cd87a7755ca0 random-1.1.tar.gz
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
SOURCES/random-1.1.tar.gz
|
/random-1.0.1.1.tar.gz
|
||||||
|
/random-1.1.tar.gz
|
||||||
|
|
|
@ -1,23 +1,28 @@
|
||||||
# generated by cabal-rpm-0.12.1
|
# generated by cabal-rpm-2.0.6
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||||
|
|
||||||
%global pkg_name random
|
%global pkg_name random
|
||||||
%global pkgver %{pkg_name}-%{version}
|
%global pkgver %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
# part of haskell-platform
|
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 7%{?dist}
|
Release: 18%{?dist}
|
||||||
Summary: Random number library
|
Summary: Random number library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
# Begin cabal-rpm sources:
|
||||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||||
|
# End cabal-rpm sources
|
||||||
|
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
BuildRequires: ghc-base-prof
|
||||||
BuildRequires: ghc-time-devel
|
BuildRequires: ghc-time-prof
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -28,11 +33,9 @@ ability to split random number generators.
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library development files
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Provides: %{name}-static = %{version}-%{release}
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
Provides: %{name}-doc = %{version}-%{release}
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||||
%if %{defined ghc_version}
|
%if %{defined ghc_version}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
Requires(post): ghc-compiler = %{ghc_version}
|
|
||||||
Requires(postun): ghc-compiler = %{ghc_version}
|
|
||||||
%endif
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
@ -40,35 +43,106 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
This package provides the Haskell %{pkg_name} library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with haddock}
|
||||||
|
%package doc
|
||||||
|
Summary: Haskell %{pkg_name} library documentation
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package provides the Haskell %{pkg_name} library documentation.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with ghc_prof}
|
||||||
|
%package prof
|
||||||
|
Summary: Haskell %{pkg_name} profiling library
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
Supplements: (%{name}-devel and ghc-prof)
|
||||||
|
|
||||||
|
%description prof
|
||||||
|
This package provides the Haskell %{pkg_name} profiling library.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
# Begin cabal-rpm setup:
|
||||||
%setup -q -n %{pkgver}
|
%setup -q -n %{pkgver}
|
||||||
|
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
# End cabal-rpm setup
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Begin cabal-rpm build:
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
# End cabal-rpm build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Begin cabal-rpm install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
# End cabal-rpm install
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%check
|
||||||
%ghc_pkg_recache
|
%cabal_test
|
||||||
|
|
||||||
|
|
||||||
%postun devel
|
|
||||||
%ghc_pkg_recache
|
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
# Begin cabal-rpm files:
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
# End cabal-rpm files
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with haddock}
|
||||||
|
%files doc -f %{name}-doc.files
|
||||||
|
%license LICENSE
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with ghc_prof}
|
||||||
|
%files prof -f %{name}-prof.files
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.1-18
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-16
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 1.1-14
|
||||||
|
- refresh to cabal-rpm-2.0.6
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 1.1-12
|
||||||
|
- add doc and prof subpackages (cabal-rpm-1.0.0)
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.1-10
|
||||||
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
name: random
|
||||||
|
version: 1.1
|
||||||
|
x-revision: 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
maintainer: carter dot schonwald at google mail dot com
|
||||||
|
bug-reports: https://github.com/haskell/random/issues
|
||||||
|
synopsis: random number library
|
||||||
|
category: System
|
||||||
|
description:
|
||||||
|
This package provides a basic random number generation
|
||||||
|
library, including the ability to split random number
|
||||||
|
generators.
|
||||||
|
|
||||||
|
extra-source-files:
|
||||||
|
.travis.yml
|
||||||
|
README.md
|
||||||
|
CHANGELOG.md
|
||||||
|
.gitignore
|
||||||
|
.darcs-boring
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
build-type: Simple
|
||||||
|
-- cabal-version 1.8 needed because "the field 'build-depends: random' refers
|
||||||
|
-- to a library which is defined within the same package"
|
||||||
|
cabal-version: >= 1.8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Library
|
||||||
|
exposed-modules:
|
||||||
|
System.Random
|
||||||
|
extensions: CPP
|
||||||
|
GHC-Options: -O2
|
||||||
|
build-depends: base >= 3 && < 5, time
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: http://git.haskell.org/packages/random.git
|
||||||
|
|
||||||
|
-- To run the Test-Suite:
|
||||||
|
-- $ cabal configure --enable-tests
|
||||||
|
-- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS"
|
||||||
|
|
||||||
|
Test-Suite T7936
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: T7936.hs
|
||||||
|
hs-source-dirs: tests
|
||||||
|
build-depends: base >= 3 && < 5, random
|
||||||
|
ghc-options: -rtsopts -O2
|
||||||
|
|
||||||
|
Test-Suite TestRandomRs
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: TestRandomRs.hs
|
||||||
|
hs-source-dirs: tests
|
||||||
|
build-depends: base >= 3 && < 5, random
|
||||||
|
ghc-options: -rtsopts -O2
|
||||||
|
-- TODO. Why does the following not work?
|
||||||
|
--test-options: +RTS -M1M -RTS
|
||||||
|
|
||||||
|
Test-Suite TestRandomIOs
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: TestRandomIOs.hs
|
||||||
|
hs-source-dirs: tests
|
||||||
|
build-depends: base >= 3 && < 5, random
|
||||||
|
ghc-options: -rtsopts -O2
|
Loading…
Reference in New Issue