From 9ecf19e1bd0cadc1051ba6ab3e71a18f6f44a0b5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 27 May 2011 11:30:20 -0500 Subject: [PATCH] add macros defining arches so language stacks can add new arches without adding the arches to every spec file macros are needed at srpm creation time so live here --- Makefile | 3 +++ macros.ghc | 2 ++ macros.mono | 2 ++ macros.ocaml | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 macros.ghc create mode 100644 macros.mono create mode 100644 macros.ocaml diff --git a/Makefile b/Makefile index 7c6c9f3..0a87d83 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,10 @@ clean: install: mkdir -p $(DESTDIR)/usr/lib/rpm/redhat cp -pr * $(DESTDIR)/usr/lib/rpm/redhat/ + mkdir -p $(DESTDIR)/etc/rpm + cp -pr macros.* $(DESTDIR)/etc/rpm/ rm -f $(DESTDIR)/usr/lib/rpm/redhat/{Makefile,ChangeLog} + rm -f $(DESTDIR)/usr/lib/rpm/redhat/macros.* tag-archive: @git tag -a $(CVSTAG) -m "$(NAME)-$(VERSION) release" diff --git a/macros.ghc b/macros.ghc new file mode 100644 index 0000000..745ef9e --- /dev/null +++ b/macros.ghc @@ -0,0 +1,2 @@ +# macro defining the archs that ghc runs on in fedora +%ghc_arches %{ix86} x86_64 ppc ppc64 alpha sparcv9 diff --git a/macros.mono b/macros.mono new file mode 100644 index 0000000..8d995b3 --- /dev/null +++ b/macros.mono @@ -0,0 +1,2 @@ +# arches that mono builds on +%mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} alpha s390x ppc ppc64 diff --git a/macros.ocaml b/macros.ocaml new file mode 100644 index 0000000..19d71fb --- /dev/null +++ b/macros.ocaml @@ -0,0 +1,2 @@ +# arches that ocaml runs on +%ocaml_arches alpha %{arm} %{ix86} ia64 x86_64 ppc sparc sparcv9 ppc64