diff --git a/Makefile.am b/Makefile.am index 21321790b..27b44ad16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,9 @@ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS= foreign -SUBDIRS= debian doc include libs qw nq +SUBDIRS= RPM debian doc include libs qw nq -EXTRA_DIST= ChangeLog RPM/build_rpm.in RPM/quakeforge.spec.in RPM/rpmrc \ +EXTRA_DIST= ChangeLog \ tools/cross/cross-configure.sh tools/cross/cross-make.sh \ tools/cross/cross.sh \ tools/gas2masm/Makefile tools/gas2masm/gas2masm.c \ diff --git a/RPM/.gitignore b/RPM/.gitignore index 46f7686c4..9eb294842 100644 --- a/RPM/.gitignore +++ b/RPM/.gitignore @@ -1,3 +1,4 @@ +Makefile.in build_rpm quakeforge.conf quakeforge.spec diff --git a/RPM/Makefile.am b/RPM/Makefile.am new file mode 100644 index 000000000..c033ad134 --- /dev/null +++ b/RPM/Makefile.am @@ -0,0 +1,9 @@ +## Process this file with automake to produce Makefile.in +AUTOMAKE_OPTIONS= foreign + +EXTRA_DIST= build_rpm.in quakeforge.conf.in quakeforge.spec.in rpmrc + +rpm: build_rpm quakeforge.conf quakeforge.spec rpmrc + ./build_rpm + +CLEANFILES = *.rpm diff --git a/RPM/build_rpm.in b/RPM/build_rpm.in index 88351d5c7..56a7d7e57 100644 --- a/RPM/build_rpm.in +++ b/RPM/build_rpm.in @@ -8,6 +8,7 @@ top_builddir=.. rm -rf BUILD SPECS RPMS SOURCES SRPMS mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS +make -C $top_builddir changelog make -C $top_builddir dist mv $top_builddir/quakeforge-${version}.tar.gz SOURCES cat > rpmmacros <