2020-06-16 12:57:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-wai-extra
|
|
|
|
#
|
2024-01-13 23:00:59 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-06-16 12:57:54 +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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name wai-extra
|
2023-03-30 10:26:52 +02:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2020-06-16 12:57:54 +02:00
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2024-05-15 19:47:37 +02:00
|
|
|
Version: 3.1.15
|
2020-06-16 12:57:54 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Provides some basic WAI handlers and middleware
|
|
|
|
License: MIT
|
|
|
|
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
|
2020-09-23 09:54:22 +02:00
|
|
|
BuildRequires: ghc-HUnit-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-HUnit-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-aeson-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-aeson-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-ansi-terminal-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-ansi-terminal-prof
|
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-base64-bytestring-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-base64-bytestring-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-bytestring-prof
|
2020-09-23 09:54:22 +02:00
|
|
|
BuildRequires: ghc-call-stack-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-call-stack-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-case-insensitive-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-case-insensitive-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-containers-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-containers-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-cookie-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-cookie-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-data-default-class-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-data-default-class-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-directory-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-directory-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-fast-logger-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-fast-logger-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-http-types-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-http-types-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-iproute-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-iproute-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-network-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-network-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-resourcet-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-resourcet-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-streaming-commons-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-streaming-commons-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-text-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-text-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-time-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-time-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-transformers-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-transformers-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-unix-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-unix-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-vault-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-vault-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-wai-devel
|
|
|
|
BuildRequires: ghc-wai-logger-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-wai-logger-prof
|
|
|
|
BuildRequires: ghc-wai-prof
|
2023-01-18 13:10:56 +01:00
|
|
|
BuildRequires: ghc-warp-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-warp-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
BuildRequires: ghc-word8-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-word8-prof
|
2020-12-19 18:49:32 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2020-06-16 12:57:54 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-hspec-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-hspec-prof
|
2022-06-29 14:18:29 +02:00
|
|
|
BuildRequires: ghc-temporary-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-temporary-prof
|
2021-01-19 22:48:08 +01:00
|
|
|
BuildRequires: ghc-zlib-devel
|
2023-03-30 10:26:52 +02:00
|
|
|
BuildRequires: ghc-zlib-prof
|
2020-06-16 12:57:54 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides basic WAI handler and middleware functionality:
|
|
|
|
|
|
|
|
* WAI Testing Framework
|
|
|
|
|
|
|
|
Hspec testing facilities and helpers for WAI.
|
|
|
|
|
|
|
|
* Event Source/Event Stream
|
|
|
|
|
|
|
|
Send server events to the client. Compatible with the JavaScript EventSource
|
|
|
|
API.
|
|
|
|
|
|
|
|
* Accept Override
|
|
|
|
|
|
|
|
Override the Accept header in a request. Special handling for the _accept query
|
|
|
|
parameter (which is used throughout WAI override the Accept header).
|
|
|
|
|
|
|
|
* Add Headers
|
|
|
|
|
|
|
|
WAI Middleware for adding arbitrary headers to an HTTP request.
|
|
|
|
|
|
|
|
* Clean Path
|
|
|
|
|
|
|
|
Clean a request path to a canonical form.
|
|
|
|
|
2023-01-18 13:10:56 +01:00
|
|
|
* Combine Headers
|
|
|
|
|
|
|
|
Combine duplicate headers into one.
|
|
|
|
|
2020-06-16 12:57:54 +02:00
|
|
|
* GZip Compression
|
|
|
|
|
|
|
|
Negotiate HTTP payload gzip compression.
|
|
|
|
|
2022-06-29 14:18:29 +02:00
|
|
|
* Health check endpoint
|
|
|
|
|
|
|
|
Add an empty health check endpoint.
|
|
|
|
|
2020-06-16 12:57:54 +02:00
|
|
|
* HTTP Basic Authentication
|
|
|
|
|
|
|
|
WAI Basic Authentication Middleware which uses Authorization header.
|
|
|
|
|
|
|
|
* JSONP
|
|
|
|
|
|
|
|
"JSON with Padding" middleware. Automatic wrapping of JSON responses to convert
|
|
|
|
into JSONP.
|
|
|
|
|
|
|
|
* Method Override / Post
|
|
|
|
|
|
|
|
Allows overriding of the HTTP request method via the _method query string
|
|
|
|
parameter.
|
|
|
|
|
|
|
|
* Request Logging
|
|
|
|
|
|
|
|
Request logging middleware for development and production environments
|
|
|
|
|
|
|
|
* Request Rewrite
|
|
|
|
|
|
|
|
Rewrite request path info based on a custom conversion rules.
|
|
|
|
|
2022-06-29 14:18:29 +02:00
|
|
|
* Select
|
|
|
|
|
|
|
|
Dynamically choose between Middlewares.
|
|
|
|
|
2020-06-16 12:57:54 +02:00
|
|
|
* Stream Files
|
|
|
|
|
|
|
|
Convert ResponseFile type responses into ResponseStream type.
|
|
|
|
|
|
|
|
* Virtual Host
|
|
|
|
|
|
|
|
Redirect incoming requests to a new host based on custom rules.
|
|
|
|
|
|
|
|
API docs and the README are available at
|
|
|
|
<http://www.stackage.org/package/wai-extra>.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
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.
|
|
|
|
|
2023-03-30 10:26:52 +02:00
|
|
|
%package -n ghc-%{pkg_name}-doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
|
|
Requires: ghc-filesystem
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
|
|
|
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
2020-06-16 12:57:54 +02:00
|
|
|
%prep
|
2020-08-19 03:02:30 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2020-06-16 12:57:54 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%doc ChangeLog.md README.md
|
|
|
|
|
2023-03-30 10:26:52 +02:00
|
|
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
|
|
|
|
2020-06-16 12:57:54 +02:00
|
|
|
%changelog
|