forked from pool/ghc-bootstrap-helpers
f597246f4f
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-bootstrap-helpers?expand=0&rev=4
72 lines
1.8 KiB
RPMSpec
72 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package ghc-bootstrap-helpers
|
|
#
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ghc-bootstrap-helpers
|
|
Version: 1
|
|
Release: 0
|
|
Summary: Dependencies to build ghc
|
|
License: BSD-3-Clause AND BSD-2-Clause
|
|
URL: https://build.opensuse.org/project/show/devel:languages:haskell
|
|
Source: alex-3.2.5.tar.gz
|
|
Source1: happy-1.19.12.tar.gz
|
|
BuildRequires: ghc-bootstrap
|
|
# This package is not meant to be used outside OBS
|
|
Requires: this-is-only-for-build-envs
|
|
|
|
Conflicts: alex
|
|
Conflicts: happy
|
|
|
|
%description
|
|
Prebuild alex and happy for ghc-8.8+ build
|
|
|
|
Don't use outside GHC-8.8+ build
|
|
% ' Help EMACS syntax highlighting
|
|
|
|
%prep
|
|
%setup -q -c -a0 -a1
|
|
|
|
%build
|
|
pushd alex-3.2.5
|
|
/opt/bin/ghc Setup.hs -o cabal
|
|
./cabal configure --prefix=%{_prefix}
|
|
./cabal build
|
|
popd
|
|
|
|
pushd happy-1.19.12
|
|
/opt/bin/ghc Setup.hs -o cabal
|
|
./cabal configure --prefix=%{_prefix}
|
|
./cabal build
|
|
popd
|
|
|
|
%install
|
|
pushd alex-3.2.5
|
|
./cabal copy --destdir=%{buildroot}
|
|
popd
|
|
|
|
pushd happy-1.19.12
|
|
./cabal copy --destdir=%{buildroot}
|
|
popd
|
|
|
|
%files
|
|
%{_bindir}/alex
|
|
%{_bindir}/happy
|
|
%{_datadir}/*ghc*
|
|
%{_datadir}/doc/*ghc*
|
|
|
|
%changelog
|