From 80a456d1a929e2942d16b6131c9c779c4b8344c97f1023613e19cc19f08eb991 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 6 Oct 2022 14:46:18 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-Cabal-syntax revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-Cabal-syntax?expand=0&rev=3 --- Cabal-syntax-3.6.0.0.tar.gz | 3 - Cabal-syntax-3.8.1.0.tar.gz | 3 + Cabal-syntax.cabal | 225 ++++++++++++++++++++++++++++++++++++ ghc-Cabal-syntax.changes | 8 ++ ghc-Cabal-syntax.spec | 36 +++--- 5 files changed, 255 insertions(+), 20 deletions(-) delete mode 100644 Cabal-syntax-3.6.0.0.tar.gz create mode 100644 Cabal-syntax-3.8.1.0.tar.gz create mode 100644 Cabal-syntax.cabal diff --git a/Cabal-syntax-3.6.0.0.tar.gz b/Cabal-syntax-3.6.0.0.tar.gz deleted file mode 100644 index f46958b..0000000 --- a/Cabal-syntax-3.6.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca25e5fc601397565fa857f1aa477740fac7f43d659e77c4d9b1485dca239251 -size 1751 diff --git a/Cabal-syntax-3.8.1.0.tar.gz b/Cabal-syntax-3.8.1.0.tar.gz new file mode 100644 index 0000000..1c99d00 --- /dev/null +++ b/Cabal-syntax-3.8.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07e8ddb19fe01781485f1522b6afc22aba680b0ab28ebe6bbfb84a2dd698ce0f +size 233354 diff --git a/Cabal-syntax.cabal b/Cabal-syntax.cabal new file mode 100644 index 0000000..92a3f82 --- /dev/null +++ b/Cabal-syntax.cabal @@ -0,0 +1,225 @@ +cabal-version: 1.22 +name: Cabal-syntax +version: 3.8.1.0 +x-revision: 1 +copyright: 2003-2022, Cabal Development Team (see AUTHORS file) +license: BSD3 +license-file: LICENSE +author: Cabal Development Team +maintainer: cabal-devel@haskell.org +homepage: http://www.haskell.org/cabal/ +bug-reports: https://github.com/haskell/cabal/issues +synopsis: A library for working with .cabal files +description: + This library provides tools for reading and manipulating the .cabal file + format. +category: Distribution +build-type: Simple + +extra-source-files: + README.md ChangeLog.md + +source-repository head + type: git + location: https://github.com/haskell/cabal/ + subdir: Cabal-syntax + +library + default-language: Haskell2010 + hs-source-dirs: src + + build-depends: + array >= 0.4.0.1 && < 0.6, + base >= 4.9 && < 5, + binary >= 0.7 && < 0.9, + bytestring >= 0.10.0.0 && < 0.12, + containers >= 0.5.0.0 && < 0.7, + deepseq >= 1.3.0.1 && < 1.5, + directory >= 1.2 && < 1.4, + filepath >= 1.3.0.1 && < 1.5, + mtl >= 2.1 && < 2.3, + parsec >= 3.1.13.0 && < 3.2, + pretty >= 1.1.1 && < 1.2, + text (>= 1.2.3.0 && < 1.3) || (>= 2.0 && < 2.1), + time >= 1.4.0.1 && < 1.13, + -- transformers-0.4.0.0 doesn't have record syntax e.g. for Identity + -- See also https://github.com/ekmett/transformers-compat/issues/35 + transformers (>= 0.3 && < 0.4) || (>=0.4.1.0 && <0.6) + + if os(windows) + build-depends: Win32 >= 2.3.0.0 && < 2.14 + else + build-depends: unix >= 2.6.0.0 && < 2.8 + + ghc-options: -Wall -fno-ignore-asserts -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates + ghc-options: -Wcompat -Wnoncanonical-monad-instances + + if impl(ghc <8.8) + ghc-options: -Wnoncanonical-monadfail-instances + + exposed-modules: + Distribution.Backpack + Distribution.CabalSpecVersion + Distribution.Compat.Binary + Distribution.Compat.CharParsing + Distribution.Compat.DList + Distribution.Compat.Exception + Distribution.Compat.Graph + Distribution.Compat.Lens + Distribution.Compat.MonadFail + Distribution.Compat.Newtype + Distribution.Compat.NonEmptySet + Distribution.Compat.Parsing + Distribution.Compat.Prelude + Distribution.Compat.Semigroup + Distribution.Compat.Typeable + Distribution.Compiler + Distribution.FieldGrammar + Distribution.FieldGrammar.Class + Distribution.FieldGrammar.FieldDescrs + Distribution.FieldGrammar.Newtypes + Distribution.FieldGrammar.Parsec + Distribution.FieldGrammar.Pretty + Distribution.Fields + Distribution.Fields.ConfVar + Distribution.Fields.Field + Distribution.Fields.Lexer + Distribution.Fields.LexerMonad + Distribution.Fields.ParseResult + Distribution.Fields.Parser + Distribution.Fields.Pretty + Distribution.InstalledPackageInfo + Distribution.License + Distribution.ModuleName + Distribution.Package + Distribution.PackageDescription + Distribution.PackageDescription.Configuration + Distribution.PackageDescription.FieldGrammar + Distribution.PackageDescription.Parsec + Distribution.PackageDescription.PrettyPrint + Distribution.PackageDescription.Quirks + Distribution.PackageDescription.Utils + Distribution.Parsec + Distribution.Parsec.Error + Distribution.Parsec.FieldLineStream + Distribution.Parsec.Position + Distribution.Parsec.Warning + Distribution.Pretty + Distribution.SPDX + Distribution.SPDX.License + Distribution.SPDX.LicenseExceptionId + Distribution.SPDX.LicenseExpression + Distribution.SPDX.LicenseId + Distribution.SPDX.LicenseListVersion + Distribution.SPDX.LicenseReference + Distribution.System + Distribution.Text + Distribution.Types.AbiDependency + Distribution.Types.AbiHash + Distribution.Types.Benchmark + Distribution.Types.Benchmark.Lens + Distribution.Types.BenchmarkInterface + Distribution.Types.BenchmarkType + Distribution.Types.BuildInfo + Distribution.Types.BuildInfo.Lens + Distribution.Types.BuildType + Distribution.Types.Component + Distribution.Types.ComponentId + Distribution.Types.ComponentName + Distribution.Types.ComponentRequestedSpec + Distribution.Types.CondTree + Distribution.Types.Condition + Distribution.Types.ConfVar + Distribution.Types.Dependency + Distribution.Types.DependencyMap + Distribution.Types.ExeDependency + Distribution.Types.Executable + Distribution.Types.Executable.Lens + Distribution.Types.ExecutableScope + Distribution.Types.ExposedModule + Distribution.Types.Flag + Distribution.Types.ForeignLib + Distribution.Types.ForeignLib.Lens + Distribution.Types.ForeignLibOption + Distribution.Types.ForeignLibType + Distribution.Types.GenericPackageDescription + Distribution.Types.GenericPackageDescription.Lens + Distribution.Types.HookedBuildInfo + Distribution.Types.IncludeRenaming + Distribution.Types.InstalledPackageInfo + Distribution.Types.InstalledPackageInfo.Lens + Distribution.Types.InstalledPackageInfo.FieldGrammar + Distribution.Types.LegacyExeDependency + Distribution.Types.Lens + Distribution.Types.Library + Distribution.Types.Library.Lens + Distribution.Types.LibraryName + Distribution.Types.LibraryVisibility + Distribution.Types.Mixin + Distribution.Types.Module + Distribution.Types.ModuleReexport + Distribution.Types.ModuleRenaming + Distribution.Types.MungedPackageId + Distribution.Types.MungedPackageName + Distribution.Types.PackageDescription + Distribution.Types.PackageDescription.Lens + Distribution.Types.PackageId + Distribution.Types.PackageId.Lens + Distribution.Types.PackageName + Distribution.Types.PackageVersionConstraint + Distribution.Types.PkgconfigDependency + Distribution.Types.PkgconfigName + Distribution.Types.PkgconfigVersion + Distribution.Types.PkgconfigVersionRange + Distribution.Types.SetupBuildInfo + Distribution.Types.SetupBuildInfo.Lens + Distribution.Types.SourceRepo + Distribution.Types.SourceRepo.Lens + Distribution.Types.TestSuite + Distribution.Types.TestSuite.Lens + Distribution.Types.TestSuiteInterface + Distribution.Types.TestType + Distribution.Types.UnitId + Distribution.Types.UnqualComponentName + Distribution.Types.Version + Distribution.Types.VersionInterval + Distribution.Types.VersionInterval.Legacy + Distribution.Types.VersionRange + Distribution.Types.VersionRange.Internal + Distribution.Utils.Base62 + Distribution.Utils.Generic + Distribution.Utils.MD5 + Distribution.Utils.Path + Distribution.Utils.ShortText + Distribution.Utils.String + Distribution.Utils.Structured + Distribution.Version + Language.Haskell.Extension + + other-extensions: + BangPatterns + CPP + DefaultSignatures + DeriveDataTypeable + DeriveFoldable + DeriveFunctor + DeriveGeneric + DeriveTraversable + ExistentialQuantification + FlexibleContexts + FlexibleInstances + GeneralizedNewtypeDeriving + ImplicitParams + KindSignatures + NondecreasingIndentation + OverloadedStrings + PatternSynonyms + RankNTypes + RecordWildCards + ScopedTypeVariables + StandaloneDeriving + Trustworthy + TypeFamilies + TypeOperators + TypeSynonymInstances + UndecidableInstances diff --git a/ghc-Cabal-syntax.changes b/ghc-Cabal-syntax.changes index 12dd62c..be9a2da 100644 --- a/ghc-Cabal-syntax.changes +++ b/ghc-Cabal-syntax.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 15 09:05:07 UTC 2022 - Peter Simons + +- Update Cabal-syntax to version 3.8.1.0 revision 1. + Upstream added a new change log file in this release. With no + previous version to compare against, the automatic updater cannot + reliable determine the relevante entries for this release. + ------------------------------------------------------------------- Fri Feb 4 12:31:25 UTC 2022 - psimons@suse.com diff --git a/ghc-Cabal-syntax.spec b/ghc-Cabal-syntax.spec index 2a9f8ce..5224c10 100644 --- a/ghc-Cabal-syntax.spec +++ b/ghc-Cabal-syntax.spec @@ -18,35 +18,35 @@ %global pkg_name Cabal-syntax Name: ghc-%{pkg_name} -Version: 3.6.0.0 +Version: 3.8.1.0 Release: 0 Summary: A library for working with .cabal files License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-array-devel +BuildRequires: ghc-binary-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-pretty-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-time-devel +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-unix-devel ExcludeArch: %{ix86} %description This library provides tools for reading and manipulating the .cabal file format. -Version 3.6 (unlike the following versions) is a dummy package that prevents -module name clases between Cabal and Cabal-syntax if used together with a Cabal -flag as described below. - -In Cabal-3.7 this package was split off. To avoid module name clashes, you can -add this to your .cabal file: - -> flag Cabal-syntax > description: Use the new Cabal-syntax package > default: -False > manual: False > > library > -- ... > if flag(Cabal-syntax) > -build-depends: Cabal-syntax >= 3.7 > else > build-depends: Cabal < 3.7, -Cabal-syntax < 3.7 - -This will default to the older build, but will allow consumers to opt-in to the -newer libraries by requiring Cabal or Cabal-syntax >= 3.7. - %package devel Summary: Haskell %{pkg_name} library development files Requires: %{name} = %{version}-%{release} @@ -59,9 +59,10 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build -%ghc_lib_build_without_haddock +%ghc_lib_build %install %ghc_lib_install @@ -76,5 +77,6 @@ This package provides the Haskell %{pkg_name} library development files. %license LICENSE %files devel -f %{name}-devel.files +%doc ChangeLog.md README.md %changelog