b6b87d2
# generated by cabal-rpm-2.1.0
2740d23
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
01a2721
01a2721
%global pkg_name old-time
6f388a9
%global pkgver %{pkg_name}-%{version}
01a2721
01a2721
Name:           ghc-%{pkg_name}
01a2721
Version:        1.1.0.3
8ba3df7
Release:        %autorelease
01a2721
Summary:        Time library
01a2721
b6b87d2
License:        BSD-3-Clause
01a2721
Url:            https://hackage.haskell.org/package/%{pkg_name}
bface19
# Begin cabal-rpm sources:
6f388a9
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
167be04
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
bface19
# End cabal-rpm sources
01a2721
bface19
# Begin cabal-rpm deps:
01a2721
BuildRequires:  ghc-Cabal-devel
01a2721
BuildRequires:  ghc-rpm-macros
b6b87d2
BuildRequires:  ghc-base-devel
b6b87d2
BuildRequires:  ghc-old-locale-devel
b6b87d2
%if %{with ghc_prof}
9c73e2e
BuildRequires:  ghc-base-prof
9c73e2e
BuildRequires:  ghc-old-locale-prof
b6b87d2
%endif
01a2721
# End cabal-rpm deps
01a2721
01a2721
%description
01a2721
This package provides the old time library.
01a2721
3584a42
For new projects, the newer <http://hackage.haskell.org/package/time>
3584a42
library is recommended.
01a2721
01a2721
01a2721
%package devel
01a2721
Summary:        Haskell %{pkg_name} library development files
01a2721
Provides:       %{name}-static = %{version}-%{release}
9c73e2e
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
85e7917
%if %{defined ghc_version}
01a2721
Requires:       ghc-compiler = %{ghc_version}
85e7917
%endif
01a2721
Requires:       %{name}%{?_isa} = %{version}-%{release}
01a2721
01a2721
%description devel
01a2721
This package provides the Haskell %{pkg_name} library development files.
01a2721
01a2721
4e1ed63
%if %{with haddock}
4e1ed63
%package doc
4e1ed63
Summary:        Haskell %{pkg_name} library documentation
8001f2c
BuildArch:      noarch
bea84a3
Requires:       ghc-filesystem
4e1ed63
4e1ed63
%description doc
4e1ed63
This package provides the Haskell %{pkg_name} library documentation.
4e1ed63
%endif
4e1ed63
4e1ed63
4e1ed63
%if %{with ghc_prof}
4e1ed63
%package prof
4e1ed63
Summary:        Haskell %{pkg_name} profiling library
4e1ed63
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
8001f2c
Supplements:    (%{name}-devel and ghc-prof)
4e1ed63
4e1ed63
%description prof
4e1ed63
This package provides the Haskell %{pkg_name} profiling library.
4e1ed63
%endif
4e1ed63
4e1ed63
01a2721
%prep
bface19
# Begin cabal-rpm setup:
6f388a9
%setup -q -n %{pkgver}
bface19
cp -bp %{SOURCE1} %{pkg_name}.cabal
bface19
# End cabal-rpm setup
01a2721
01a2721
01a2721
%build
bface19
# Begin cabal-rpm build:
01a2721
%ghc_lib_build
bface19
# End cabal-rpm build
01a2721
01a2721
01a2721
%install
bface19
# Begin cabal-rpm install
01a2721
%ghc_lib_install
bface19
# End cabal-rpm install
01a2721
01a2721
01a2721
%files -f %{name}.files
bface19
# Begin cabal-rpm files:
01a2721
%license LICENSE
bface19
# End cabal-rpm files
01a2721
01a2721
01a2721
%files devel -f %{name}-devel.files
6f388a9
%doc changelog.md
01a2721
01a2721
4e1ed63
%if %{with haddock}
4e1ed63
%files doc -f %{name}-doc.files
8001f2c
%license LICENSE
4e1ed63
%endif
4e1ed63
4e1ed63
4e1ed63
%if %{with ghc_prof}
4e1ed63
%files prof -f %{name}-prof.files
4e1ed63
%endif
4e1ed63
4e1ed63
01a2721
%changelog
8ba3df7
%autochangelog