import (#1684620)
This commit is contained in:
parent
2ae2c6fed0
commit
0062bfe613
|
@ -0,0 +1 @@
|
|||
/cabal-doctest-1.0.6.tar.gz
|
|
@ -0,0 +1,49 @@
|
|||
name: cabal-doctest
|
||||
version: 1.0.6
|
||||
x-revision: 2
|
||||
synopsis: A Setup.hs helper for doctests running
|
||||
description:
|
||||
Currently (beginning of 2017), there isn't @cabal doctest@
|
||||
command. Yet, to properly work doctest needs plenty of configuration.
|
||||
This library provides the common bits for writing custom Setup.hs
|
||||
|
||||
See <https://github.com/haskell/cabal/issues/2327 Cabal/2327> for the progress
|
||||
of @cabal doctest@, i.e. whether this library is obsolete.
|
||||
|
||||
homepage: https://github.com/phadej/cabal-doctest
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Oleg Grenrus <oleg.grenrus@iki.fi>
|
||||
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
|
||||
copyright: (c) 2017 Oleg Grenrus
|
||||
category: Distribution
|
||||
build-type: Simple
|
||||
cabal-version: >=1.10
|
||||
extra-source-files: ChangeLog.md README.md
|
||||
tested-with:
|
||||
GHC==7.0.4,
|
||||
GHC==7.2.2,
|
||||
GHC==7.4.2,
|
||||
GHC==7.6.3,
|
||||
GHC==7.8.4,
|
||||
GHC==7.10.3,
|
||||
GHC==8.0.2,
|
||||
GHC==8.2.2,
|
||||
GHC==8.4.3,
|
||||
GHC==8.6.1
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/phadej/cabal-doctest
|
||||
|
||||
library
|
||||
exposed-modules: Distribution.Extra.Doctest
|
||||
other-modules:
|
||||
other-extensions:
|
||||
build-depends:
|
||||
base >=4.3 && <4.13,
|
||||
Cabal >= 1.10 && <2.5,
|
||||
filepath,
|
||||
directory
|
||||
hs-source-dirs: src
|
||||
default-language: Haskell2010
|
|
@ -0,0 +1,88 @@
|
|||
# generated by cabal-rpm-0.13.1
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name cabal-doctest
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.0.6
|
||||
Release: 1%{?dist}
|
||||
Summary: A Setup.hs helper for doctests running
|
||||
|
||||
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-directory-devel
|
||||
BuildRequires: ghc-filepath-devel
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
Currently (beginning of 2017), there isn't 'cabal doctest' command.
|
||||
Yet, to properly work doctest needs plenty of configuration. This library
|
||||
provides the common bits for writing custom Setup.hs See
|
||||
<https://github.com/haskell/cabal/issues/2327 Cabal/2327> for the progress of
|
||||
'cabal doctest', i.e. whether this library is obsolete.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
%if %{defined ghc_version}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
%endif
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
|
||||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# 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
|
||||
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%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
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Mar 1 2019 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.0.6-1
|
||||
- spec file generated by cabal-rpm-0.13.1
|
Loading…
Reference in New Issue