From bc96ed3fa2fd921412557072e098643f4be4fc52821a32ee12a37a48caa24f23 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 30 Mar 2023 08:26:22 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-commutative-semigroups revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-commutative-semigroups?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + commutative-semigroups-0.1.0.0.tar.gz | 3 + commutative-semigroups.cabal | 31 +++++++++ ghc-commutative-semigroups.changes | 5 ++ ghc-commutative-semigroups.spec | 95 +++++++++++++++++++++++++++ 6 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 commutative-semigroups-0.1.0.0.tar.gz create mode 100644 commutative-semigroups.cabal create mode 100644 ghc-commutative-semigroups.changes create mode 100644 ghc-commutative-semigroups.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/commutative-semigroups-0.1.0.0.tar.gz b/commutative-semigroups-0.1.0.0.tar.gz new file mode 100644 index 0000000..070a00f --- /dev/null +++ b/commutative-semigroups-0.1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:661d41ac7fbab17bdc5ebb7eafeecc597616cc5a1c7fce1b07722aa8bc1a0618 +size 3916 diff --git a/commutative-semigroups.cabal b/commutative-semigroups.cabal new file mode 100644 index 0000000..c8ce30a --- /dev/null +++ b/commutative-semigroups.cabal @@ -0,0 +1,31 @@ +cabal-version: 2.4 +name: commutative-semigroups +version: 0.1.0.0 +x-revision: 3 +synopsis: Commutative semigroups +description: + A commutative semigroup is a semigroup where the order of arguments to mappend does not matter. +license: BSD-3-Clause +license-file: LICENSE +author: Nathan "Taneb" van Doorn +maintainer: maintainer@obsidian.systems +copyright: Copyright (C) 2013 Nathan van Doorn, 2021–2022 Obsidian Systems LLC +category: Algebra, Data, Math +build-type: Simple +bug-reports: https://github.com/ObsidianSystems/commutative-semigroups/issues +extra-source-files: + ChangeLog.md + ReadMe.md + +source-repository head + type: git + location: https://github.com/ObsidianSystems/commutative-semigroups.git + +library + exposed-modules: Data.Semigroup.Commutative + Numeric.Product.Commutative + -- other-modules: + build-depends: base >= 4.6 && < 4.18, + containers >= 0.4 && < 0.7 + hs-source-dirs: src + default-language: Haskell2010 diff --git a/ghc-commutative-semigroups.changes b/ghc-commutative-semigroups.changes new file mode 100644 index 0000000..529ba31 --- /dev/null +++ b/ghc-commutative-semigroups.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Oct 6 00:28:45 UTC 2022 - Peter Simons + +- Add commutative-semigroups at version 0.1.0.0 revision 3. + diff --git a/ghc-commutative-semigroups.spec b/ghc-commutative-semigroups.spec new file mode 100644 index 0000000..5a31f79 --- /dev/null +++ b/ghc-commutative-semigroups.spec @@ -0,0 +1,95 @@ +# +# spec file for package ghc-commutative-semigroups +# +# 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 +# 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 commutative-semigroups +%global pkgver %{pkg_name}-%{version} +Name: ghc-%{pkg_name} +Version: 0.1.0.0 +Release: 0 +Summary: Commutative semigroups +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/3.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} + +%description +A commutative semigroup is a semigroup where the order of arguments to mappend +does not matter. + +%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}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +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 + +%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 ReadMe.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog