update to 0.12.1
refresh to cabal-rpm-2.1.0 with SPDX migration
This commit is contained in:
parent
c3114f3a84
commit
e5b10332cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
||||
/scotty-0.11.5.tar.gz
|
||||
/scotty-0.11.6.tar.gz
|
||||
/scotty-0.12.tar.gz
|
||||
/scotty-0.12.1.tar.gz
|
||||
|
@ -1,4 +1,4 @@
|
||||
# generated by cabal-rpm-2.0.9
|
||||
# generated by cabal-rpm-2.1.0
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||
|
||||
%global pkg_name scotty
|
||||
@ -7,20 +7,40 @@
|
||||
# testsuite missing deps: hspec-wai
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.12
|
||||
Release: 4%{?dist}
|
||||
Version: 0.12.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
|
||||
|
||||
License: BSD
|
||||
License: BSD-3-Clause
|
||||
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: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-aeson-devel
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-compat-batteries-devel
|
||||
BuildRequires: ghc-blaze-builder-devel
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-case-insensitive-devel
|
||||
BuildRequires: ghc-data-default-class-devel
|
||||
BuildRequires: ghc-exceptions-devel
|
||||
BuildRequires: ghc-http-types-devel
|
||||
BuildRequires: ghc-monad-control-devel
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-network-devel
|
||||
BuildRequires: ghc-regex-compat-devel
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-transformers-base-devel
|
||||
BuildRequires: ghc-transformers-compat-devel
|
||||
BuildRequires: ghc-wai-devel
|
||||
BuildRequires: ghc-wai-extra-devel
|
||||
BuildRequires: ghc-warp-devel
|
||||
%if %{with ghc_prof}
|
||||
BuildRequires: ghc-aeson-prof
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-base-compat-batteries-prof
|
||||
@ -41,6 +61,7 @@ BuildRequires: ghc-transformers-compat-prof
|
||||
BuildRequires: ghc-wai-prof
|
||||
BuildRequires: ghc-wai-extra-prof
|
||||
BuildRequires: ghc-warp-prof
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
@ -95,10 +116,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
||||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
cabal-tweak-drop-dep fail
|
||||
cabal-tweak-drop-dep nats
|
||||
|
||||
|
||||
%build
|
||||
@ -135,6 +153,10 @@ cabal-tweak-drop-dep nats
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 0.12.1-1
|
||||
- https://hackage.haskell.org/package/scotty-0.12.1/changelog
|
||||
- refresh to cabal-rpm-2.1.0 with SPDX migration
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
@ -1,140 +0,0 @@
|
||||
Name: scotty
|
||||
Version: 0.12
|
||||
x-revision: 6
|
||||
Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
|
||||
Homepage: https://github.com/scotty-web/scotty
|
||||
Bug-reports: https://github.com/scotty-web/scotty/issues
|
||||
License: BSD3
|
||||
License-file: LICENSE
|
||||
Author: Andrew Farmer <xichekolas@gmail.com>
|
||||
Maintainer: Andrew Farmer <xichekolas@gmail.com>
|
||||
Copyright: (c) 2012-Present Andrew Farmer
|
||||
Category: Web
|
||||
Stability: experimental
|
||||
Build-type: Simple
|
||||
Cabal-version: >= 1.10
|
||||
Description:
|
||||
A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp.
|
||||
.
|
||||
@
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
.
|
||||
import Web.Scotty
|
||||
.
|
||||
import Data.Monoid (mconcat)
|
||||
.
|
||||
main = scotty 3000 $
|
||||
  get "/:word" $ do
|
||||
    beam <- param "word"
|
||||
    html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
|
||||
@
|
||||
.
|
||||
.
|
||||
Scotty is the cheap and cheerful way to write RESTful, declarative web applications.
|
||||
.
|
||||
* A page is as simple as defining the verb, url pattern, and Text content.
|
||||
.
|
||||
* It is template-language agnostic. Anything that returns a Text value will do.
|
||||
.
|
||||
* Conforms to WAI Application interface.
|
||||
.
|
||||
* Uses very fast Warp webserver by default.
|
||||
.
|
||||
As for the name: Sinatra + Warp = Scotty.
|
||||
.
|
||||
[WAI] <http://hackage.haskell.org/package/wai>
|
||||
.
|
||||
[Warp] <http://hackage.haskell.org/package/warp>
|
||||
tested-with: GHC == 7.6.3
|
||||
, GHC == 7.8.4
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
, GHC == 8.4.4
|
||||
, GHC == 8.6.5
|
||||
, GHC == 8.8.3
|
||||
, GHC == 8.10.1
|
||||
Extra-source-files:
|
||||
README.md
|
||||
changelog.md
|
||||
examples/404.html
|
||||
examples/LICENSE
|
||||
examples/*.hs
|
||||
examples/static/jquery.js
|
||||
examples/static/jquery-json.js
|
||||
examples/uploads/.keep
|
||||
|
||||
Library
|
||||
Exposed-modules: Web.Scotty
|
||||
Web.Scotty.Trans
|
||||
Web.Scotty.Internal.Types
|
||||
other-modules: Web.Scotty.Action
|
||||
Web.Scotty.Route
|
||||
Web.Scotty.Util
|
||||
default-language: Haskell2010
|
||||
build-depends: aeson >= 0.6.2.1 && < 2.1,
|
||||
base >= 4.6 && < 5,
|
||||
base-compat-batteries >= 0.10 && < 0.13,
|
||||
blaze-builder >= 0.3.3.0 && < 0.5,
|
||||
bytestring >= 0.10.0.2 && < 0.12,
|
||||
case-insensitive >= 1.0.0.1 && < 1.3,
|
||||
data-default-class >= 0.0.1 && < 0.2,
|
||||
exceptions >= 0.7 && < 0.11,
|
||||
fail,
|
||||
http-types >= 0.9.1 && < 0.13,
|
||||
monad-control >= 1.0.0.3 && < 1.1,
|
||||
mtl >= 2.1.2 && < 2.3,
|
||||
nats >= 0.1 && < 2,
|
||||
network >= 2.6.0.2 && < 3.2,
|
||||
regex-compat >= 0.95.1 && < 0.96,
|
||||
text >= 0.11.3.1 && < 1.3,
|
||||
transformers >= 0.3.0.0 && < 0.6,
|
||||
transformers-base >= 0.4.1 && < 0.5,
|
||||
transformers-compat >= 0.4 && < 0.8,
|
||||
wai >= 3.0.0 && < 3.3,
|
||||
wai-extra >= 3.0.0 && < 3.2,
|
||||
warp >= 3.0.13 && < 3.4
|
||||
|
||||
GHC-options: -Wall -fno-warn-orphans
|
||||
|
||||
test-suite spec
|
||||
main-is: Spec.hs
|
||||
other-modules: Web.ScottySpec
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
hs-source-dirs: test
|
||||
build-depends: async,
|
||||
base,
|
||||
bytestring,
|
||||
data-default-class,
|
||||
directory,
|
||||
hspec == 2.*,
|
||||
hspec-wai >= 0.6.3,
|
||||
http-types,
|
||||
lifted-base,
|
||||
network,
|
||||
scotty,
|
||||
text,
|
||||
wai
|
||||
build-tool-depends: hspec-discover:hspec-discover == 2.*
|
||||
GHC-options: -Wall -threaded -fno-warn-orphans
|
||||
|
||||
benchmark weigh
|
||||
main-is: Main.hs
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
hs-source-dirs: bench
|
||||
build-depends: base,
|
||||
scotty,
|
||||
lucid,
|
||||
bytestring,
|
||||
mtl,
|
||||
text,
|
||||
transformers,
|
||||
data-default-class,
|
||||
weigh == 0.0.16
|
||||
GHC-options: -Wall -O2 -threaded
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/scotty-web/scotty.git
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (scotty-0.12.tar.gz) = 3b3ed247af8f8fa7ab4d683d08b4634f7c0b78f96b954973cb1de721de3904cc25120af93020789020ef855763b51faa85cf3529960a2053fe1dc044f535a3db
|
||||
SHA512 (scotty-0.12.1.tar.gz) = 823c6b22c9d0e2034df0630efe68efd0cccd7e5305a527b64b2f73d3f1794f7fdf50b9e60989b546772cc99214cb6121954b3b3928d26081ab5d23c98832bd13
|
||||
|
Loading…
Reference in New Issue
Block a user