summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 76bda52..f114b0c 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,8 @@ TITLE = Fedora Documentation Project Shared Files
# Some RPM flags...
######################################################
RPMFLAGS = --define "docbase $(DOCBASE)" \
- --define "_topdir $(PWD)/rpmbuild"
+ --define "_topdir $(PWD)/rpmbuild" \
+ --define "_build_name_fmt %{name}-%{version}-%{release}.%{arch}.rpm"
RPM = rpm ${RPMFLAGS}
######################################################
@@ -72,7 +73,7 @@ rpm: update
# Do the build...
#
rpmbuild -ba $(RPMFLAGS) $(DOCSPEC)
- mv $(shell ${RPM} --eval '%{_rpmdir}')/noarch/*.rpm .
+ mv $(shell ${RPM} --eval '%{_rpmdir}')/*.rpm .
mv $(shell ${RPM} --eval '%{_srcrpmdir}')/*.rpm .
rpmbuild --clean --rmsource $(RPMFLAGS) $(DOCSPEC)
rm -rf $(shell ${RPM} --eval '%{_topdir}')