Blame SPECS/ghc-basement.spec

6a1b59
# generated by cabal-rpm-0.12
6a1b59
# https://fedoraproject.org/wiki/Packaging:Haskell
6a1b59
6a1b59
%global pkg_name basement
6a1b59
%global pkgver %{pkg_name}-%{version}
6a1b59
6a1b59
Name:           ghc-%{pkg_name}
6a1b59
Version:        0.0.4
6a1b59
Release:        3%{?dist}
6a1b59
Summary:        Foundation scrap box of array & string
6a1b59
6a1b59
License:        BSD
6a1b59
Url:            https://hackage.haskell.org/package/%{pkg_name}
6a1b59
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
6a1b59
6a1b59
BuildRequires:  ghc-Cabal-devel
6a1b59
BuildRequires:  ghc-rpm-macros
6a1b59
6a1b59
%description
6a1b59
Foundation most basic primitives without any dependencies.
6a1b59
6a1b59
6a1b59
%package devel
6a1b59
Summary:        Haskell %{pkg_name} library development files
6a1b59
Provides:       %{name}-static = %{version}-%{release}
6a1b59
Provides:       %{name}-doc = %{version}-%{release}
6a1b59
%if %{defined ghc_version}
6a1b59
Requires:       ghc-compiler = %{ghc_version}
6a1b59
Requires(post): ghc-compiler = %{ghc_version}
6a1b59
Requires(postun): ghc-compiler = %{ghc_version}
6a1b59
%endif
6a1b59
Requires:       %{name}%{?_isa} = %{version}-%{release}
6a1b59
6a1b59
%description devel
6a1b59
This package provides the Haskell %{pkg_name} library development files.
6a1b59
6a1b59
6a1b59
%prep
6a1b59
%setup -q -n %{pkgver}
6a1b59
6a1b59
6a1b59
%build
6a1b59
%ghc_lib_build
6a1b59
6a1b59
6a1b59
%install
6a1b59
%ghc_lib_install
6a1b59
6a1b59
6a1b59
%post devel
6a1b59
%ghc_pkg_recache
6a1b59
6a1b59
6a1b59
%postun devel
6a1b59
%ghc_pkg_recache
6a1b59
6a1b59
6a1b59
%files -f %{name}.files
6a1b59
%license LICENSE
6a1b59
6a1b59
6a1b59
%files devel -f %{name}-devel.files
6a1b59
6a1b59
6a1b59
%changelog
6a1b59
* Fri Feb 23 2018 Jens Petersen <petersen@redhat.com> - 0.0.4-3
6a1b59
- bump over foundation
6a1b59
6a1b59
* Sat Jan 27 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.0.4-1
6a1b59
- spec file generated by cabal-rpm-0.12