diff --git a/ghc-socks.spec b/ghc-socks.spec index 0d91137..89abd4e 100644 --- a/ghc-socks.spec +++ b/ghc-socks.spec @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-basement-devel BuildRequires: ghc-bytestring-devel @@ -48,6 +49,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/socks.cabal b/socks.cabal new file mode 100644 index 0000000..eb77d67 --- /dev/null +++ b/socks.cabal @@ -0,0 +1,36 @@ +Name: socks +Version: 0.6.0 +x-revision: 1 +Synopsis: Socks proxy (ver 5) +Description: Socks proxy (version 5) implementation. +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: Vincent Hanquez +Build-Type: Simple +Category: Network +stability: experimental +Cabal-Version: 1.18 +Homepage: http://github.com/vincenthz/hs-socks +extra-doc-files: README.md, Example.hs + +Library + Build-Depends: base >= 3 && < 4.13 + , bytestring < 0.11 + , cereal >= 0.3.1 + , network >= 2.6 + , basement + Exposed-modules: Network.Socks5 + Network.Socks5.Lowlevel + Network.Socks5.Types + Other-modules: Network.Socks5.Wire + Network.Socks5.Conf + Network.Socks5.Command + Network.Socks5.Parse + ghc-options: -Wall -fno-warn-missing-signatures -fwarn-tabs + default-language: Haskell2010 + +source-repository head + type: git + location: git://github.com/vincenthz/hs-socks