summaryrefslogtreecommitdiffstats
path: root/extras/LinuxRPM/Makefile.am
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2013-12-06 14:33:51 -0500
committerAnand Avati <avati@redhat.com>2013-12-06 15:31:54 -0800
commitf4488e34553ec0bf68c270034af179ab14fd2b58 (patch)
treeedef87f40737519c3afd15bdd21e6f08fc9009f9 /extras/LinuxRPM/Makefile.am
parent39dd3b21c59380fb5f4dcae59ebd4f8e000cfa98 (diff)
build: FedoraSCM sources are not longer needed to build RPMs
Also some updates to .gitignore Change-Id: I576af453ca7d1ec1f3db21ee4d8386927988e7db BUG: 950083 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/6458 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'extras/LinuxRPM/Makefile.am')
-rw-r--r--extras/LinuxRPM/Makefile.am14
1 files changed, 2 insertions, 12 deletions
diff --git a/extras/LinuxRPM/Makefile.am b/extras/LinuxRPM/Makefile.am
index 1dafa982bd6..593f850ac50 100644
--- a/extras/LinuxRPM/Makefile.am
+++ b/extras/LinuxRPM/Makefile.am
@@ -18,18 +18,8 @@ prep:
-mkdir -p rpmbuild/SPECS
-mkdir -p rpmbuild/RPMS
-mkdir -p rpmbuild/SRPMS
- -rm -rf rpmbuild/SOURCES
- @if [ -d /d/cache/glusterfs -a -e /d/cache/glusterfs/sources ]; then \
- echo "copying glusterfs rpm files from local cache..." ; \
- mkdir -p ./rpmbuild/SOURCES; \
- cp /d/cache/glusterfs/* ./rpmbuild/SOURCES/ ; \
- elif [ -x /usr/bin/git ]; then \
- echo "fetching glusterfs rpm files from fedora git repo..."; \
- cd ./rpmbuild && git clone git://pkgs.fedoraproject.org/glusterfs.git > /dev/null && mv glusterfs SOURCES; \
- else \
- echo "glusterfs rpm files not fetched, you don't have git installed!" ; \
- exit 1 ; \
- fi
+ -mkdir -p rpmbuild/SOURCES
+ -rm -rf rpmbuild/SOURCES/*
cp ../../*.tar.gz ./rpmbuild/SOURCES
cp ../../glusterfs.spec ./rpmbuild/SPECS