diff --git a/ghc-optional-args.spec b/ghc-optional-args.spec index 5882985..b686eb8 100644 --- a/ghc-optional-args.spec +++ b/ghc-optional-args.spec @@ -13,6 +13,7 @@ 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: @@ -64,6 +65,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/optional-args-1.0.2.cabal b/optional-args-1.0.2.cabal new file mode 100644 index 0000000..7704ddb --- /dev/null +++ b/optional-args-1.0.2.cabal @@ -0,0 +1,29 @@ +Name: optional-args +Version: 1.0.2 +x-revision: 1 +Cabal-Version: >=1.10 +Build-Type: Simple +License: BSD3 +License-File: LICENSE +Copyright: 2015 Gabriel Gonzalez +Author: Gabriel Gonzalez +Maintainer: Gabriel439@gmail.com +Bug-Reports: https://github.com/Gabriel439/Haskell-Optional-Args-Library/issues +Synopsis: Optional function arguments +Description: This library provides a type for specifying `Optional` function + arguments + . + Read the tutorial in "Data.Optional" to learn more +Category: Data +Source-Repository head + Type: git + Location: https://github.com/Gabriel439/Haskell-Optional-Args-Library + +Library + HS-Source-Dirs: src + Build-Depends: base >= 4.5 && < 5 + if !impl(ghc >= 8.0) + Build-Depends: semigroups >= 0.16 && < 0.20 + Exposed-Modules: Data.Optional + GHC-Options: -O2 -Wall + Default-Language: Haskell2010