From 8e458c6dd537e7e5e77ddd926e03a9b76da947645887817daf07d440bbfc5a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 2 Dec 2020 15:03:32 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-lens-aeson revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens-aeson?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + ghc-lens-aeson.changes | 5 +++ ghc-lens-aeson.spec | 85 ++++++++++++++++++++++++++++++++++++++++ lens-aeson-1.1.tar.gz | 3 ++ lens-aeson.cabal | 89 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-lens-aeson.changes create mode 100644 ghc-lens-aeson.spec create mode 100644 lens-aeson-1.1.tar.gz create mode 100644 lens-aeson.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-lens-aeson.changes b/ghc-lens-aeson.changes new file mode 100644 index 0000000..69f6197 --- /dev/null +++ b/ghc-lens-aeson.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Nov 29 18:14:48 UTC 2020 - psimons@suse.com + +- Add lens-aeson at version 1.1 revision 2. + diff --git a/ghc-lens-aeson.spec b/ghc-lens-aeson.spec new file mode 100644 index 0000000..2f1c184 --- /dev/null +++ b/ghc-lens-aeson.spec @@ -0,0 +1,85 @@ +# +# spec file for package ghc-lens-aeson +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name lens-aeson +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 1.1 +Release: 0 +Summary: Law-abiding lenses for aeson +License: MIT +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-cabal-doctest-devel +BuildRequires: ghc-lens-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-scientific-devel +BuildRequires: ghc-text-devel +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-vector-devel +%if %{with tests} +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-generic-deriving-devel +BuildRequires: ghc-semigroups-devel +BuildRequires: ghc-simple-reflect-devel +%endif + +%description +Law-abiding lenses for aeson. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +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 + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc AUTHORS.markdown CHANGELOG.markdown README.markdown + +%changelog diff --git a/lens-aeson-1.1.tar.gz b/lens-aeson-1.1.tar.gz new file mode 100644 index 0000000..a17ac9f --- /dev/null +++ b/lens-aeson-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7bc9c6f95735b523afac6316195d06b31f9b85c84918960096e4eecdb6cc90e +size 11022 diff --git a/lens-aeson.cabal b/lens-aeson.cabal new file mode 100644 index 0000000..deab4e6 --- /dev/null +++ b/lens-aeson.cabal @@ -0,0 +1,89 @@ +name: lens-aeson +category: Numeric +version: 1.1 +x-revision: 2 +license: MIT +cabal-version: >= 1.8 +license-file: LICENSE +author: Edward A. Kmett +maintainer: Edward A. Kmett +stability: provisional +homepage: http://github.com/lens/lens-aeson/ +bug-reports: http://github.com/lens/lens-aeson/issues +copyright: + Copyright (C) 2012 Paul Wilson + Copyright (C) 2013 Edward A. Kmett +build-type: Custom +tested-with: GHC == 7.4.2 + , GHC == 7.6.3 + , GHC == 7.8.4 + , GHC == 7.10.3 + , GHC == 8.0.2 + , GHC == 8.2.2 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.1 +synopsis: Law-abiding lenses for aeson +description: Law-abiding lenses for aeson. + +extra-source-files: + .travis.yml + .ghci + .gitignore + .vim.custom + travis/cabal-apt-install + travis/config + AUTHORS.markdown + README.markdown + CHANGELOG.markdown + Warning.hs + +source-repository head + type: git + location: https://github.com/lens/lens-aeson + +custom-setup + setup-depends: + base >= 4 && < 5, + Cabal, + cabal-doctest >= 1 && < 1.1 + +-- You can disable the doctests test suite with -f-test-doctests +flag test-doctests + default: True + manual: True + +library + build-depends: + base >= 4.5 && < 5, + lens >= 4.4 && < 5, + text >= 0.11.1.10 && < 1.3, + vector >= 0.9 && < 0.13, + unordered-containers >= 0.2.3 && < 0.3, + attoparsec >= 0.10 && < 0.14, + bytestring >= 0.9 && < 0.11, + aeson >= 0.7.0.5 && < 1.6, + scientific >= 0.3.2 && < 0.4 + + exposed-modules: + Data.Aeson.Lens + + ghc-options: -Wall -fwarn-tabs -O2 + hs-source-dirs: src + +test-suite doctests + type: exitcode-stdio-1.0 + main-is: doctests.hs + ghc-options: -Wall -threaded + hs-source-dirs: tests + + if !flag(test-doctests) + buildable: False + else + build-depends: + base, + doctest >= 0.11.1 && < 0.18, + generic-deriving, + lens-aeson, + semigroups >= 0.9, + simple-reflect >= 0.3.1