Update of /cvsroot/monetdb/sql
In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv2386/sql
Modified Files:
rpm.mk.in
Log Message:
Ported to Fedora 13: there is no macrofiles line in the output of rpmbuild
--showrc.
Index: rpm.mk.in
===================================================================
RCS file: /cvsroot/monetdb/sql/rpm.mk.in,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- rpm.mk.in 7 Jan 2010 15:24:31 -0000 1.35
+++ rpm.mk.in 21 Apr 2010 15:40:59 -0000 1.36
@@ -21,7 +21,7 @@
rpmtopdir = $(shell cd $(top_builddir) && pwd)/rpmbuild
-rpmmacros = `rpmbuild --showrc | sed -n 's/macrofiles *:
*//p'`:$(rpmtopdir)/rpmmacros
+RPMBUILDARGS = --define="_tmppath /tmp" --define="_topdir $(rpmtopdir)"
--define="tmpdir %{_tmppath}" --define="rpmcflags -O2 " --define="dist
_...@linux_dist@" --define="packager MonetDB Database System
<[email protected]>" --define="o...@oids@ 1"
@have_python_fa...@python=--without python
@have_python_t...@python=--with python
@@ -36,26 +36,15 @@
mkdir -p $(rpmtopdir)/BUILD
mkdir -p $(rpmtopdir)/INSTALL
- echo "macrofiles: $(rpmmacros)" > $(rpmtopdir)/rpmrc
-
- echo "%_tmppath /tmp" > $(rpmtopdir)/rpmmacros
- echo "%_topdir $(rpmtopdir)" >> $(rpmtopdir)/rpmmacros
- echo "%tmpdir %{_tmppath}" >> $(rpmtopdir)/rpmmacros
- echo "%rpmcflags -O2 " >> $(rpmtopdir)/rpmmacros
- echo "#%top_builddirroot %{_topdir}/INSTALL/" >> $(rpmtopdir)/rpmmacros
- echo "%dist _...@linux_dist@" >>
$(rpmtopdir)/rpmmacros
- echo "%packager MonetDB Database System <[email protected]>" >>
$(rpmtopdir)/rpmmacros
- if test "@oids@" -eq 32; then echo "%oid32 1" >>
$(rpmtopdir)/rpmmacros; fi
-
rpm: MonetDB-SQL.spec $(top_builddir)/$(distdir).tar.gz
$(rpmtopdir)/rpmmacros
- $(RPMBUILD) --macros "$(rpmmacros)" --rcfile $(rpmtopdir)/rpmrc -ta
--target `uname -m` ${python} --define="buildsystem 1" --define="comp_cc @CC@"
$(top_builddir)/$(distdir).tar.gz
+ $(RPMBUILD) $(RPMBUILDARGS) -ta --target `uname -m` ${python}
--define="buildsystem 1" --define="comp_cc @CC@"
$(top_builddir)/$(distdir).tar.gz
for i in $(rpmtopdir)/SRPMS/*...@linux_dist@....@oids@* ; do \
mv "$$i" "`echo "$$i" | sed 's|_...@linux_dist@....@oids@||'`"
; \
done
rm -rf $(rpmtopdir)/BUILD
srpm: MonetDB-SQL.spec $(top_builddir)/$(distdir).tar.gz
$(rpmtopdir)/rpmmacros
- $(RPMBUILD) --macros "$(rpmmacros)" --rcfile $(rpmtopdir)/rpmrc -ts
${python} --define="buildsystem 1" $(top_builddir)/$(distdir).tar.gz
+ $(RPMBUILD) $(RPMBUILDARGS) -ts ${python} --define="buildsystem 1"
$(top_builddir)/$(distdir).tar.gz
for i in $(rpmtopdir)/SRPMS/*...@linux_dist@....@oids@* ; do \
mv "$$i" "`echo "$$i" | sed 's|_...@linux_dist@....@oids@||'`"
; \
done
------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins