From 687254732b8a89dd4063d8e790a3f5c5eab8a7c183c28b001a23925e6f6b41f0 Mon Sep 17 00:00:00 2001 From: Mark Stopka Date: Mon, 2 Nov 2020 08:17:31 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-ekg-core revision:1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ekg-core?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + ekg-core-0.1.1.7.tar.gz | 3 ++ ekg-core.cabal | 75 +++++++++++++++++++++++++++++++++++++++++ ghc-ekg-core.changes | 5 +++ ghc-ekg-core.spec | 69 +++++++++++++++++++++++++++++++++++++ 6 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ekg-core-0.1.1.7.tar.gz create mode 100644 ekg-core.cabal create mode 100644 ghc-ekg-core.changes create mode 100644 ghc-ekg-core.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-core-0.1.1.7.tar.gz b/ekg-core-0.1.1.7.tar.gz new file mode 100644 index 0000000..5944632 --- /dev/null +++ b/ekg-core-0.1.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45813f2b94fde0b92c7979bd37de52f09b8b645560f5789276c3acfc7934db12 +size 13612 diff --git a/ekg-core.cabal b/ekg-core.cabal new file mode 100644 index 0000000..c4c0424 --- /dev/null +++ b/ekg-core.cabal @@ -0,0 +1,75 @@ +cabal-version: 1.18 +name: ekg-core +version: 0.1.1.7 +x-revision: 1 +synopsis: Tracking of system metrics +description: + This library lets you defined and track system metrics. +homepage: https://github.com/tibbe/ekg-core +bug-reports: https://github.com/tibbe/ekg-core/issues +license: BSD3 +license-file: LICENSE +author: Johan Tibell +maintainer: Johan Tibell , + Mikhail Glushenkov +category: System +build-type: Simple +extra-source-files: CHANGES.md +tested-with: GHC == 8.8.3, GHC == 8.6.5, GHC == 8.4.4, + GHC == 8.2.2, GHC == 8.0.2, GHC == 7.10.3, + GHC == 7.8.4, GHC == 7.6.3 + +library + exposed-modules: + System.Metrics + System.Metrics.Counter + System.Metrics.Distribution + System.Metrics.Distribution.Internal + System.Metrics.Gauge + System.Metrics.Label + + other-modules: + Data.Array + Data.Atomic + System.Metrics.ThreadId + + build-depends: + ghc-prim < 0.7, + base >= 4.6 && < 4.15, + containers >= 0.5 && < 0.7, + text < 1.3, + unordered-containers < 0.3 + + default-language: Haskell2010 + + ghc-options: -Wall + if arch(i386) + cc-options: -march=i686 + includes: distrib.h + install-includes: distrib.h + include-dirs: cbits + c-sources: cbits/atomic.c cbits/distrib.c + +benchmark counter + main-is: Counter.hs + type: exitcode-stdio-1.0 + build-depends: + base, + ekg-core + default-language: Haskell2010 + hs-source-dirs: benchmarks + ghc-options: -O2 -threaded -Wall + +benchmark distribution + main-is: Distribution.hs + type: exitcode-stdio-1.0 + build-depends: + base, + ekg-core + default-language: Haskell2010 + hs-source-dirs: benchmarks + ghc-options: -O2 -threaded -Wall + +source-repository head + type: git + location: https://github.com/tibbe/ekg-core.git diff --git a/ghc-ekg-core.changes b/ghc-ekg-core.changes new file mode 100644 index 0000000..203a67a --- /dev/null +++ b/ghc-ekg-core.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Oct 30 03:01:35 UTC 2020 - psimons@suse.com + +- Add ekg-core at version 0.1.1.7 revision 1. + diff --git a/ghc-ekg-core.spec b/ghc-ekg-core.spec new file mode 100644 index 0000000..87271f3 --- /dev/null +++ b/ghc-ekg-core.spec @@ -0,0 +1,69 @@ +# +# spec file for package ghc-ekg-core +# +# 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-core +Name: ghc-%{pkg_name} +Version: 0.1.1.7 +Release: 0 +Summary: Tracking of system 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/1.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-unordered-containers-devel + +%description +This library lets you defined and track system metrics. + +%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