This commit is contained in:
Jens Petersen 2019-03-10 13:14:05 +08:00
parent 2ae2c6fed0
commit 0062bfe613
4 changed files with 139 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/cabal-doctest-1.0.6.tar.gz

49
cabal-doctest-1.0.6.cabal Normal file
View File

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

88
ghc-cabal-doctest.spec Normal file
View File

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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (cabal-doctest-1.0.6.tar.gz) = f009c91f9e9d2406a2ccb7049d554291527dcb3846fd63828147e03fc4c893223929261745ab5a8fb036bcf16b3c286587d3de8daa0fff330fb3c2d6b25fa399