Blame ghc-http-client-restricted.spec

82dafe4
# generated by cabal-rpm-2.0.5.1
82dafe4
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
82dafe4
82dafe4
%global pkg_name http-client-restricted
82dafe4
%global pkgver %{pkg_name}-%{version}
82dafe4
82dafe4
Name:           ghc-%{pkg_name}
82dafe4
Version:        0.0.3
82dafe4
Release:        1%{?dist}
82dafe4
Summary:        Restricting the servers that http-client will use
82dafe4
82dafe4
License:        MIT
82dafe4
Url:            https://hackage.haskell.org/package/%{pkg_name}
82dafe4
# Begin cabal-rpm sources:
82dafe4
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
82dafe4
# End cabal-rpm sources
82dafe4
82dafe4
# Begin cabal-rpm deps:
82dafe4
BuildRequires:  ghc-Cabal-devel
82dafe4
BuildRequires:  ghc-rpm-macros
82dafe4
BuildRequires:  ghc-base-prof
82dafe4
BuildRequires:  ghc-connection-prof
82dafe4
BuildRequires:  ghc-data-default-prof
82dafe4
BuildRequires:  ghc-http-client-prof
82dafe4
BuildRequires:  ghc-http-client-tls-prof
82dafe4
BuildRequires:  ghc-network-prof
82dafe4
BuildRequires:  ghc-network-bsd-prof
82dafe4
BuildRequires:  ghc-utf8-string-prof
82dafe4
# End cabal-rpm deps
82dafe4
82dafe4
%description
82dafe4
Addition to the http-client and http-client-tls libraries, that restricts the
82dafe4
HTTP servers that can be used.
82dafe4
82dafe4
This is useful when a security policy needs to eg, prevent connections to HTTP
82dafe4
servers on localhost or a local network, or only allow connections to a
82dafe4
specific HTTP server.
82dafe4
82dafe4
It handles restricting redirects as well as the initial HTTP connection, and it
82dafe4
also guards against DNS poisoning attacks.
82dafe4
82dafe4
82dafe4
%package devel
82dafe4
Summary:        Haskell %{pkg_name} library development files
82dafe4
Provides:       %{name}-static = %{version}-%{release}
82dafe4
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
82dafe4
%if %{defined ghc_version}
82dafe4
Requires:       ghc-compiler = %{ghc_version}
82dafe4
%endif
82dafe4
Requires:       %{name}%{?_isa} = %{version}-%{release}
82dafe4
82dafe4
%description devel
82dafe4
This package provides the Haskell %{pkg_name} library
82dafe4
development files.
82dafe4
82dafe4
82dafe4
%if %{with haddock}
82dafe4
%package doc
82dafe4
Summary:        Haskell %{pkg_name} library documentation
82dafe4
BuildArch:      noarch
82dafe4
82dafe4
%description doc
82dafe4
This package provides the Haskell %{pkg_name} library
82dafe4
documentation.
82dafe4
%endif
82dafe4
82dafe4
82dafe4
%if %{with ghc_prof}
82dafe4
%package prof
82dafe4
Summary:        Haskell %{pkg_name} profiling library
82dafe4
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
82dafe4
Supplements:    (%{name}-devel and ghc-prof)
82dafe4
82dafe4
%description prof
82dafe4
This package provides the Haskell %{pkg_name} profiling library.
82dafe4
%endif
82dafe4
82dafe4
82dafe4
%prep
82dafe4
# Begin cabal-rpm setup:
82dafe4
%setup -q -n %{pkgver}
82dafe4
# End cabal-rpm setup
82dafe4
82dafe4
82dafe4
%build
82dafe4
# Begin cabal-rpm build:
82dafe4
%ghc_lib_build
82dafe4
# End cabal-rpm build
82dafe4
82dafe4
82dafe4
%install
82dafe4
# Begin cabal-rpm install
82dafe4
%ghc_lib_install
82dafe4
# End cabal-rpm install
82dafe4
82dafe4
82dafe4
%files -f %{name}.files
82dafe4
# Begin cabal-rpm files:
82dafe4
%license LICENSE
82dafe4
# End cabal-rpm files
82dafe4
82dafe4
82dafe4
%files devel -f %{name}-devel.files
82dafe4
%doc CHANGELOG
82dafe4
82dafe4
82dafe4
%if %{with haddock}
82dafe4
%files doc -f %{name}-doc.files
82dafe4
%license LICENSE
82dafe4
%endif
82dafe4
82dafe4
82dafe4
%if %{with ghc_prof}
82dafe4
%files prof -f %{name}-prof.files
82dafe4
%endif
82dafe4
82dafe4
82dafe4
%changelog
82dafe4
* Tue Sep  8 2020 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.0.3-1
82dafe4
- spec file generated by cabal-rpm-2.0.5.1