2035995
# https://fedoraproject.org/wiki/Packaging:Haskell
2035995
2035995
%global pkg_name snap-core
2035995
2035995
Name:           ghc-%{pkg_name}
667bfff
Version:        0.9.4.0
3628a45
Release:        4%{?dist}
a26ad1c
Summary:        Snap web framework core library
2035995
2035995
License:        BSD
2035995
URL:            http://hackage.haskell.org/package/%{pkg_name}
2035995
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
06b2347
2035995
BuildRequires:  ghc-Cabal-devel
06b2347
BuildRequires:  ghc-rpm-macros
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
1225ae1
BuildRequires:  ghc-old-locale-devel
06b2347
BuildRequires:  ghc-random-devel
06b2347
BuildRequires:  ghc-regex-posix-devel
06b2347
BuildRequires:  ghc-text-devel
06b2347
BuildRequires:  ghc-time-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
a26ad1c
Requires:       ghc-compiler = %{ghc_version}
a26ad1c
Requires(post): ghc-compiler = %{ghc_version}
a26ad1c
Requires(postun): ghc-compiler = %{ghc_version}
a26ad1c
Requires:       %{name} = %{version}-%{release}
a26ad1c
a26ad1c
%description devel
a26ad1c
This package provides the Haskell %{pkg_name} library development files.
2035995
2035995
2035995
%prep
2035995
%setup -q -n %{pkg_name}-%{version}
f48bc5f
%patch1 -p1 -b .orig
2035995
2035995
2035995
%build
2035995
%ghc_lib_build
2035995
2035995
2035995
# requires pureMD5 and test-framework*
2035995
#%%check
2035995
#cd test
2035995
#../Setup configure
2035995
#../Setup build
2035995
#./runTestsAndCoverage.sh
2035995
2035995
2035995
%install
2035995
%ghc_lib_install
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
a26ad1c
%doc LICENSE
2035995
a26ad1c
a26ad1c
%files devel -f %{name}-devel.files
2035995
%doc CONTRIBUTORS README*.md
2035995
2035995
2035995
%changelog
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