d062657
# generated by cabal-rpm-0.11.1
2035995
# https://fedoraproject.org/wiki/Packaging:Haskell
2035995
2035995
%global pkg_name snap-core
847a466
%global pkgver %{pkg_name}-%{version}
d062657
e6b4fa9
%global readable readable-0.3.1
e6b4fa9
%global subpkgs %{readable}
e6b4fa9
d062657
%bcond_with tests
2035995
2035995
Name:           ghc-%{pkg_name}
d062657
Version:        1.0.1.0
e6b4fa9
# can only be reset when all subpkgs bumped
e51fb04
Release:        3%{?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
e6b4fa9
Source1:        https://hackage.haskell.org/package/%{readable}/%{readable}.tar.gz
06b2347
2035995
BuildRequires:  ghc-Cabal-devel
e6b4fa9
BuildRequires:  ghc-rpm-macros-extra
06b2347
# Begin cabal-rpm deps:
06b2347
BuildRequires:  ghc-HUnit-devel
06b2347
BuildRequires:  ghc-attoparsec-devel
06b2347
BuildRequires:  ghc-bytestring-devel
06b2347
BuildRequires:  ghc-case-insensitive-devel
06b2347
BuildRequires:  ghc-containers-devel
06b2347
BuildRequires:  ghc-directory-devel
06b2347
BuildRequires:  ghc-filepath-devel
d062657
BuildRequires:  ghc-io-streams-devel
d062657
BuildRequires:  ghc-lifted-base-devel
d062657
BuildRequires:  ghc-monad-control-devel
06b2347
BuildRequires:  ghc-mtl-devel
06b2347
BuildRequires:  ghc-random-devel
e6b4fa9
#BuildRequires:  ghc-readable-devel
06b2347
BuildRequires:  ghc-regex-posix-devel
06b2347
BuildRequires:  ghc-text-devel
06b2347
BuildRequires:  ghc-time-devel
d062657
BuildRequires:  ghc-time-locale-compat-devel
d062657
BuildRequires:  ghc-transformers-base-devel
d062657
BuildRequires:  ghc-transformers-devel
06b2347
BuildRequires:  ghc-unix-compat-devel
06b2347
BuildRequires:  ghc-unordered-containers-devel
06b2347
BuildRequires:  ghc-vector-devel
d062657
%if %{with tests}
d062657
BuildRequires:  ghc-QuickCheck-devel
d062657
BuildRequires:  ghc-deepseq-devel
d062657
BuildRequires:  ghc-hashable-devel
d062657
BuildRequires:  ghc-parallel-devel
d062657
BuildRequires:  ghc-test-framework-devel
d062657
BuildRequires:  ghc-test-framework-hunit-devel
d062657
BuildRequires:  ghc-test-framework-quickcheck2-devel
d062657
BuildRequires:  ghc-zlib-devel
d062657
%endif
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
e6b4fa9
%global main_version %{version}
e6b4fa9
e6b4fa9
%if %{defined ghclibdir}
e6b4fa9
%ghc_lib_subpackage %{readable}
e6b4fa9
%endif
e6b4fa9
e6b4fa9
%global version %{main_version}
e6b4fa9
e6b4fa9
2035995
%prep
e6b4fa9
%setup -q -n %{pkgver} -a1
f48bc5f
%patch1 -p1 -b .orig
d062657
cabal-tweak-drop-dep bytestring-builder
2035995
2035995
2035995
%build
e6b4fa9
%ghc_libs_build %{subpkgs}
baf4b30
%ghc_lib_build
2035995
2035995
2035995
%install
e6b4fa9
%ghc_libs_install %{subpkgs}
baf4b30
%ghc_lib_install
e6b4fa9
%ghc_fix_rpath %{subpkgs}
2035995
2035995
d062657
%check
d062657
%cabal_test
d062657
d062657
a26ad1c
%post devel
a26ad1c
%ghc_pkg_recache
2035995
2035995
a26ad1c
%postun devel
a26ad1c
%ghc_pkg_recache
2035995
2035995
a26ad1c
%files -f %{name}.files
baf4b30
%license LICENSE
2035995
a26ad1c
a26ad1c
%files devel -f %{name}-devel.files
d062657
%doc CONTRIBUTORS README.SNAP.md README.md
2035995
2035995
2035995
%changelog
e51fb04
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-3
e51fb04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e51fb04
190e70d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-2
190e70d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
190e70d
d062657
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.0-1
d062657
- update to 1.0.1.0
e6b4fa9
- subpackage readable
d062657
12fd8bc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.0-4
12fd8bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
12fd8bc
baf4b30
* Thu Feb  9 2017 Jens Petersen <petersen@redhat.com> - 0.9.8.0-3
baf4b30
- build subpackage in main package dir
baf4b30
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