2015-05-04 21:01:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-network-uri
|
|
|
|
#
|
2017-02-22 19:16:58 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-05-04 21:01:27 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-05-05 06:02:51 +02:00
|
|
|
|
2015-05-04 21:01:27 +02:00
|
|
|
%global pkg_name network-uri
|
|
|
|
%bcond_with tests
|
2016-07-18 00:29:40 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2016-03-22 09:29:10 +01:00
|
|
|
Version: 2.6.1.0
|
2015-05-04 21:01:27 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: URI manipulation
|
2015-05-05 06:02:51 +02:00
|
|
|
License: BSD-3-Clause
|
2016-10-06 20:32:09 +02:00
|
|
|
Group: Development/Languages/Other
|
2015-05-04 21:01:27 +02:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-07-18 00:29:40 +02:00
|
|
|
BuildRequires: ghc-deepseq-devel
|
2015-05-04 21:01:27 +02:00
|
|
|
BuildRequires: ghc-parsec-devel
|
2016-07-18 00:29:40 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-05-04 21:01:27 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-test-framework-devel
|
|
|
|
BuildRequires: ghc-test-framework-hunit-devel
|
|
|
|
BuildRequires: ghc-test-framework-quickcheck2-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2016-07-18 00:29:40 +02:00
|
|
|
This package provides an URI manipulation interface.
|
2015-05-04 21:01:27 +02:00
|
|
|
|
|
|
|
In network-2.6 the 'Network.URI' module was split off from the network package
|
|
|
|
into this package. If you're using the 'Network.URI' module you can
|
|
|
|
automatically get it from the right package by adding this to your .cabal 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 network < 2.6 or from network-uri >= 2.6.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Group: Development/Libraries/Other
|
2016-07-18 00:29:40 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-05-04 21:01:27 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%check
|
2016-10-06 20:32:09 +02:00
|
|
|
%cabal_test
|
2016-07-18 00:29:40 +02:00
|
|
|
|
2015-05-04 21:01:27 +02:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%changelog
|