bfaa32e
# generated by cabal-rpm-2.1.0
1481934
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
Ben Boeckel 726c1df
Ben Boeckel 1d42fd6
%global pkg_name ranges
1bcb964
%global pkgver %{pkg_name}-%{version}
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
Name:           ghc-%{pkg_name}
ee89422
Version:        0.2.4
00a62eb
Release:        %autorelease
953d301
Summary:        Ranges and various functions on them
Ben Boeckel 1d42fd6
bfaa32e
License:        BSD-3-Clause
aa0cee5
Url:            https://hackage.haskell.org/package/%{pkg_name}
f34ea9e
# Begin cabal-rpm sources:
1bcb964
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
f34ea9e
# End cabal-rpm sources
Ben Boeckel 726c1df
f34ea9e
# Begin cabal-rpm deps:
ce47286
BuildRequires:  ghc-Cabal-devel
ce47286
BuildRequires:  ghc-rpm-macros
bfaa32e
BuildRequires:  ghc-base-devel
bfaa32e
BuildRequires:  ghc-containers-devel
bfaa32e
%if %{with ghc_prof}
48e8845
BuildRequires:  ghc-base-prof
48e8845
BuildRequires:  ghc-containers-prof
bfaa32e
%endif
ce47286
# End cabal-rpm deps
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
%description
aa0cee5
Ranges and some functions allowing things like fast membership lookup on ranges
aa0cee5
with holes in them and so on.
953d301
953d301
953d301
%package devel
953d301
Summary:        Haskell %{pkg_name} library development files
aa0cee5
Provides:       %{name}-static = %{version}-%{release}
48e8845
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
cc0e5a9
%if %{defined ghc_version}
953d301
Requires:       ghc-compiler = %{ghc_version}
cc0e5a9
%endif
aa0cee5
Requires:       %{name}%{?_isa} = %{version}-%{release}
953d301
953d301
%description devel
953d301
This package provides the Haskell %{pkg_name} library development files.
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
f4b21c1
%if %{with haddock}
f4b21c1
%package doc
f4b21c1
Summary:        Haskell %{pkg_name} library documentation
c4153f1
BuildArch:      noarch
ab8d6d8
Requires:       ghc-filesystem
f4b21c1
f4b21c1
%description doc
f4b21c1
This package provides the Haskell %{pkg_name} library documentation.
f4b21c1
%endif
f4b21c1
f4b21c1
f4b21c1
%if %{with ghc_prof}
f4b21c1
%package prof
f4b21c1
Summary:        Haskell %{pkg_name} profiling library
f4b21c1
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
c4153f1
Supplements:    (%{name}-devel and ghc-prof)
f4b21c1
f4b21c1
%description prof
f4b21c1
This package provides the Haskell %{pkg_name} profiling library.
f4b21c1
%endif
f4b21c1
f4b21c1
Ben Boeckel 1d42fd6
%prep
f34ea9e
# Begin cabal-rpm setup:
1bcb964
%setup -q -n %{pkgver}
f34ea9e
# End cabal-rpm setup
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
%build
f34ea9e
# Begin cabal-rpm build:
Ben Boeckel 1d42fd6
%ghc_lib_build
f34ea9e
# End cabal-rpm build
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
%install
f34ea9e
# Begin cabal-rpm install
Ben Boeckel 1d42fd6
%ghc_lib_install
f34ea9e
# End cabal-rpm install
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
953d301
%files -f %{name}.files
f34ea9e
# Begin cabal-rpm files:
b72402a
%license LICENSE
f34ea9e
# End cabal-rpm files
Ben Boeckel 726c1df
Ben Boeckel 726c1df
953d301
%files devel -f %{name}-devel.files
Ben Boeckel 1d42fd6
Ben Boeckel 1d42fd6
f4b21c1
%if %{with haddock}
f4b21c1
%files doc -f %{name}-doc.files
c4153f1
%license LICENSE
f4b21c1
%endif
f4b21c1
f4b21c1
f4b21c1
%if %{with ghc_prof}
f4b21c1
%files prof -f %{name}-prof.files
f4b21c1
%endif
f4b21c1
f4b21c1
Ben Boeckel 1d42fd6
%changelog
00a62eb
%autochangelog