diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-25 17:49:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-25 17:49:45 +0000 |
commit | d0b3a415b2ac10921ef6e1c79f457c9e300ee890 (patch) | |
tree | 93c0a015d28052c64e1173241e58ca2df1161452 | |
parent | 24ba0bd8e87666603f439f52e08278d7b4b0c336 (diff) |
automatic import of ghc-bootstrap-toolsopeneuler23.09
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | ghc-bootstrap-tools.spec | 58 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 62 insertions, 0 deletions
@@ -0,0 +1,2 @@ +/alex-3.4.0.0.tar.gz +/happy-1.20.0.tar.gz diff --git a/ghc-bootstrap-tools.spec b/ghc-bootstrap-tools.spec new file mode 100644 index 0000000..645ad7a --- /dev/null +++ b/ghc-bootstrap-tools.spec @@ -0,0 +1,58 @@ +%define alex_ver 3.4.0.0 +%define happy_ver 1.20.0 +%global debug_package %{nil} + +Name: ghc-bootstrap-tools +Version: 1.0 +Release: 1 +Summary: Dependencies for ghc bootstrap. +License: BSD-2-Clause and BSD-3-Clause +URL: https://gitee.com/src-openeuler/ghc-bootstrap-tools +Source0: https://hackage.haskell.org/package/alex-%{alex_ver}/alex-%{alex_ver}.tar.gz +Source1: https://hackage.haskell.org/package/happy-%{happy_ver}/happy-%{happy_ver}.tar.gz + +BuildRequires: ghc-bootstrap + +Conflicts: alex +Conflicts: happy + +%description +Prebuild alex and happy for bootstrapping the proper ghc build. +Don't use outside of ghc bootstrapping! +For alex and happy, install the seperated package instead. + +%prep +%setup -q -c -a0 -a1 + +%build +export PATH=/opt/bin:$PATH +pushd alex-%{alex_ver} +ghc Setup.hs -o cabal +./cabal configure --prefix=%{_prefix} +./cabal build +popd + +pushd happy-%{happy_ver} +ghc Setup.hs -o cabal +./cabal configure --prefix=%{_prefix} +./cabal build +popd + +%install +pushd alex-%{alex_ver} +./cabal copy --destdir=%{buildroot} +popd + +pushd happy-%{happy_ver} +./cabal copy --destdir=%{buildroot} +popd + +%files +%{_bindir}/alex +%{_bindir}/happy +%{_datadir}/*ghc* +%{_datadir}/doc/*ghc* + +%changelog +* Sat Jul 22 2023 Lin Runze <lrzlin@163.com> - 1.0-1 +- Initial packaging. (Version 1.0) @@ -0,0 +1,2 @@ +a7aff3c0e479e6a25091f4c1ec6b27b1 alex-3.4.0.0.tar.gz +f6d214eb9f0271e327a2948ba45d1612 happy-1.20.0.tar.gz |