2017-02-23 06:23:00 +00:00
|
|
|
# generated by cabal-rpm-0.11.1
|
2013-11-19 09:26:40 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name snap-server
|
2017-02-23 06:23:00 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2013-11-19 09:26:40 +00:00
|
|
|
|
2017-03-01 02:03:31 +00:00
|
|
|
%global iostreamshaproxy io-streams-haproxy-1.0.0.1
|
|
|
|
%global subpkgs %{iostreamshaproxy}
|
|
|
|
|
2017-02-27 00:45:07 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2013-11-19 09:26:40 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
2017-02-27 00:45:07 +00:00
|
|
|
Version: 1.0.1.1
|
2017-03-01 02:03:31 +00:00
|
|
|
# can only be reset when all subpkgs bumped
|
2017-08-02 21:32:37 +00:00
|
|
|
Release: 3%{?dist}
|
2017-02-27 00:45:07 +00:00
|
|
|
Summary: A web server for the Snap Framework
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
License: BSD
|
2015-01-20 13:19:44 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2017-02-23 06:23:00 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2017-03-01 02:03:31 +00:00
|
|
|
Source1: https://hackage.haskell.org/package/%{iostreamshaproxy}/%{iostreamshaproxy}.tar.gz
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2017-03-01 02:03:31 +00:00
|
|
|
BuildRequires: ghc-rpm-macros-extra
|
2013-11-19 09:26:40 +00:00
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-attoparsec-devel
|
|
|
|
BuildRequires: ghc-blaze-builder-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-case-insensitive-devel
|
2017-02-23 06:23:00 +00:00
|
|
|
BuildRequires: ghc-clock-devel
|
2013-11-19 09:26:40 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2017-02-23 06:23:00 +00:00
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
BuildRequires: ghc-io-streams-devel
|
2017-03-01 02:03:31 +00:00
|
|
|
#BuildRequires: ghc-io-streams-haproxy-devel
|
2017-02-23 06:23:00 +00:00
|
|
|
BuildRequires: ghc-lifted-base-devel
|
2013-11-19 09:26:40 +00:00
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-network-devel
|
|
|
|
BuildRequires: ghc-old-locale-devel
|
|
|
|
BuildRequires: ghc-snap-core-devel
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-time-devel
|
|
|
|
BuildRequires: ghc-unix-compat-devel
|
2014-06-10 08:59:49 +00:00
|
|
|
BuildRequires: ghc-unix-devel
|
2017-02-23 06:23:00 +00:00
|
|
|
BuildRequires: ghc-vector-devel
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-base16-bytestring-devel
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-http-common-devel
|
|
|
|
BuildRequires: ghc-http-streams-devel
|
|
|
|
BuildRequires: ghc-monad-control-devel
|
|
|
|
BuildRequires: ghc-parallel-devel
|
|
|
|
BuildRequires: ghc-random-devel
|
|
|
|
BuildRequires: ghc-test-framework-devel
|
|
|
|
BuildRequires: ghc-test-framework-hunit-devel
|
|
|
|
BuildRequires: ghc-test-framework-quickcheck2-devel
|
|
|
|
BuildRequires: ghc-threads-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
%endif
|
2013-11-19 09:26:40 +00:00
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
Snap is a simple and fast web development framework and server written in
|
|
|
|
Haskell. For more information, you can visit the Snap project website at
|
|
|
|
<http://snapframework.com/>.
|
|
|
|
|
2017-02-23 06:23:00 +00:00
|
|
|
The Snap HTTP server is a high performance web server library written in
|
|
|
|
Haskell. Together with the 'snap-core' library upon which it depends, it
|
|
|
|
provides a clean and efficient Haskell programming interface to the HTTP
|
|
|
|
protocol.
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
2017-03-01 02:03:31 +00:00
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
%ghc_lib_subpackage %{iostreamshaproxy}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
2013-11-19 09:26:40 +00:00
|
|
|
%prep
|
2017-03-01 02:03:31 +00:00
|
|
|
%setup -q -n %{pkgver} -a1
|
|
|
|
#cabal-tweak-dep-ver attoparsec '< 0.13' '< 0.14'
|
2017-02-27 00:45:07 +00:00
|
|
|
cabal-tweak-drop-dep bytestring-builder
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-03-01 02:03:31 +00:00
|
|
|
%ghc_libs_build %{subpkgs}
|
2013-11-19 09:26:40 +00:00
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-03-01 02:03:31 +00:00
|
|
|
%ghc_libs_install %{subpkgs}
|
2013-11-19 09:26:40 +00:00
|
|
|
%ghc_lib_install
|
2017-03-01 02:03:31 +00:00
|
|
|
%ghc_fix_rpath %{subpkgs}
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
|
2017-02-23 06:23:00 +00:00
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
|
2013-11-19 09:26:40 +00:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-02-15 06:38:59 +00:00
|
|
|
%license LICENSE
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2016-08-31 02:41:12 +00:00
|
|
|
%doc CONTRIBUTORS README.SNAP.md README.md
|
2013-11-19 09:26:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2017-08-02 21:32:37 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 09:56:47 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-27 00:45:07 +00:00
|
|
|
* Mon Feb 27 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.1-1
|
2017-02-23 06:23:00 +00:00
|
|
|
- update to 1.0.1.1
|
2017-03-01 02:03:31 +00:00
|
|
|
- subpackage io-streams-haproxy
|
2017-02-23 06:23:00 +00:00
|
|
|
|
2017-02-10 10:49:34 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-06-26 08:50:22 +00:00
|
|
|
* Sun Jun 26 2016 Jens Petersen <petersen@redhat.com> - 0.9.5.1-1
|
|
|
|
- update to 0.9.5.1
|
|
|
|
|
2016-02-03 21:44:44 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 07:59:34 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-20 13:19:44 +00:00
|
|
|
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.4.6-1
|
|
|
|
- update to 0.9.4.6
|
|
|
|
|
2014-09-01 09:44:02 +00:00
|
|
|
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.4.5-1
|
|
|
|
- update to 0.9.4.5
|
|
|
|
|
2014-08-16 15:52:59 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-10 08:59:49 +00:00
|
|
|
* Tue Jun 10 2014 Jens Petersen <petersen@redhat.com> - 0.9.3.4-3
|
|
|
|
- update to cblrpm-0.8.11
|
|
|
|
|
2014-06-07 15:18:01 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-19 09:26:40 +00:00
|
|
|
* Wed Oct 16 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.4-1
|
|
|
|
- 0.9.3.4
|
|
|
|
- add static provides to devel
|
|
|
|
|
|
|
|
* Thu Jun 27 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.3-1
|
|
|
|
- minor description tweaks and add CONTRIBUTORS
|
|
|
|
|
|
|
|
* Thu Jun 27 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.9.3.3-0
|
|
|
|
- spec file generated by cabal-rpm-0.8.2
|