revise .cabal

This commit is contained in:
Jens Petersen 2022-06-18 00:21:41 +08:00
parent d4aa2276ed
commit 84639b28dc
2 changed files with 79 additions and 0 deletions

View File

@ -13,9 +13,11 @@ 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: dos2unix
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-HaXml-prof
@ -83,6 +85,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
chmod a-x examples/*
cabal-tweak-drop-dep mtl-compat

76
haxr-3000.11.4.1.cabal Normal file
View File

@ -0,0 +1,76 @@
Name: haxr
Version: 3000.11.4.1
x-revision: 2
Cabal-version: >=1.10
Build-type: Simple
Copyright: Bjorn Bringert, 2003-2006
License: BSD3
License-file: LICENSE
Author: Bjorn Bringert <bjorn@bringert.net>
Maintainer: Brent Yorgey <byorgey@gmail.com>
Homepage: http://www.haskell.org/haskellwiki/HaXR
Category: Network
Synopsis: XML-RPC client and server library.
Description:
HaXR is a library for writing XML-RPC
client and server applications in Haskell.
Extra-Source-Files:
CHANGES
examples/make-stubs.hs examples/parse_response.hs examples/Person.hs
examples/PersonTH.hs examples/person_client.hs examples/person_server.hs
examples/raw_call.hs examples/simple_client.hs examples/simple_server.hs
examples/test_client.hs examples/test_server.hs examples/time-xmlrpc-com.hs
examples/validate.hs examples/Makefile
Bug-reports: https://github.com/byorgey/haxr/issues
Tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.3 || ==8.10.1 || ==9.0.1 || ==9.2.1
Source-repository head
type: git
location: git://github.com/byorgey/haxr.git
flag network-uri
description: Get Network.URI from the network-uri package
default: True
Library
Build-depends: base >= 4.9 && < 4.17,
base-compat >= 0.8 && < 0.13,
mtl,
mtl-compat,
network < 3.2,
http-streams,
HsOpenSSL,
io-streams,
http-types,
HaXml >= 1.22 && < 1.26,
http-streams,
bytestring,
base64-bytestring,
old-locale,
old-time,
time,
text,
array,
utf8-string,
template-haskell,
blaze-builder >= 0.2 && < 0.5
if flag(network-uri)
build-depends: network-uri >= 2.6, network >= 2.6
else
build-depends: network-uri < 2.6, network < 2.6
Exposed-Modules:
Network.XmlRpc.Client,
Network.XmlRpc.Server,
Network.XmlRpc.Internals,
Network.XmlRpc.Introspect,
Network.XmlRpc.THDeriveXmlRpcType,
Network.XmlRpc.Pretty,
Network.XmlRpc.DTD_XMLRPC
Other-Modules:
Network.XmlRpc.Base64
Default-extensions: TypeSynonymInstances, FlexibleInstances
Other-extensions: OverloadedStrings, GeneralizedNewtypeDeriving, TemplateHaskell
Default-language: Haskell2010