From b6081b96755ee0dd6addac1bf51fc174727333e5f973942141ea888018921fd3 Mon Sep 17 00:00:00 2001 From: Mark Stopka Date: Mon, 2 Nov 2020 08:17:56 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-ekg-json revision:1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ekg-json?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + ekg-json-0.1.0.6.tar.gz | 3 ++ ekg-json.cabal | 34 +++++++++++++++++++ ghc-ekg-json.changes | 5 +++ ghc-ekg-json.spec | 72 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ekg-json-0.1.0.6.tar.gz create mode 100644 ekg-json.cabal create mode 100644 ghc-ekg-json.changes create mode 100644 ghc-ekg-json.spec 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/ekg-json-0.1.0.6.tar.gz b/ekg-json-0.1.0.6.tar.gz new file mode 100644 index 0000000..cfec407 --- /dev/null +++ b/ekg-json-0.1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e6a80aa0a28bbf41c9c6364cbb5731160d14fa54145f27a82d0b3467a04dd47 +size 3094 diff --git a/ekg-json.cabal b/ekg-json.cabal new file mode 100644 index 0000000..49dc8a0 --- /dev/null +++ b/ekg-json.cabal @@ -0,0 +1,34 @@ +name: ekg-json +version: 0.1.0.6 +x-revision: 7 +synopsis: JSON encoding of ekg metrics +description: + Encodes ekg metrics as JSON, using the same encoding as used by the + ekg package, thus allowing ekg metrics to be served by other HTTP + servers than the one used by the ekg package. +homepage: https://github.com/tibbe/ekg-json +bug-reports: https://github.com/tibbe/ekg-json/issues +license: BSD3 +license-file: LICENSE +author: Johan Tibell +maintainer: johan.tibell@gmail.com +category: Distribution +extra-source-files: CHANGES.md +build-type: Simple +cabal-version: >=1.10 + +library + exposed-modules: + System.Metrics.Json + build-depends: + aeson >=0.4 && < 1.6, + base >= 4.5 && < 4.15, + ekg-core >= 0.1 && < 0.2, + text < 1.3, + unordered-containers < 0.3 + + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/tibbe/ekg-json.git diff --git a/ghc-ekg-json.changes b/ghc-ekg-json.changes new file mode 100644 index 0000000..9313022 --- /dev/null +++ b/ghc-ekg-json.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Oct 30 03:01:10 UTC 2020 - psimons@suse.com + +- Add ekg-json at version 0.1.0.6 revision 7. + diff --git a/ghc-ekg-json.spec b/ghc-ekg-json.spec new file mode 100644 index 0000000..f062912 --- /dev/null +++ b/ghc-ekg-json.spec @@ -0,0 +1,72 @@ +# +# spec file for package ghc-ekg-json +# +# 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 ekg-json +Name: ghc-%{pkg_name} +Version: 0.1.0.6 +Release: 0 +Summary: JSON encoding of ekg metrics +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/7.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-ekg-core-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-unordered-containers-devel + +%description +Encodes ekg metrics as JSON, using the same encoding as used by the ekg +package, thus allowing ekg metrics to be served by other HTTP servers than the +one used by the ekg package. + +%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 + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGES.md + +%changelog