Compare commits

...

6 Commits
f35 ... rawhide

Author SHA1 Message Date
Jens Petersen 065b6749e7 use dos2unix for cabal revision 2023-02-17 09:43:33 +08:00
Jens Petersen cf6cc70157 Convert to %autorelease and %autochangelog
[skip changelog]
2023-02-16 13:28:38 +08:00
Jens Petersen 7eadecb0aa refresh to cabal-rpm-2.1.0 with SPDX migration 2023-02-16 12:44:16 +08:00
Fedora Release Engineering 206a54f166 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 05:21:33 +00:00
Jens Petersen 7eaff3b023 bump release to 4 over hadolint 2022-06-07 18:47:07 +08:00
Mohamed El Morabity 5067909fae First import 2022-05-16 16:30:15 +02:00
5 changed files with 234 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ilist-0.4.0.1.tar.gz

14
changelog Normal file
View File

@ -0,0 +1,14 @@
* Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 0.4.0.1-6
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 7 2022 Jens Petersen <petersen@redhat.com> - 0.4.0.1-4
- bump release over hadolint
* 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

124
ghc-ilist.spec Normal file
View File

@ -0,0 +1,124 @@
# generated by cabal-rpm-2.1.0
# 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: %autorelease
Summary: Optimised list functions for doing index-related things
License: MPL-2.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: dos2unix
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
%endif
%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}
dos2unix -k -n %{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
%autochangelog

94
ilist-0.4.0.1.cabal Normal file
View 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ilist-0.4.0.1.tar.gz) = 1da01826992b159af824c736a40fb94c5f19894317da266a17942aaeb40e96aa8029553480b151af3b338bcab83a2d3365d2d983a0dd15721dc7db3c79b79a6d