From 3eabc7ea9659755fe4a0589baa926b991b8a57eb47ab3a1bb5f0d8bd9885de4c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 9 Feb 2022 13:44:55 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-ipynb revision:15, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ipynb?expand=0&rev=22 --- ghc-ipynb.changes | 9 ++++++++ ghc-ipynb.spec | 6 +++-- ipynb-0.1.0.2.tar.gz | 3 --- ipynb-0.2.tar.gz | 3 +++ ipynb.cabal | 54 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+), 5 deletions(-) delete mode 100644 ipynb-0.1.0.2.tar.gz create mode 100644 ipynb-0.2.tar.gz create mode 100644 ipynb.cabal diff --git a/ghc-ipynb.changes b/ghc-ipynb.changes index ba1a04c..a5ca1cf 100644 --- a/ghc-ipynb.changes +++ b/ghc-ipynb.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Feb 4 12:15:26 UTC 2022 - psimons@suse.com + +- Update ipynb to version 0.2 revision 1. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/ipynb-0.2/src/Changelog.md + ------------------------------------------------------------------- Mon Nov 1 08:27:06 UTC 2021 - psimons@suse.com diff --git a/ghc-ipynb.spec b/ghc-ipynb.spec index 1a06026..ee884f9 100644 --- a/ghc-ipynb.spec +++ b/ghc-ipynb.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-ipynb # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,12 +19,13 @@ %global pkg_name ipynb %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.1.0.2 +Version: 0.2 Release: 0 Summary: Data structure for working with Jupyter notebooks (ipynb) 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-aeson-devel BuildRequires: ghc-base64-bytestring-devel @@ -59,6 +60,7 @@ 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 diff --git a/ipynb-0.1.0.2.tar.gz b/ipynb-0.1.0.2.tar.gz deleted file mode 100644 index 8ccf374..0000000 --- a/ipynb-0.1.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d269508fbfe62645e43c19954a203498853f4c915c0bef8f50747a50a257e62 -size 20158 diff --git a/ipynb-0.2.tar.gz b/ipynb-0.2.tar.gz new file mode 100644 index 0000000..31ed169 --- /dev/null +++ b/ipynb-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a743d74e95ccccfadca4a734f44c7b3e2a5b838da3f9044231590d7355191c7 +size 632962 diff --git a/ipynb.cabal b/ipynb.cabal new file mode 100644 index 0000000..6a42c13 --- /dev/null +++ b/ipynb.cabal @@ -0,0 +1,54 @@ +name: ipynb +version: 0.2 +x-revision: 1 +synopsis: Data structure for working with Jupyter notebooks (ipynb). +description: ipynb defines a data structure for representing Jupyter + notebooks, along with ToJSON and FromJSON instances + for conversion to and from JSON .ipynb files. +license: BSD3 +license-file: LICENSE +author: John MacFarlane +maintainer: jgm@berkeley.edu +copyright: Copyright (C) 2019 John MacFarlane +category: Text +build-type: Simple +extra-source-files: Changelog.md + test/rt-files/*.ipynb +cabal-version: >=1.10 +tested-with: GHC == 8.2.2 || == 8.4.4 || == 8.6.5 || + == 8.8.1 || == 8.10.4 || == 9.0.1 + +source-repository head + type: git + location: https://github.com/jgm/ipynb.git + +library + exposed-modules: Data.Ipynb + build-depends: base >= 4.8 && < 5, + containers >= 0.5.8, + unordered-containers, + base64-bytestring, + aeson >= 1.5.2.0, + bytestring, + text + if impl(ghc < 8.0) + build-depends: semigroups == 0.18.* + hs-source-dirs: src + default-language: Haskell2010 + +test-suite roundtrip + type: exitcode-stdio-1.0 + main-is: roundtrip.hs + build-depends: base, + ipynb, + filepath, + directory, + tasty, + tasty-hunit, + aeson, + bytestring, + microlens-aeson, + microlens, + text + hs-source-dirs: test + default-language: Haskell2010