From 5067909fae223be387712d8e9f158c5b42b2d686 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Mon, 16 May 2022 16:30:15 +0200 Subject: [PATCH] First import --- .gitignore | 1 + ghc-ilist.spec | 124 ++++++++++++++++++++++++++++++++++++++++++++ ilist-0.4.0.1.cabal | 94 +++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 220 insertions(+) create mode 100644 .gitignore create mode 100644 ghc-ilist.spec create mode 100644 ilist-0.4.0.1.cabal create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f9ba8f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ilist-0.4.0.1.tar.gz diff --git a/ghc-ilist.spec b/ghc-ilist.spec new file mode 100644 index 0000000..4fa2d8e --- /dev/null +++ b/ghc-ilist.spec @@ -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 +, 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 - 0.4.0.1-2 +- Bump spec + +* Sun Dec 19 2021 Mohamed El Morabity - 0.4.0.1-1 +- Initial RPM release diff --git a/ilist-0.4.0.1.cabal b/ilist-0.4.0.1.cabal new file mode 100644 index 0000000..a0ad1da --- /dev/null +++ b/ilist-0.4.0.1.cabal @@ -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 + , 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 +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 diff --git a/sources b/sources new file mode 100644 index 0000000..5576501 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ilist-0.4.0.1.tar.gz) = 1da01826992b159af824c736a40fb94c5f19894317da266a17942aaeb40e96aa8029553480b151af3b338bcab83a2d3365d2d983a0dd15721dc7db3c79b79a6d