diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87cceb0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cabal-doctest-1.0.6.tar.gz diff --git a/cabal-doctest-1.0.6.cabal b/cabal-doctest-1.0.6.cabal new file mode 100644 index 0000000..6a20436 --- /dev/null +++ b/cabal-doctest-1.0.6.cabal @@ -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 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 +maintainer: Oleg Grenrus +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 diff --git a/ghc-cabal-doctest.spec b/ghc-cabal-doctest.spec new file mode 100644 index 0000000..36ef9bb --- /dev/null +++ b/ghc-cabal-doctest.spec @@ -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 + 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 - 1.0.6-1 +- spec file generated by cabal-rpm-0.13.1 diff --git a/sources b/sources new file mode 100644 index 0000000..6a8ab22 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cabal-doctest-1.0.6.tar.gz) = f009c91f9e9d2406a2ccb7049d554291527dcb3846fd63828147e03fc4c893223929261745ab5a8fb036bcf16b3c286587d3de8daa0fff330fb3c2d6b25fa399