From 78395373edc3fcf62847de2c630b656967222901 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 27 Aug 2013 11:05:05 -0400 Subject: BUILD: Ignore translations when building RPMs When we're running 'make rpms' for development purposes, the nested call to 'make distdir' ends up forcing an update of the translation pot files. With this patch, we'll automatically ignore them during (S)RPM actions. --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.am b/Makefile.am index 4dd8ed35..5cd99b18 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1983,6 +1983,12 @@ rpmroot: mkdir -p $(RPMBUILD)/SRPMS rpmbrprep: dist-gzip rpmroot +if GIT_CHECKOUT +# When we're building RPMs from a git checkout, +# we don't want to be bothered with translation +# updates + git checkout $(srcdir)/po $(srcdir)/src/man/po +endif cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS cp $(distdir).tar.gz $(RPMBUILD)/SOURCES cp $(srcdir)/contrib/*.patch $(RPMBUILD)/SOURCES -- cgit