update to 0.11.0; subpackage fail

This commit is contained in:
Jens Petersen 2017-02-23 15:18:48 +09:00
parent 6a87d57763
commit 598c885536
3 changed files with 35 additions and 9 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/scotty-0.8.2.tar.gz
/scotty-0.9.0.tar.gz
/scotty-0.10.0.tar.gz
/scotty-0.11.0.tar.gz
/fail-4.9.0.0.tar.gz

View File

@ -1,26 +1,34 @@
# generated by cabal-rpm-0.11.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name scotty
%global pkgver %{pkg_name}-%{version}
%global fail fail-4.9.0.0
%global subpkgs %{fail}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.10.0
Release: 2%{?dist}
Summary: Haskell web framework inspired by Ruby's Sinatra
Version: 0.11.0
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{fail}/%{fail}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-rpm-macros-extra
# Begin cabal-rpm deps:
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-data-default-class-devel
#BuildRequires: ghc-fail-devel
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-mtl-devel
@ -68,17 +76,28 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cabal-tweak-dep-ver http-types '< 0.9' '< 0.10'
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{fail}
%endif
%global version %{main_version}
%prep
%setup -q -n %{pkgver} -a1
cabal-tweak-drop-dep nats
%build
%ghc_libs_build %{subpkgs}
%ghc_lib_build
%install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{subpkgs}
%check
@ -102,6 +121,10 @@ cabal-tweak-dep-ver http-types '< 0.9' '< 0.10'
%changelog
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 0.11.0-1
- update to 0.11.0
- subpackage fail
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1 +1,2 @@
1d301a77e8430760b5b37d8f7781fe51 scotty-0.10.0.tar.gz
SHA512 (fail-4.9.0.0.tar.gz) = 0b4e6111387768482ff10b8ee55ff0b3b04750d8def057b7935bef814902de4536d0825e18b95a342722735b29cf88aafec21eb3b2a75eb4f0c55aa7c6b80108
SHA512 (scotty-0.11.0.tar.gz) = 1ffa5fbd379baf85042d31e0edb6afd23610ebbeb10e5370468d9eb9dc8d396c5eb01e17822a158f7b997bc229aa99d78b24544b0d05f2ad3057ba3d55d742c6