847a466
# generated by cabal-rpm-0.10.1
2035995
# https://fedoraproject.org/wiki/Packaging:Haskell
2035995
2035995
%global pkg_name snap-core
847a466
%global pkgver %{pkg_name}-%{version}
ebf345b
# https://bugzilla.redhat.com/show_bug.cgi?id=1256057
847a466
%global subpkgver time-locale-compat-0.1.1.3
2035995
2035995
Name:           ghc-%{pkg_name}
e81081a
Version:        0.9.8.0
91f47a8
Release:        2%{?dist}
a26ad1c
Summary:        Snap web framework core library
2035995
2035995
License:        BSD
b4e490f
Url:            https://hackage.haskell.org/package/%{pkg_name}
847a466
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
847a466
Source1:        http://hackage.haskell.org/package/%{subpkgver}/%{subpkgver}.tar.gz
06b2347
2035995
BuildRequires:  ghc-Cabal-devel
847a466
BuildRequires:  ghc-rpm-macros-extra >= 1.6.7
06b2347
# Begin cabal-rpm deps:
06b2347
BuildRequires:  ghc-HUnit-devel
06b2347
BuildRequires:  ghc-MonadCatchIO-transformers-devel
06b2347
BuildRequires:  ghc-attoparsec-devel
06b2347
BuildRequires:  ghc-attoparsec-enumerator-devel
06b2347
BuildRequires:  ghc-blaze-builder-devel
06b2347
BuildRequires:  ghc-blaze-builder-enumerator-devel
06b2347
BuildRequires:  ghc-bytestring-devel
06b2347
BuildRequires:  ghc-case-insensitive-devel
06b2347
BuildRequires:  ghc-containers-devel
06b2347
BuildRequires:  ghc-deepseq-devel
06b2347
BuildRequires:  ghc-directory-devel
06b2347
BuildRequires:  ghc-enumerator-devel
06b2347
BuildRequires:  ghc-filepath-devel
667bfff
BuildRequires:  ghc-hashable-devel
06b2347
BuildRequires:  ghc-mtl-devel
06b2347
BuildRequires:  ghc-random-devel
06b2347
BuildRequires:  ghc-regex-posix-devel
06b2347
BuildRequires:  ghc-text-devel
06b2347
BuildRequires:  ghc-time-devel
6e2706d
#BuildRequires:  ghc-time-locale-compat-devel
06b2347
BuildRequires:  ghc-unix-compat-devel
06b2347
BuildRequires:  ghc-unordered-containers-devel
06b2347
BuildRequires:  ghc-vector-devel
06b2347
BuildRequires:  ghc-zlib-enum-devel
06b2347
# End cabal-rpm deps
f48bc5f
Patch1:         snap-core-0.9.2.2-portable-flag.patch
2035995
2035995
%description
a26ad1c
Snap is a simple and fast web development framework and server written
a26ad1c
in Haskell.  This library contains the core definitions and types for
a26ad1c
the Snap framework.
a26ad1c
a26ad1c
a26ad1c
%package devel
a26ad1c
Summary:        Haskell %{pkg_name} library development files
991ead5
Provides:       %{name}-static = %{version}-%{release}
a26ad1c
Requires:       ghc-compiler = %{ghc_version}
a26ad1c
Requires(post): ghc-compiler = %{ghc_version}
a26ad1c
Requires(postun): ghc-compiler = %{ghc_version}
991ead5
Requires:       %{name}%{?_isa} = %{version}-%{release}
a26ad1c
a26ad1c
%description devel
a26ad1c
This package provides the Haskell %{pkg_name} library development files.
2035995
2035995
847a466
%global main_version %{version}
847a466
847a466
%if %{defined ghclibdir}
847a466
%ghc_lib_subpackage %{subpkgver}
847a466
%endif
847a466
847a466
%global version %{main_version}
847a466
847a466
2035995
%prep
e81081a
%setup -q -c -n %{pkg_name}-%{version} -a1
353fd3c
cd %{pkg_name}-%{version}
f48bc5f
%patch1 -p1 -b .orig
2035995
2035995
2035995
%build
847a466
%ghc_libs_build %{subpkgver} %{pkgver}
2035995
2035995
2035995
%install
847a466
%ghc_libs_install %{subpkgver} %{pkgver}
2035995
2035995
a26ad1c
%post devel
a26ad1c
%ghc_pkg_recache
2035995
2035995
a26ad1c
%postun devel
a26ad1c
%ghc_pkg_recache
2035995
2035995
a26ad1c
%files -f %{name}.files
2035995
a26ad1c
a26ad1c
%files devel -f %{name}-devel.files
847a466
%doc %{pkgver}/README.SNAP.md %{pkgver}/README.md
2035995
2035995
2035995
%changelog
91f47a8
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-2
91f47a8
- rebuild
91f47a8
3d04b8a
* Thu Aug 25 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-1
3d04b8a
- update to 0.9.8.0
e81081a
5f16589
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6.4-3
5f16589
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5f16589
16a6ce2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.4-2
16a6ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
16a6ce2
b4e490f
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.6.4-1
b4e490f
- update to 0.9.6.4
b4e490f
991ead5
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.6.3-1
991ead5
- update to 0.9.6.3
991ead5
- refresh to clrpm-0.8.11
991ead5
3628a45
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-4
3628a45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3628a45
91096d7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-3
91096d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
91096d7
f90c024
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-2
f90c024
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f90c024
667bfff
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 0.9.4.0-1
667bfff
- update to 0.9.4.0
a26ad1c
- update to new simplified Haskell Packaging Guidelines
a26ad1c
d4f06d6
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-1
d4f06d6
- update to 0.9.3.1
d4f06d6
e07f526
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2.2-2
e07f526
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e07f526
06b2347
* Mon Oct 29 2012 Jens Petersen <petersen@redhat.com> - 0.9.2.2-1
06b2347
- update to 0.9.2.2
f48bc5f
- compile in portable cross-platform mode until bytestring-mmap packaged
06b2347
ce60168
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
ce60168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ce60168
8a2d1f6
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-3
8a2d1f6
- change prof BRs to devel
8a2d1f6
4592089
* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-2
4592089
- rebuild
4592089
5d9ff9f
* Thu Jun 21 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-1
5d9ff9f
- update to 0.9.0
5d9ff9f
d69d810
* Fri Jun 15 2012 Jens Petersen <petersen@redhat.com> - 0.8.1-2
d69d810
- rebuild
d69d810
afdd8a2
* Tue May  1 2012 Jens Petersen <petersen@redhat.com> - 0.8.1-1
afdd8a2
- update to 0.8.1
afdd8a2
11c5e03
* Fri Mar 23 2012 Jens Petersen <petersen@redhat.com> - 0.8.0.1-1
11c5e03
- update to 0.8.0.1
11c5e03
- mwc-random version patch no longer needed
11c5e03
e5949a6
* Thu Mar  8 2012 Jens Petersen <petersen@redhat.com> - 0.7.0.1-2
e5949a6
- rebuild
e5949a6
2035995
* Mon Jan 16 2012 Jens Petersen <petersen@redhat.com> - 0.7.0.1-1
b5dfb8d
- update to 0.7.0.1 and cabal2spec-0.25.2
2035995
- add some doc files
b5dfb8d
- allow building with mwc-random-0.11
2035995
2035995
* Fri Dec 16 2011 Jens Petersen <petersen@redhat.com> - 0.6.0.1-1
2035995
- update to 0.6.0.1
2035995
- new deps base16-bytestring, mwc-random, unordered-containers,
2035995
  regex-posix, and HUnit
2035995
2035995
* Tue Nov 22 2011 Jens Petersen <petersen@redhat.com> - 0.5.5-1
2035995
- update to 0.5.5
2035995
- depends on zlib-enum and blaze-builder-enumerator
2035995
2035995
* Tue Nov  8 2011 Jens Petersen <petersen@redhat.com> - 0.5.4-2
2035995
- add missed mtl dep
2035995
2035995
* Sat Oct 15 2011 Jens Petersen <petersen@redhat.com> - 0.5.4-1
2035995
- update to 0.5.4
2035995
2035995
* Thu Sep  8 2011 Jens Petersen <petersen@redhat.com> - 0.5.3.1-1
2035995
- BSD license and deps
2035995
2035995
* Thu Sep  8 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.5.3.1-0
2035995
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1