755a0f
# https://fedoraproject.org/wiki/Packaging:Haskell
d6ebb2
d6ebb2
%global pkg_name unordered-containers
d6ebb2
b10ac0
%bcond_with tests
b10ac0
d6ebb2
Name:           ghc-%{pkg_name}
b10ac0
# part of haskell-platform
d3f2f6
Version:        0.2.4.0
a6a50e
Release:        1%{?dist}
84efe8
Summary:        Efficient hashing-based container types
d6ebb2
d6ebb2
License:        BSD
a6a50e
Url:            https://hackage.haskell.org/package/%{pkg_name}
a6a50e
Source0:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
46feb0
d6ebb2
BuildRequires:  ghc-Cabal-devel
46feb0
BuildRequires:  ghc-rpm-macros
46feb0
# Begin cabal-rpm deps:
a9e717
BuildRequires:  ghc-deepseq-devel
a9e717
BuildRequires:  ghc-hashable-devel
b10ac0
%if %{with tests}
b10ac0
BuildRequires:  ghc-ChasingBottoms-devel
b10ac0
BuildRequires:  ghc-HUnit-devel
b10ac0
BuildRequires:  ghc-QuickCheck-devel
b10ac0
BuildRequires:  ghc-containers-devel
b10ac0
BuildRequires:  ghc-containers-devel
b10ac0
BuildRequires:  ghc-test-framework-devel
b10ac0
BuildRequires:  ghc-test-framework-hunit-devel
b10ac0
BuildRequires:  ghc-test-framework-quickcheck2-devel
b10ac0
BuildRequires:  ghc-test-framework-quickcheck2-devel
b10ac0
%endif
46feb0
# End cabal-rpm deps
d6ebb2
d6ebb2
%description
a6a50e
Efficient hashing-based container types. The containers have been optimized
a6a50e
for performance critical use, both in terms of large data quantities and
a6a50e
high speed.
84efe8
a6a50e
The declared cost of each operation is either worst-case or amortized,
a6a50e
but remains valid even if structures are shared.
84efe8
d6ebb2
84efe8
%package devel
84efe8
Summary:        Haskell %{pkg_name} library development files
b10ac0
Provides:       %{name}-static = %{version}-%{release}
2c3c5b
Requires:       ghc-compiler = %{ghc_version}
2c3c5b
Requires(post): ghc-compiler = %{ghc_version}
2c3c5b
Requires(postun): ghc-compiler = %{ghc_version}
b10ac0
Requires:       %{name}%{?_isa} = %{version}-%{release}
84efe8
84efe8
%description devel
b10ac0
This package provides the Haskell %{pkg_name} library development
b10ac0
files.
b10ac0
d6ebb2
d6ebb2
%prep
d6ebb2
%setup -q -n %{pkg_name}-%{version}
d6ebb2
d6ebb2
d6ebb2
%build
d6ebb2
%ghc_lib_build
d6ebb2
d6ebb2
d6ebb2
%install
d6ebb2
%ghc_lib_install
d6ebb2
d6ebb2
b10ac0
%check
b10ac0
%if %{with tests}
b10ac0
%cabal test
b10ac0
%endif
b10ac0
b10ac0
84efe8
%post devel
84efe8
%ghc_pkg_recache
84efe8
d6ebb2
84efe8
%postun devel
84efe8
%ghc_pkg_recache
d6ebb2
d6ebb2
84efe8
%files -f %{name}.files
84efe8
%doc LICENSE
d6ebb2
d6ebb2
84efe8
%files devel -f %{name}-devel.files
d6ebb2
d6ebb2
d6ebb2
%changelog
d3f2f6
* Fri Aug  8 2014 Jens Petersen <petersen@redhat.com> - 0.2.4.0-1
d3f2f6
- update to 0.2.4.0
d3f2f6
149c08
* Thu Jun 19 2014 Jens Petersen <petersen@redhat.com> - 0.2.3.0-4
149c08
- update packaging to cblrpm-0.8.11
b10ac0
607112
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3.0-3
607112
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
607112
40315a
* Thu Jun 20 2013 Jens Petersen <petersen@redhat.com> - 0.2.3.0-2
40315a
- update to cabal-rpm-0.8
40315a
- part of haskell-platform-2013.2
40315a
0214ac
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.2.3.0-1
0214ac
- update to 0.2.3.0
0214ac
b8c9f4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2.1-2
b8c9f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b8c9f4
46feb0
* Thu Nov 08 2012 Jens Petersen <petersen@redhat.com> - 0.2.2.1-1
46feb0
- update to 0.2.2.1
46feb0
e4de48
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1.0-3
e4de48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e4de48
a9e717
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 0.2.1.0-2
a9e717
- change prof BRs to devel
a9e717
c96e0d
* Wed Jun 13 2012 Jens Petersen <petersen@redhat.com> - 0.2.1.0-1
c96e0d
- update to 0.2.1.0
c96e0d
98a265
* Fri Mar 23 2012 Jens Petersen <petersen@redhat.com> - 0.1.4.6-3
98a265
- add license to ghc_files
98a265
2ff331
* Thu Mar  8 2012 Jens Petersen <petersen@redhat.com> - 0.1.4.6-2
2ff331
- rebuild
2ff331
755a0f
* Thu Jan  5 2012 Jens Petersen <petersen@redhat.com> - 0.1.4.6-1
755a0f
- update to 0.1.4.6 and cabal2spec-0.25.2
755a0f
d6ebb2
* Wed Nov 23 2011 Jens Petersen <petersen@redhat.com> - 0.1.4.3-1
d6ebb2
- BSD license
d6ebb2
- depends on deepseq and hashable
d6ebb2
d6ebb2
* Wed Nov 23 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org>
d6ebb2
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1