Re: [perl #50518] [RFC] Is the "rpms" target dead?

[email protected] ("Timothy S. Nelson")
Newsgroups perl.perl6.internals,perl.perl6.internals
Message-ID <[email protected]>
On Sun, 23 Nov 2008, James Keenan via RT wrote:

> Is there someone on RedHat or Fedora who could take a whack at this?

 	I'm unsure what the @make_and@ in the original does, but if it's just 
a statement separator, the attached patch should work on Redhat-related 
systems, if people have their RPM build environment set up properly.  To set 
up your RPM build environment properly, the following works (in bash):

mkdir $HOME/rpm
echo '%_topdir' $HOME/rpm >> $HOME/.rpmmacros

 	(note that in a shell script, you'd probably grep for topdir in 
.rpmmacros before doing anything like this).

 	I've been a bad boy and only made the patch directly against the file, 
not the whole tree, but, seeing as how it hasn't been tested, I'm also 
assuming we don't want to apply it yet either :).

 	Assuming that I've made a copy of the SVN tree, how do I test a 
compile with this patch applied?

 	HTH,


---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: [email protected]    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----
rpm.patch (text/plain, 488 B)
Index: root.in
===================================================================
--- root.in	(revision 32502)
+++ root.in	(working copy)
@@ -2177,9 +2177,7 @@
 	rm parrot-$(VERSION)
 
 rpms : release
-	sudo cp parrot-$(VERSION).tar.gz /usr/src/*/SOURCES
-	sudo cp parrot.spec /usr/src/*/SPECS
-	cd /usr/src/*/SPECS @make_and@ sudo rpmbuild -ba parrot.spec
+	rpmbuild -ta parrot-$(VERSION).tar.gz
 
 win32-inno-installer : world installable
 	$(PERL) tools/dev/mk_inno.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.