From 911b3aa31cadafacc9544e636d85c20ff518f24265989350e997a52333781df3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Jun 2022 12:18:12 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-generic-lens-core revision:15, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-generic-lens-core?expand=0&rev=14 --- generic-lens-core.cabal | 71 +++++++++++++++++++++++++++++++++++ ghc-generic-lens-core.changes | 6 +++ ghc-generic-lens-core.spec | 2 + 3 files changed, 79 insertions(+) create mode 100644 generic-lens-core.cabal diff --git a/generic-lens-core.cabal b/generic-lens-core.cabal new file mode 100644 index 0000000..c4bc08a --- /dev/null +++ b/generic-lens-core.cabal @@ -0,0 +1,71 @@ +name: generic-lens-core +version: 2.2.1.0 +x-revision: 1 +synopsis: Generically derive traversals, lenses and prisms. +description: This library uses GHC.Generics to derive efficient optics (traversals, lenses and prisms) for algebraic data types in a type-directed way, with a focus on good type inference and error messages when possible. + . + This package is the shared internal logic of the + @@ + and + @@ + libraries. + +homepage: https://github.com/kcsongor/generic-lens +license: BSD3 +license-file: LICENSE +author: Csongor Kiss +maintainer: kiss.csongor.kiss@gmail.com +category: Generics, Records, Lens +build-type: Simple +cabal-version: >= 1.10 +Tested-With: GHC == 8.4.1, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.3, GHC == 9.0.1, GHC == 9.2.1 + +extra-source-files: ChangeLog.md + +library + exposed-modules: Data.Generics.Internal.GenericN + + , Data.Generics.Internal.Profunctor.Lens + , Data.Generics.Internal.Profunctor.Prism + , Data.Generics.Internal.Profunctor.Iso + + , Data.Generics.Internal.VL.Traversal + + , Data.GenericLens.Internal + + , Data.Generics.Internal.Families + , Data.Generics.Internal.Families.Changing + , Data.Generics.Internal.Families.Collect + , Data.Generics.Internal.Families.Has + , Data.Generics.Internal.Errors + , Data.Generics.Internal.Void + + , Data.Generics.Internal.Wrapped + + , Data.Generics.Sum.Internal.Constructors + , Data.Generics.Sum.Internal.Typed + , Data.Generics.Sum.Internal.Subtype + + , Data.Generics.Product.Internal.Param + , Data.Generics.Product.Internal.Types + + , Data.Generics.Product.Internal.Fields + , Data.Generics.Product.Internal.Typed + , Data.Generics.Product.Internal.Positions + , Data.Generics.Product.Internal.GLens + , Data.Generics.Product.Internal.Subtype + + , Data.Generics.Product.Internal.HList + + build-depends: base >= 4.11 && < 5 + , text >= 1.2 && < 1.3 || >= 2.0 && < 2.1 + , indexed-profunctors >= 0.1 && < 1.0 + + hs-source-dirs: src + default-language: Haskell2010 + ghc-options: -Wall + +source-repository head + type: git + location: https://github.com/kcsongor/generic-lens + diff --git a/ghc-generic-lens-core.changes b/ghc-generic-lens-core.changes index 34742e0..9151424 100644 --- a/ghc-generic-lens-core.changes +++ b/ghc-generic-lens-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 8 17:00:32 UTC 2022 - Peter Simons + +- Update generic-lens-core to version 2.2.1.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Sat Jan 22 22:52:56 UTC 2022 - Peter Simons diff --git a/ghc-generic-lens-core.spec b/ghc-generic-lens-core.spec index 1e16302..4347687 100644 --- a/ghc-generic-lens-core.spec +++ b/ghc-generic-lens-core.spec @@ -24,6 +24,7 @@ Summary: Generically derive traversals, lenses and prisms 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-indexed-profunctors-devel BuildRequires: ghc-rpm-macros @@ -53,6 +54,7 @@ files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build