From 07640a30c7a3da8488d0882bf10dd95c78a04e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 01:24:21 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ghc-srpm-macros#44e8d03945bd45cdc860aa93af14cadcdcc799d4 --- README | 20 ++++++++++ ghc-srpm-macros.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++ macros.ghc-srpm | 13 +++++++ sources | 0 4 files changed, 122 insertions(+) create mode 100644 README create mode 100644 ghc-srpm-macros.spec create mode 100644 macros.ghc-srpm create mode 100644 sources diff --git a/README b/README new file mode 100644 index 0000000..0bc4311 --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +RPM macros to control the build arch's available for +Fedora Haskell packages with ghc-rpm-macros. + +%ghc_arches_with_ghci: + +The ghci interactive environment is needed when compiling +packages that use Template Haskell. It is not available +on all archs. Use "ExclusiveArch: %{ghc_arches_with_ghci}" +in packages that need the ghci capability to build, +or require a dependency that can only build with ghci. + +%ghc_arches: + +Deprecated but still used in older releases/packages. +Currently (as of F21) ghc is available on all actively +maintained architectures, but we could use %ghc_arches +again in the future if that is no longer true again. + +Please report any issues in Red Hat bugzilla under +the Fedora product and ghc-srpm-macros component. diff --git a/ghc-srpm-macros.spec b/ghc-srpm-macros.spec new file mode 100644 index 0000000..d164b4a --- /dev/null +++ b/ghc-srpm-macros.spec @@ -0,0 +1,89 @@ +# ghc has been bootstrapped on all Fedora archs except aarch64. +# The ghc interpreter ghci is only supported on a subset of archs. + +%global macros_dir %{_rpmconfigdir}/macros.d + +Name: ghc-srpm-macros +Version: 1.5.0 +Release: 3%{?dist} +Summary: RPM macros for building Haskell source packages + +License: GPLv2+ +Url: https://src.fedoraproject.org/rpms/ghc-srpm-macros +BuildArch: noarch + +Source0: macros.ghc-srpm + +%description +Macros used when generating Haskell source RPM packages. + + +%prep +%{nil} + + +%build +echo no build stage needed + + +%install +install -p -D -m 0644 %{SOURCE0} %{buildroot}/%{macros_dir}/macros.ghc-srpm + + +%files +%{macros_dir}/macros.ghc-srpm + + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Oct 1 2019 Jens Petersen - 1.5.0-1 +- define ghc_devel_prof to handle prof/devel BRs across releases + +* Thu Jul 25 2019 Fedora Release Engineering - 1.4.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.4.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.4.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.4.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.4.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Mar 7 2016 Michal Toman - 1.4.2-4 +- add MIPS to ghc_arches_with_ghci (#1294874) + +* Wed Feb 03 2016 Fedora Release Engineering - 1.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Apr 27 2015 Jens Petersen - 1.4.2-1 +- reenable ghci on aarch64 (#1203951) + +* Thu Mar 19 2015 Jens Petersen - 1.4.1-1 +- disable ghci on aarch64 due to dynlinked runtime problems (see #1195231) + +* Tue Feb 17 2015 Jens Petersen - 1.4-1 +- ghc-7.8 shared libraries allow ghci to work on all arch's + +* Fri Jun 27 2014 Jens Petersen - 1.3-2 +- add pkg git as URL (#1093541) +- downgrade license tag to GPLv2+ in line with rpm (redhat-rpm-config is GPL+) +- sync with current ghc-rpm-macros: add ghc_arches for backwards compatibility + +* Fri May 2 2014 Jens Petersen - 1.3-1 +- separate from ghc-rpm-macros diff --git a/macros.ghc-srpm b/macros.ghc-srpm new file mode 100644 index 0000000..6701c64 --- /dev/null +++ b/macros.ghc-srpm @@ -0,0 +1,13 @@ +# Macros needed for building srpms of Haskell packages + +# from ghc-7.8 ghci is supported on all arch's +# former archs: armv5tel ppc sparcv9 +%ghc_arches_with_ghci %{ix86} x86_64 armv7hl ppc64 ppc64le aarch64 s390 s390x %{mips} + +# ghc_arches is not used in current packages but still here for back compat +# former archs: alpha ppc sparcv9 armv5tel +%ghc_arches %{ix86} x86_64 armv7hl ppc64 ppc64le aarch64 s390 s390x + +# control whether to BR devel or prof library packages +# (prof subpackages were introduced in F31) +%ghc_devel_prof prof diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29