update to 0.5.0.1; refresh to cabal-rpm-2.1.0

SPDX migration
This commit is contained in:
Jens Petersen 2023-01-23 02:01:34 +08:00
parent 8b18ba1195
commit 253f38676a
4 changed files with 49 additions and 218 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/ormolu-0.1.2.0.tar.gz
/ormolu-0.1.3.0.tar.gz
/ormolu-0.1.4.1.tar.gz
/ormolu-0.5.0.1.tar.gz

View File

@ -1,193 +0,0 @@
cabal-version: 1.18
name: ormolu
version: 0.1.4.1
x-revision: 1
license: BSD3
license-file: LICENSE.md
maintainer: Mark Karpov <mark.karpov@tweag.io>
tested-with: ghc ==8.6.5 ghc ==8.8.4 ghc ==8.10.2
homepage: https://github.com/tweag/ormolu
bug-reports: https://github.com/tweag/ormolu/issues
synopsis: A formatter for Haskell source code
description: A formatter for Haskell source code.
category: Development, Formatting
build-type: Simple
data-files:
data/examples/declaration/annotation/*.hs
data/examples/declaration/class/*.hs
data/examples/declaration/data/*.hs
data/examples/declaration/data/gadt/*.hs
data/examples/declaration/default/*.hs
data/examples/declaration/deriving/*.hs
data/examples/declaration/foreign/*.hs
data/examples/declaration/instance/*.hs
data/examples/declaration/rewrite-rule/*.hs
data/examples/declaration/role-annotation/*.hs
data/examples/declaration/signature/complete/*.hs
data/examples/declaration/signature/fixity/*.hs
data/examples/declaration/signature/inline/*.hs
data/examples/declaration/signature/minimal/*.hs
data/examples/declaration/signature/pattern/*.hs
data/examples/declaration/signature/set-cost-centre/*.hs
data/examples/declaration/signature/specialize/*.hs
data/examples/declaration/signature/type/*.hs
data/examples/declaration/splice/*.hs
data/examples/declaration/type-families/closed-type-family/*.hs
data/examples/declaration/type-families/data-family/*.hs
data/examples/declaration/type-families/type-family/*.hs
data/examples/declaration/type-synonyms/*.hs
data/examples/declaration/type/*.hs
data/examples/declaration/value/function/*.hs
data/examples/declaration/value/function/arrow/*.hs
data/examples/declaration/value/function/comprehension/*.hs
data/examples/declaration/value/function/do/*.hs
data/examples/declaration/value/function/infix/*.hs
data/examples/declaration/value/function/pattern/*.hs
data/examples/declaration/value/other/*.hs
data/examples/declaration/value/pattern-synonyms/*.hs
data/examples/declaration/warning/*.hs
data/examples/import/*.hs
data/examples/module-header/*.hs
data/examples/other/*.hs
data/diff-tests/inputs/*.hs
data/diff-tests/outputs/*.txt
extra-doc-files:
CONTRIBUTING.md
CHANGELOG.md
DESIGN.md
README.md
source-repository head
type: git
location: https://github.com/tweag/ormolu.git
flag dev
description: Turn on development settings.
default: False
manual: True
library
exposed-modules:
Ormolu
Ormolu.Config
Ormolu.Diff.ParseResult
Ormolu.Diff.Text
Ormolu.Exception
Ormolu.Imports
Ormolu.Parser
Ormolu.Parser.Anns
Ormolu.Parser.CommentStream
Ormolu.Parser.Pragma
Ormolu.Parser.Result
Ormolu.Parser.Shebang
Ormolu.Printer
Ormolu.Printer.Combinators
Ormolu.Printer.Comments
Ormolu.Printer.Internal
Ormolu.Printer.Meat.Common
Ormolu.Printer.Meat.Declaration
Ormolu.Printer.Meat.Declaration.Annotation
Ormolu.Printer.Meat.Declaration.Class
Ormolu.Printer.Meat.Declaration.Data
Ormolu.Printer.Meat.Declaration.Default
Ormolu.Printer.Meat.Declaration.Foreign
Ormolu.Printer.Meat.Declaration.Instance
Ormolu.Printer.Meat.Declaration.RoleAnnotation
Ormolu.Printer.Meat.Declaration.Rule
Ormolu.Printer.Meat.Declaration.Signature
Ormolu.Printer.Meat.Declaration.Splice
Ormolu.Printer.Meat.Declaration.Type
Ormolu.Printer.Meat.Declaration.TypeFamily
Ormolu.Printer.Meat.Declaration.Value
Ormolu.Printer.Meat.Declaration.Warning
Ormolu.Printer.Meat.ImportExport
Ormolu.Printer.Meat.Module
Ormolu.Printer.Meat.Pragma
Ormolu.Printer.Meat.Type
Ormolu.Printer.Operators
Ormolu.Printer.SpanStream
Ormolu.Processing.Common
Ormolu.Processing.Cpp
Ormolu.Processing.Postprocess
Ormolu.Processing.Preprocess
Ormolu.Terminal
Ormolu.Utils
hs-source-dirs: src
other-modules:
GHC
GHC.DynFlags
default-language: Haskell2010
build-depends:
Diff >=0.4 && <1.0,
ansi-terminal >=0.10 && <1.0,
base >=4.12 && <5.0,
bytestring >=0.2 && <0.12,
containers >=0.5 && <0.7,
dlist >=0.8 && <2.0,
exceptions >=0.6 && <0.11,
ghc-lib-parser >=8.10 && <8.11,
mtl >=2.0 && <3.0,
syb >=0.7 && <0.8,
text >=0.2 && <1.3
if flag(dev)
ghc-options:
-Wall -Werror -Wcompat -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wnoncanonical-monad-instances
-Wno-missing-home-modules
else
ghc-options: -O2 -Wall
executable ormolu
main-is: Main.hs
hs-source-dirs: app
other-modules: Paths_ormolu
default-language: Haskell2010
build-depends:
base >=4.12 && <5.0,
filepath >=1.2 && <1.5,
ghc-lib-parser >=8.10 && <8.11,
gitrev >=1.3 && <1.4,
optparse-applicative >=0.14 && <0.17,
ormolu -any,
text >=0.2 && <1.3
if flag(dev)
ghc-options:
-Wall -Werror -Wcompat -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wnoncanonical-monad-instances
-optP-Wno-nonportable-include-path
else
ghc-options: -O2 -Wall -rtsopts
test-suite tests
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tools: hspec-discover >=2.0 && <3.0
hs-source-dirs: tests
other-modules:
Ormolu.Diff.TextSpec
Ormolu.Parser.PragmaSpec
Ormolu.PrinterSpec
default-language: Haskell2010
build-depends:
base >=4.12 && <5.0,
containers >=0.5 && <0.7,
filepath >=1.2 && <1.5,
hspec >=2.0 && <3.0,
ormolu -any,
path >=0.6 && <0.9,
path-io >=1.4.2 && <2.0,
text >=0.2 && <1.3
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-2.0.9
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name ormolu
@ -7,44 +7,76 @@
%bcond_without tests
Name: %{pkg_name}
Version: 0.1.4.1
Release: 5%{?dist}
Version: 0.5.0.1
Release: 1%{?dist}
Summary: A formatter for Haskell source code
License: BSD
License: BSD-3-Clause
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# ghc-lib-parser cannot build s390x
# https://bugzilla.redhat.com/show_bug.cgi?id=1806109
ExcludeArch: s390x
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-Diff-devel
BuildRequires: ghc-MemoTrie-devel
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-dlist-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-ghc-lib-parser-devel
BuildRequires: ghc-gitrev-devel
BuildRequires: ghc-megaparsec-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-syb-devel
BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-th-lift-instances-devel
%if %{with ghc_prof}
BuildRequires: ghc-Cabal-prof
BuildRequires: ghc-Diff-prof
BuildRequires: ghc-MemoTrie-prof
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-ansi-terminal-prof
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-dlist-prof
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-ghc-lib-parser-prof
BuildRequires: ghc-gitrev-prof
BuildRequires: ghc-megaparsec-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-optparse-applicative-prof
BuildRequires: ghc-syb-prof
BuildRequires: ghc-template-haskell-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-th-lift-instances-prof
%endif
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel
BuildRequires: ghc-hspec-discover-devel
BuildRequires: ghc-hspec-megaparsec-devel
BuildRequires: ghc-path-devel
BuildRequires: ghc-path-io-devel
BuildRequires: ghc-temporary-devel
%endif
Requires: %{name}-common = %{version}-%{release}
# End cabal-rpm deps
%description
@ -80,17 +112,8 @@ The project was created with the following goals in mind:
there.
%package common
Summary: %{name} common files
BuildArch: noarch
%description common
This package provides the %{name} common data files.
%package -n ghc-%{name}
Summary: Haskell %{name} library
Requires: %{name}-common = %{version}-%{release}
%description -n ghc-%{name}
This package provides the Haskell %{name} shared library.
@ -134,7 +157,6 @@ This package provides the Haskell %{name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q
cp -bp %{SOURCE1} %{name}.cabal
# End cabal-rpm setup
@ -147,7 +169,6 @@ cp -bp %{SOURCE1} %{name}.cabal
%install
# Begin cabal-rpm install
%ghc_lib_install
mv %{buildroot}%{_ghcdocdir}{,-common}
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
%{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm install
@ -161,23 +182,21 @@ mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
%files
# Begin cabal-rpm files:
%license LICENSE.md
%doc CHANGELOG.md CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm files
%files common
%files -n ghc-%{name} -f ghc-%{name}.files
# Begin cabal-rpm files:
%license LICENSE.md
%doc CHANGELOG.md CONTRIBUTING.md README.md
%{_datadir}/%{pkgver}
# End cabal-rpm files
%files -n ghc-%{name} -f ghc-%{name}.files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc CHANGELOG.md CONTRIBUTING.md README.md
%if %{with haddock}
@ -192,6 +211,10 @@ mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
%changelog
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 0.5.0.1-1
- https://hackage.haskell.org/package/ormolu-0.5.0.1/changelog
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (ormolu-0.1.4.1.tar.gz) = b63b7c185bb80365dbc5359f3c8aed3015abcf50b4937dfe941dc65572b57c9403269e82cf4067cd8eca67130b98aea8f85d889a3270e066de4eb507260f0d6b
SHA512 (ormolu-0.5.0.1.tar.gz) = 155d7f8fcab72b72e6710437dfc6d7b63c6f2b7b9bc8667b0ac8d0a9382ee693ae9feb8cb3404e763eb2378ce322c57eca606349f7b7f0769e0fd6a1c74e1b7a