Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046680
en ru br
ALT Linux repos
S:2.6.3.0-alt1

Group :: Development/Haskell
RPM: ghc8.6.4-network-uri

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ghc_version 8.6.4
%define hsc_name ghc
%define hsc_version %ghc_version
%define hsc_namever %hsc_name%hsc_version
%define h_pkg_name network-uri
%define f_pkg_name network-uri
%define pkg_libdir %_libdir/%hsc_name-%hsc_version/%h_pkg_name-%version

Name: %hsc_namever-%f_pkg_name
Version: 2.6.1.0
Release: alt1
License: BSD3
Packager: Evgeny Sinelnikov <sin at altlinux.org>
Group: Development/Haskell
Url: https://github.com/haskell/network-uri
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Summary: URI manipulation

BuildPreReq: haskell(abi) = %ghc_version


%description
This package provides facilities for parsing and unparsing URIs, and
creating and resolving relative URI references, closely following the URI
spec, <http://www.ietf.org/rfc/rfc3986.txt IETF RFC 3986>.

== Backward-compatibility

In  at network-2.6 at  the "Network.URI" module was split off from the  at network at
package into this package. If you're using the "Network.URI" module you can
be backward compatible and automatically get it from the right package by
using the </package/network-uri-flag network-uri-flag pseudo-package> in
your  at .cabal at  file's build-depends (along with dependencies for both
at network-uri at  and  at network at ):

> build-depends: > network-uri-flag == 0.1.*

Or you can do the same manually by adding this boilerplate to your  at .cabal at
file:

> flag network-uri > description: Get Network.URI from the network-uri
package > default: True > > library > -- ... > if flag(network-uri) >
build-depends: network-uri >= 2.6, network >= 2.6 > else > build-depends:
network-uri < 2.6, network < 2.6

That is, get the module from either  at network < 2.6 at  or from  at network-uri >=
2.6 at .

%prep
%setup
%patch -p1

%build
%hs_configure2
%hs_build

%install
%hs_install
%hs_gen_filelist

%files -f %name-files.all

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin