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
This commit is contained in:
Peter Simons 2023-03-30 08:26:22 +00:00 committed by Git OBS Bridge
commit bc96ed3fa2
6 changed files with 158 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:661d41ac7fbab17bdc5ebb7eafeecc597616cc5a1c7fce1b07722aa8bc1a0618
size 3916

View File

@ -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, 20212022 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

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Oct 6 00:28:45 UTC 2022 - Peter Simons <psimons@suse.com>
- Add commutative-semigroups at version 0.1.0.0 revision 3.

View File

@ -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