On 29/02/12 17:24 -0500, Russell Bryant wrote:
If there are local changes, "make rpm" fails. This is
because the
tarball that gets exported doesn't have "-dirty" in it. This is one
possible fix. The other is to change the name of the tarball.
Hi Russell
I am not sure this is right. I applied the patch and made a whitespace change.
Now remember that libqb's version is generated at autoconf time so to re-generate
the version (which is stored in .version) you need to:
make maintainer-clean ; ./autogen.sh ; ./configure ; make rpm
This now fails with your patch.
This is working at present (it does add the -dirty).
To make this more friendly when building from I have been meaning
to play with making the .version generation depend on .git/HEAD
-Angus
Signed-off-by: Russell Bryant <rbryant(a)redhat.com>
---
libqb.spec.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libqb.spec.in b/libqb.spec.in
index f734656..bc287c3 100644
--- a/libqb.spec.in
+++ b/libqb.spec.in
@@ -10,7 +10,7 @@ Summary: An IPC library for high performance servers.
Group: System Environment/Libraries
License: LGPLv2+
URL:
http://www.libqb.org
-Source0:
https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}%{?nu...
+Source0:
https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}%{?nu...
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf automake libtool doxygen procps check-devel
@@ -20,7 +20,7 @@ libqb provides high performance client server reusable features.
Initially these are IPC and poll.
%prep
-%setup -q -n
%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
+%setup -q -n %{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}
%build
./autogen.sh
--
1.7.7.6
_______________________________________________
quarterback-devel mailing list
quarterback-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/quarterback-devel