a9c243e
# generated by cabal-rpm-2.1.0
d99c976
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
9b27406
9b27406
%global pkg_name time-locale-compat
9b27406
%global pkgver %{pkg_name}-%{version}
9b27406
9b27406
Name:           ghc-%{pkg_name}
198fe43
Version:        0.1.1.5
119868c
Release:        %autorelease
4621acd
Summary:        Compatibile module for time-format locale
9b27406
a9c243e
License:        BSD-3-Clause
9b27406
Url:            https://hackage.haskell.org/package/%{pkg_name}
28d24ee
# Begin cabal-rpm sources:
9b27406
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
28d24ee
# End cabal-rpm sources
9b27406
28d24ee
# Begin cabal-rpm deps:
9b27406
BuildRequires:  ghc-Cabal-devel
9b27406
BuildRequires:  ghc-rpm-macros
a9c243e
BuildRequires:  ghc-base-devel
a9c243e
BuildRequires:  ghc-old-locale-devel
a9c243e
BuildRequires:  ghc-time-devel
a9c243e
%if %{with ghc_prof}
bb7b8c3
BuildRequires:  ghc-base-prof
bb7b8c3
BuildRequires:  ghc-old-locale-prof
bb7b8c3
BuildRequires:  ghc-time-prof
a9c243e
%endif
9b27406
# End cabal-rpm deps
9b27406
9b27406
%description
4621acd
This package contains wrapped name module for time-format locale between
4621acd
old-locale and time-1.5.
9b27406
9b27406
9b27406
%package devel
9b27406
Summary:        Haskell %{pkg_name} library development files
9b27406
Provides:       %{name}-static = %{version}-%{release}
bb7b8c3
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
9b27406
%if %{defined ghc_version}
9b27406
Requires:       ghc-compiler = %{ghc_version}
9b27406
%endif
9b27406
Requires:       %{name}%{?_isa} = %{version}-%{release}
9b27406
9b27406
%description devel
9b27406
This package provides the Haskell %{pkg_name} library development
9b27406
files.
9b27406
9b27406
f72db63
%if %{with haddock}
f72db63
%package doc
f72db63
Summary:        Haskell %{pkg_name} library documentation
f4f78f6
BuildArch:      noarch
a7bc25f
Requires:       ghc-filesystem
f72db63
f72db63
%description doc
f72db63
This package provides the Haskell %{pkg_name} library documentation.
f72db63
%endif
f72db63
f72db63
f72db63
%if %{with ghc_prof}
f72db63
%package prof
f72db63
Summary:        Haskell %{pkg_name} profiling library
f72db63
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
f4f78f6
Supplements:    (%{name}-devel and ghc-prof)
f72db63
f72db63
%description prof
f72db63
This package provides the Haskell %{pkg_name} profiling library.
f72db63
%endif
f72db63
f72db63
9b27406
%prep
28d24ee
# Begin cabal-rpm setup:
9b27406
%setup -q -n %{pkgver}
28d24ee
# End cabal-rpm setup
9b27406
9b27406
9b27406
%build
28d24ee
# Begin cabal-rpm build:
9b27406
%ghc_lib_build
28d24ee
# End cabal-rpm build
9b27406
9b27406
9b27406
%install
28d24ee
# Begin cabal-rpm install
9b27406
%ghc_lib_install
28d24ee
# End cabal-rpm install
9b27406
9b27406
9b27406
%files -f %{name}.files
28d24ee
# Begin cabal-rpm files:
9b27406
%license LICENSE
28d24ee
# End cabal-rpm files
9b27406
9b27406
9b27406
%files devel -f %{name}-devel.files
9b27406
9b27406
f72db63
%if %{with haddock}
f72db63
%files doc -f %{name}-doc.files
f4f78f6
%license LICENSE
f72db63
%endif
f72db63
f72db63
f72db63
%if %{with ghc_prof}
f72db63
%files prof -f %{name}-prof.files
f72db63
%endif
f72db63
f72db63
9b27406
%changelog
119868c
%autochangelog