diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-29 08:42:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-29 08:42:39 +0000 |
commit | bbc37b540d908dce742dfe4f70ce005baa36d8ca (patch) | |
tree | cb0dc2157c5ad6e90e3a72a65d7a23c942e67e93 | |
parent | e9132a220db1abb2ecee56c28c08853a162ac614 (diff) |
automatic import of ghc-ipynbopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ghc-ipynb.spec | 106 | ||||
-rwxr-xr-x | ipynb.cabal | 54 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 162 insertions, 0 deletions
@@ -0,0 +1 @@ +/ipynb-0.2.tar.gz diff --git a/ghc-ipynb.spec b/ghc-ipynb.spec new file mode 100644 index 0000000..5fa629d --- /dev/null +++ b/ghc-ipynb.spec @@ -0,0 +1,106 @@ +%global pkg_name ipynb +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.2 +Release: 1 +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-aeson-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-base64-bytestring-devel +BuildRequires: ghc-base64-bytestring-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-unordered-containers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-microlens-aeson-devel +BuildRequires: ghc-microlens-aeson-prof +BuildRequires: ghc-microlens-devel +BuildRequires: ghc-microlens-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-hunit-prof +BuildRequires: ghc-tasty-prof +%endif + +%description +Ipynb defines a data structure for representing Jupyter notebooks, along with +ToJSON and FromJSON instances for conversion to and from JSON .ipynb files. + +%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. + +%package -n ghc-%{pkg_name}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%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 Changelog.md + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 0.2-1 +- Initial packaging (Version 0.2) diff --git a/ipynb.cabal b/ipynb.cabal new file mode 100755 index 0000000..d904da3 --- /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
@@ -0,0 +1 @@ +77cfc8193d256dd01d27cbc4f25eca5a ipynb-0.2.tar.gz |