Blame SPECS/ghc-foundation.spec

6e958d
# generated by cabal-rpm-0.12.1
6e958d
# https://fedoraproject.org/wiki/Packaging:Haskell
6e958d
6e958d
%global pkg_name foundation
6e958d
%global pkgver %{pkg_name}-%{version}
6e958d
6e958d
%bcond_with tests
6e958d
6e958d
Name:           ghc-%{pkg_name}
6e958d
Version:        0.0.17
6e958d
Release:        3%{?dist}
6e958d
Summary:        Alternative prelude with batteries and no dependencies
6e958d
6e958d
License:        BSD
6e958d
Url:            https://hackage.haskell.org/package/%{pkg_name}
6e958d
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
6e958d
6e958d
BuildRequires:  ghc-Cabal-devel
6e958d
BuildRequires:  ghc-rpm-macros
6e958d
# Begin cabal-rpm deps:
6e958d
BuildRequires:  ghc-basement-devel
6e958d
# End cabal-rpm deps
6e958d
6e958d
%description
6e958d
A custom prelude with no dependencies apart from base.
6e958d
6e958d
This package has the following goals:
6e958d
6e958d
* provide a base like sets of modules that provide a consistent set of features
6e958d
and bugfixes across multiple versions of GHC (unlike base).
6e958d
6e958d
* provide a better and more efficient prelude than base's prelude.
6e958d
6e958d
* be self-sufficient: no external dependencies apart from base.
6e958d
6e958d
* provide better data-types: packed unicode string by default, arrays.
6e958d
6e958d
* Better numerical classes that better represent mathematical thing (No more
6e958d
all-in-one Num).
6e958d
6e958d
* Better I/O system with less Lazy IO
6e958d
6e958d
* Usual partial functions distinguished through type system.
6e958d
6e958d
6e958d
%package devel
6e958d
Summary:        Haskell %{pkg_name} library development files
6e958d
Provides:       %{name}-static = %{version}-%{release}
6e958d
Provides:       %{name}-doc = %{version}-%{release}
6e958d
%if %{defined ghc_version}
6e958d
Requires:       ghc-compiler = %{ghc_version}
6e958d
Requires(post): ghc-compiler = %{ghc_version}
6e958d
Requires(postun): ghc-compiler = %{ghc_version}
6e958d
%endif
6e958d
Requires:       %{name}%{?_isa} = %{version}-%{release}
6e958d
6e958d
%description devel
6e958d
This package provides the Haskell %{pkg_name} library development files.
6e958d
6e958d
6e958d
%package devel-doc
6e958d
Summary:        Haskell %{pkg_name} library development documentation
6e958d
6e958d
BuildArch:      noarch
6e958d
6e958d
%description devel-doc
6e958d
This package provides the Haskell %{pkg_name} library development documentation.
6e958d
6e958d
6e958d
%prep
6e958d
%setup -q -n %{pkgver}
6e958d
6e958d
6e958d
%build
6e958d
%ghc_lib_build
6e958d
6e958d
6e958d
%install
6e958d
%ghc_lib_install
6e958d
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
6e958d
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
6e958d
6e958d
6e958d
%check
6e958d
%cabal_test
6e958d
6e958d
6e958d
%post devel
6e958d
%ghc_pkg_recache
6e958d
6e958d
6e958d
%postun devel
6e958d
%ghc_pkg_recache
6e958d
6e958d
6e958d
%files -f %{name}.files
6e958d
%license LICENSE
6e958d
6e958d
6e958d
%files devel -f %{name}-devel-nodoc.files
6e958d
%doc CHANGELOG.md README.md
6e958d
6e958d
6e958d
%files devel-doc -f %{name}-devel-doc.files
6e958d
6e958d
6e958d
%changelog
6e958d
* Fri Feb 23 2018 Jens Petersen <petersen@redhat.com> - 0.0.17-3
6e958d
- unbundle basement
6e958d
6e958d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.17-2
6e958d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6e958d
6e958d
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.0.13-1
6e958d
- update to 0.0.17
6e958d
- subpackage basement
6e958d
6e958d
* Mon Aug 28 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.0.13-3
6e958d
- Make documentation subpackage noarch.
6e958d
6e958d
* Sat Aug 26 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.0.13-2
6e958d
- Split documentation into separate subpackage.
6e958d
- Update to latest spec template.
6e958d
6e958d
* Sat Jul 22 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.0.13-1
6e958d
- spec file generated by cabal-rpm-0.11