[Octa-list] [PATCH] Added a Makefile for building RPMs Adjusted spec file to accommodate Makefile
Aron Parsons
aron at redhat.com
Tue Jun 7 00:37:42 UTC 2011
Hey Greg,
Regarding building the RPMs, the project is setup to use tito to build RPMs from the Git repo. This eliminates the need to have a makefile. You can build RPMs a couple of ways:
Latest HEAD:
tito build --rpm --test
Latest local tag:
tito build --rpm --offline
tito is available from EPEL. You can read more about it here: https://github.com/dgoodwin/tito
/aron
----- Original Message -----
From: octa-list-request at redhat.com
To: octa-list at redhat.com
Sent: Saturday, June 4, 2011 12:00:05 PM
Subject: Octa-list Digest, Vol 5, Issue 1
Send Octa-list mailing list submissions to
octa-list at redhat.com
To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/octa-list
or, via email, send a message with subject or body 'help' to
octa-list-request at redhat.com
You can reach the person managing the list at
octa-list-owner at redhat.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Octa-list digest..."
Today's Topics:
1. [PATCH] Added a Makefile for building RPMs Adjusted spec file
to accommodate Makefile (Greg Swift)
2. tracebacks on parsing XML (Greg Swift)
----------------------------------------------------------------------
Message: 1
Date: Fri, 3 Jun 2011 12:53:14 -0500
From: Greg Swift <>
To: octa-list at redhat.com
Subject: [Octa-list] [PATCH] Added a Makefile for building RPMs
Adjusted spec file to accommodate Makefile
Message-ID: <BANLkTikZ25Nc4Fzj4Rto2fc=2ZtB4z1rKA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Its not special or anything, but does what it says. primary usage:
make or make rpms (same result).
---
Makefile | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..232ec3b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+PACKAGE := $(shell basename *.spec .spec)
+ARCH = noarch
+RPMBUILD = rpmbuild --define "_topdir %(pwd)/rpm-build" \
+ --define "_builddir %{_topdir}" \
+ --define "_rpmdir %(pwd)/rpms" \
+ --define "_srcrpmdir %{_rpmdir}" \
+ --define "_sourcedir %{_topdir}"
+VERSION := $(shell awk '/%changelog/ {getline; split($$NF,a,"-");
print a[1]} ' *.spec)
+SOURCE = ${PACKAGE}-${VERSION}.tar.gz
+
+all: rpms
+
+clean:
+ -rm -rf ${SOURCE}
+ -rm -rf *~
+ -rm -rf rpm-build/ rpms/
+
+sdist:
+ tar -czf ${SOURCE} src
+
+prep_rpmbuild: sdist
+ mkdir -p rpm-build
+ mkdir -p rpms
+ mv ${SOURCE} rpm-build/
+
+rpms: prep_rpmbuild
+ ${RPMBUILD} -ba ${PACKAGE}.spec
+
+srpm: prep_rpmbuild
+ ${RPMBUILD} -bs ${PACKAGE}.spec
--
1.5.5.6
------------------------------
Message: 2
Date: Fri, 3 Jun 2011 14:42:40 -0500
From: Greg Swift <gregswift at gmail.com>
To: octa-list at redhat.com
Subject: [Octa-list] tracebacks on parsing XML
Message-ID: <BANLkTi=EZ7zs8v58m7SQpbHiMPzGRD394w at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
hi all... I had octa working before and started working on some
additional build code. then stuph happened and I left it sit for 1+
months. Over that month I upgraded RHEVM to the 52920 release, and
then to rhevm-api 1.0-rc1. Now I get errors about it pulling data
from the rhevm-api. I tried rolling rhevm-api back to 0.9, but
rolling RHEVM itself back would be a bit more unrealistic for me. I
then tried updating to the latest un-modified octa release, still
nothing.
I'm attaching a file with the two sets of output I get when running
the cli command. I've tried wget/curl pulls of the same URL for
testing, and it works fine. It works fine from browsers as well. I
don't get it. I couldn't get the python-rhev to work either, but I
never had it working.
Any suggestions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: octa-rhevm-api-error.log
Type: application/octet-stream
Size: 14848 bytes
Desc: not available
URL: <https://www.redhat.com/archives/octa-list/attachments/20110603/b841a7a9/attachment.obj>
------------------------------
_______________________________________________
Octa-list mailing list
Octa-list at redhat.com
https://www.redhat.com/mailman/listinfo/octa-list
End of Octa-list Digest, Vol 5, Issue 1
***************************************
More information about the Octa-list
mailing list