First import
This commit is contained in:
parent
cd4e6dd170
commit
f8448d506a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/ilist-0.4.0.1.tar.gz
|
124
ghc-ilist.spec
Normal file
124
ghc-ilist.spec
Normal file
@ -0,0 +1,124 @@
|
||||
# generated by cabal-rpm-2.0.10
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||
|
||||
%global pkg_name ilist
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.4.0.1
|
||||
Release: 2%{?dist}
|
||||
Summary: Optimised list functions for doing index-related things
|
||||
|
||||
License: MPLv2.0
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
# Begin cabal-rpm sources:
|
||||
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-rpm-macros
|
||||
BuildRequires: ghc-base-prof
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-hspec-devel
|
||||
BuildRequires: ghc-transformers-devel
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
Optimised list functions for doing index-related things. They're faster than
|
||||
common idioms in all cases, they avoid
|
||||
<https://ghc.haskell.org/trac/ghc/ticket/12620 space leaks>, and sometimes they
|
||||
fuse better as well.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||
%if %{defined ghc_version}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
%endif
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
|
||||
%if %{with haddock}
|
||||
%package doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
BuildArch: noarch
|
||||
Requires: ghc-filesystem
|
||||
|
||||
%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
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
|
||||
|
||||
%build
|
||||
# Begin cabal-rpm build:
|
||||
%ghc_lib_build
|
||||
# End cabal-rpm build
|
||||
|
||||
|
||||
%install
|
||||
# Begin cabal-rpm install
|
||||
%ghc_lib_install
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%cabal_test
|
||||
%endif
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%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
|
||||
* Mon May 16 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.4.0.1-2
|
||||
- Bump spec
|
||||
|
||||
* Sun Dec 19 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.4.0.1-1
|
||||
- Initial RPM release
|
94
ilist-0.4.0.1.cabal
Normal file
94
ilist-0.4.0.1.cabal
Normal file
@ -0,0 +1,94 @@
|
||||
cabal-version: 2.4
|
||||
name: ilist
|
||||
version: 0.4.0.1
|
||||
x-revision: 2
|
||||
synopsis: Optimised list functions for doing index-related things
|
||||
description:
|
||||
Optimised list functions for doing index-related things. They're
|
||||
faster than common idioms in all cases, they avoid
|
||||
<https://ghc.haskell.org/trac/ghc/ticket/12620 space leaks>, and
|
||||
sometimes they fuse better as well.
|
||||
homepage: http://github.com/kowainik/ilist
|
||||
bug-reports: http://github.com/kowainik/ilist/issues
|
||||
license: MPL-2.0
|
||||
license-file: LICENSE
|
||||
author: Artyom
|
||||
maintainer: Kowainik <xrom.xkov@gmail.com>
|
||||
copyright: 2016-2019 Artyom Kazak (BSD-3-Clause)
|
||||
2019-2020 Kowainik (MPL-2.0)
|
||||
category: List
|
||||
build-type: Simple
|
||||
extra-doc-files: README.md
|
||||
CHANGELOG.md
|
||||
tested-with: GHC == 8.2.2
|
||||
GHC == 8.4.4
|
||||
GHC == 8.6.5
|
||||
GHC == 8.8.4
|
||||
GHC == 8.10.7
|
||||
GHC == 9.0.1
|
||||
GHC == 9.2.1
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/kowainik/ilist.git
|
||||
|
||||
common common-options
|
||||
build-depends: base >= 4.10 && < 4.17
|
||||
|
||||
ghc-options: -Wall
|
||||
-Wcompat
|
||||
-Widentities
|
||||
-Wincomplete-uni-patterns
|
||||
-Wincomplete-record-updates
|
||||
-Wredundant-constraints
|
||||
-fhide-source-paths
|
||||
if impl(ghc >= 8.4)
|
||||
ghc-options: -Wmissing-export-lists
|
||||
-Wpartial-fields
|
||||
if impl(ghc >= 8.8)
|
||||
ghc-options: -Wmissing-deriving-strategies
|
||||
-Werror=missing-deriving-strategies
|
||||
if impl(ghc >= 8.10)
|
||||
ghc-options: -Wunused-packages
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: DeriveGeneric
|
||||
DerivingStrategies
|
||||
GeneralizedNewtypeDeriving
|
||||
InstanceSigs
|
||||
LambdaCase
|
||||
OverloadedStrings
|
||||
RecordWildCards
|
||||
ScopedTypeVariables
|
||||
TypeApplications
|
||||
|
||||
library
|
||||
import: common-options
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Data.List.Index
|
||||
ghc-options: -O2
|
||||
|
||||
test-suite tests
|
||||
import: common-options
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: tests
|
||||
main-is: Main.hs
|
||||
build-depends: hspec
|
||||
, ilist
|
||||
, transformers
|
||||
ghc-options: -O2 -fno-warn-unused-do-bind
|
||||
|
||||
benchmark bench
|
||||
import: common-options
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: bench
|
||||
main-is: Main.hs
|
||||
other-modules: Functions
|
||||
build-depends: criterion
|
||||
, ilist
|
||||
-- imapM_ is broken in 4.13.2
|
||||
, lens >= 4.13.2.1
|
||||
, loop
|
||||
, transformers
|
||||
, vector
|
||||
ghc-options: -O2
|
Loading…
Reference in New Issue
Block a user