This commit is contained in:
Jens Petersen 2021-03-23 10:29:28 +08:00
parent b3b717cea3
commit dfcee7254b
4 changed files with 163 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/singleton-bool-0.1.5.tar.gz

110
ghc-singleton-bool.spec Normal file
View File

@ -0,0 +1,110 @@
# generated by cabal-rpm-2.0.7
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name singleton-bool
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.1.5
Release: 1%{?dist}
Summary: Type level booleans
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-prof
BuildRequires: ghc-dec-prof
# End cabal-rpm deps
%description
Type level booleans.
'singletons' package provides similar functionality, but it has tight
dependency constraints.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
BuildArch: noarch
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
chmod a-x CHANGELOG.md README.md
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_lib_install
# End cabal-rpm install
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files
%doc CHANGELOG.md README.md
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
%changelog
* Tue Feb 2 2021 Jens Petersen <petersen@redhat.com> - 0.1.5-1
- spec file generated by cabal-rpm-2.0.7

View File

@ -0,0 +1,51 @@
cabal-version: >=1.10
name: singleton-bool
version: 0.1.5
x-revision: 2
synopsis: Type level booleans
description:
Type level booleans.
.
@singletons@ package provides similar functionality,
but it has tight dependency constraints.
category: Web
homepage: https://github.com/phadej/singleton-bool#readme
bug-reports: https://github.com/phadej/singleton-bool/issues
author: Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
license: BSD3
license-file: LICENSE
build-type: Simple
tested-with:
GHC ==7.6.3
|| ==7.8.4
|| ==7.10.3
|| ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.3
|| ==8.10.1
extra-source-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/phadej/singleton-bool
library
hs-source-dirs: src
ghc-options: -Wall
build-depends: base >=4.6 && <4.15
if impl(ghc >=7.8)
build-depends: dec >=0.0.3 && <0.1
exposed-modules: Data.Singletons.Bool
default-language: Haskell2010
if !impl(ghc >=7.8)
build-depends: tagged >=0.8.5 && <0.9

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (singleton-bool-0.1.5.tar.gz) = a2b70137f598026d0b330a5ee8265f07056e2073544f62b60cba7fec2345796f5b0d295536a536877bcb01439401047a026d8234531e27431e38701711d5df1a