From e9ea1b4e59384cdfe3accdf31e5c579c3dad5591 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 1 Sep 2009 16:02:46 -0400 Subject: Move RPM specfiles into contrib/ Support RHEL 5 in the spec file --- Makefile.am | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 04c22158f..d569605a2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,7 @@ RPMBUILD ?= $(PWD)/rpmbuild builddir ?= . dist_noinst_DATA = \ - sssd.spec.in \ + contrib/sssd.spec.in \ BUILD.txt \ COPYING @@ -18,11 +18,17 @@ rpmroot: mkdir -p $(RPMBUILD)/SRPMS rpms: dist-gzip rpmroot - cp $(builddir)/sssd.spec $(RPMBUILD)/SPECS + cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS cp $(distdir).tar.gz $(RPMBUILD)/SOURCES - cd $(RPMBUILD); rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec + cd $(RPMBUILD); \ + rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec +# make srpms will use the old digest algorithm to be compatible +# with RHEL5 srpms: dist-gzip rpmroot - cp $(builddir)/sssd.spec $(RPMBUILD)/SPECS + cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS cp $(distdir).tar.gz $(RPMBUILD)/SOURCES - cd $(RPMBUILD); rpmbuild --define "_topdir $(RPMBUILD)" -bs SPECS/sssd.spec + cd $(RPMBUILD); \ + rpmbuild --define "_topdir $(RPMBUILD)" \ + --define _source_filedigest_algorithm=1 \ + -bs SPECS/sssd.spec -- cgit