1
0

osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-generically revision:7, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-generically?expand=0&rev=3
This commit is contained in:
Peter Simons 2023-03-30 08:26:23 +00:00 committed by Git OBS Bridge
parent 6bc19612e4
commit af355c7f15
5 changed files with 91 additions and 5 deletions

3
generically-0.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04c5a436bec4b041f71a733f56a1bd7f435f63dde8d3eb5c1f48d55b4dbc43cf
size 2870

View File

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

41
generically.cabal Normal file
View File

@ -0,0 +1,41 @@
cabal-version: 1.12
name: generically
version: 0.1.1
x-revision: 1
synopsis: Generically newtype to use with DerivingVia
description:
This is a compatibility package as @Generically@ and @Generically1@ newtypes
are available since @base-4.17@ in 'GHC.Generics'.
bug-reports: https://github.com/haskell-compat/generically/issues
author: Oleg Grenrus
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
copyright: 2022 Oleg Grenrus
license: BSD3
license-file: LICENSE
category: Generics
build-type: Simple
extra-source-files: CHANGELOG.md
tested-with:
GHC ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.7
|| ==9.4.4
|| ==9.6.1
source-repository head
type: git
location: https://github.com/haskell-compat/generically.git
library
default-language: Haskell2010
build-depends: base >=4.9 && <4.19
if impl(ghc >= 9.4) && !impl(ghc >= 9.6)
build-depends: base-orphans >=0.8.8 && <0.10
hs-source-dirs: src
exposed-modules: GHC.Generics.Generically

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Wed Mar 15 09:15:34 UTC 2023 - Peter Simons <psimons@suse.com>
- Update generically to version 0.1.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Fri Mar 10 12:05:51 UTC 2023 - Peter Simons <psimons@suse.com>
- Update generically to version 0.1.1.
# 0.1.1 -- 2023-03-10
* Backport `Eq` and `Ord` instances for `Generically1`, which were introduced
in `base-4.18.0.0`. To ensure that these instances are in scope when building
with `base-4.17.0.0` (in which `Generically1` is defined in `base`, not this
library), we also add a dependency on `base-orphans`.
-------------------------------------------------------------------
Wed Jun 15 12:10:55 UTC 2022 - Peter Simons <psimons@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-generically
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,14 +17,20 @@
%global pkg_name generically
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.1
Version: 0.1.1
Release: 0
Summary: Generically newtype to use with DerivingVia
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-base-devel
BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-base-orphans-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-rpm-macros
ExcludeArch: %{ix86}
@ -42,8 +48,25 @@ 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
@ -63,4 +86,9 @@ This package provides the Haskell %{pkg_name} library development files.
%files devel -f %{name}-devel.files
%doc CHANGELOG.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