diff --git a/ghc-socks.spec b/ghc-socks.spec index 08291d3..f880324 100644 --- a/ghc-socks.spec +++ b/ghc-socks.spec @@ -22,18 +22,16 @@ Version: 0.5.5 Release: 0 Summary: Socks proxy (version 5) implementation License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other 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 +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-cereal-devel BuildRequires: ghc-network-devel BuildRequires: ghc-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description Socks proxy (version 5) implementation. @@ -53,15 +51,12 @@ This package provides the Haskell %{pkg_name} library development files. %setup -q -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache @@ -74,6 +69,5 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc Example.hs README.md %changelog diff --git a/1.cabal b/socks.cabal similarity index 97% rename from 1.cabal rename to socks.cabal index 0c5c55a..998c0fb 100644 --- a/1.cabal +++ b/socks.cabal @@ -1,35 +1,35 @@ -Name: socks -Version: 0.5.5 -x-revision: 1 -Description: Socks proxy (version 5) implementation. -License: BSD3 -License-file: LICENSE -Copyright: Vincent Hanquez -Author: Vincent Hanquez -Maintainer: Vincent Hanquez -Synopsis: Socks proxy (version 5) implementation. -Build-Type: Simple -Category: Network -stability: experimental -Cabal-Version: >=1.6 -Homepage: http://github.com/vincenthz/hs-socks -extra-doc-files: README.md, Example.hs - -Library - -- Needs IsString Lazy.ByteString instance - Build-Depends: base >= 3 && < 5 - , bytestring >=0.10 && <0.11 - , cereal >= 0.3.1 - , network >= 2.3 - 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 - -source-repository head - type: git - location: git://github.com/vincenthz/hs-socks +Name: socks +Version: 0.5.5 +x-revision: 1 +Description: Socks proxy (version 5) implementation. +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: Vincent Hanquez +Synopsis: Socks proxy (version 5) implementation. +Build-Type: Simple +Category: Network +stability: experimental +Cabal-Version: >=1.6 +Homepage: http://github.com/vincenthz/hs-socks +extra-doc-files: README.md, Example.hs + +Library + -- Needs IsString Lazy.ByteString instance + Build-Depends: base >= 3 && < 5 + , bytestring >=0.10 && <0.11 + , cereal >= 0.3.1 + , network >= 2.3 + 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 + +source-repository head + type: git + location: git://github.com/vincenthz/hs-socks