diff --git a/zimbra/mta-components/Makefile b/zimbra/mta-components/Makefile index 8638f5c8..1da37343 100644 --- a/zimbra/mta-components/Makefile +++ b/zimbra/mta-components/Makefile @@ -6,6 +6,8 @@ pname_lc := mta-components zname := zimbra-$(pname_lc) zspec := $(pname_lc).spec +osdeps = $(osdeps.$(BUILD_PLATFORM)) + .PHONY: all clean build setup all: clean build @@ -19,6 +21,7 @@ build_rpm: specfile = SPECS/$(zspec) build_rpm: $(CD) $(PLATFORM_DIR)/$(zname)/rpm && \ $(replace-pkginfo) $(specfile) && \ + $(PERL) -pi -e 's/OSDEPS/$(osdeps)/' $(specfile) && \ $(MKDIR) BUILD BUILDROOT RPMS SOURCES SRPMS && \ $(PKG_BUILD) $(specfile) diff --git a/zimbra/mta-components/RHEL.def b/zimbra/mta-components/RHEL.def new file mode 100644 index 00000000..6c5b896f --- /dev/null +++ b/zimbra/mta-components/RHEL.def @@ -0,0 +1 @@ +osdeps.RHEL9_64 := libnsl2 diff --git a/zimbra/mta-components/zimbra-mta-components/rpm/SPECS/mta-components.spec b/zimbra/mta-components/zimbra-mta-components/rpm/SPECS/mta-components.spec index 59460f57..da58a749 100644 --- a/zimbra/mta-components/zimbra-mta-components/rpm/SPECS/mta-components.spec +++ b/zimbra/mta-components/zimbra-mta-components/rpm/SPECS/mta-components.spec @@ -9,7 +9,7 @@ Requires: zimbra-cluebringer >= 2.1.0.0.cf484f1b93cf9965886cc89d33bdee Requires: zimbra-mariadb >= 10.1.25-1zimbra8.7b3ZAPPEND Requires: zimbra-opendkim >= 2.10.3-1zimbra8.7b7ZAPPEND, zimbra-perl-mail-spamassassin >= 3.4.6-1zimbra8.8b5ZAPPEND Requires: zimbra-postfix >= 3.6.1-1zimbra8.7b5ZAPPEND -Requires: zimbra-spamassassin-rules >= 1.0.0-1zimbra8.8b7ZAPPEND +Requires: zimbra-spamassassin-rules >= 1.0.0-1zimbra8.8b7ZAPPEND, OSDEPS Packager: Zimbra Packaging Services Group: Development/Languages AutoReqProv: no