This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project iwhd.git.
The branch, master has been updated
via 8e27a1a5623d6fe674ebcaefa5ae43cae372873f (commit)
from 0317fd51b2994b9c512122ce97092fd3d0252ffc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/iwhd.git/commit/8e27a1a5623d6fe674ebcaefa5ae43cae372873f
commit 8e27a1a5623d6fe674ebcaefa5ae43cae372873f
Author: Jim Meyering <meyering(a)redhat.com>
Date: Thu Oct 7 13:44:31 2010 +0200
add iwhd.spec.in and Makefile rules
With these, you can now run "make rpm" to invoke rpmbuild
on a just-created tarball.
diff --git a/.gitignore b/.gitignore
index c495020..e85dc40 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,7 @@ iwhd
iwhd-*.tar.gz
iwhd-qparser.c
iwhd-qparser.h
+iwhd.spec
qlexer.c
stamp-h1
t/*.log
diff --git a/Makefile.am b/Makefile.am
index 60dce9a..5510cf1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,11 +23,18 @@ iwhd_YFLAGS = -d
SUBDIRS = t
ACLOCAL_AMFLAGS = -I ax
+# iwhd is short for Image WareHouse Daemon.
bin_PROGRAMS = iwhd
-EXTRA_DIST = iwhd-qparser.h
+
+EXTRA_DIST = + iwhd-qparser.h + iwhd.spec + iwhd.spec.in
+
BUILT_SOURCES = iwhd-qparser.h qlexer.c
-# iwhd is short for Image WareHouse Daemon.
+MOSTLYCLEANFILES =
+MAINTAINERCLEANFILES =
iwhd_SOURCES = auto.c @@ -51,6 +58,19 @@ iwhd_SOURCES =
EXTRA_iwhd_SOURCES = qlexer.l
+MOSTLYCLEANFILES += iwhd.spec
+MAINTAINERCLEANFILES += iwhd.spec
+iwhd.spec: iwhd.spec.in Makefile.am
+ rm -f $@-t $@
+ sed 's/@''VERSION@/$(VERSION)/' $< > $@-t
+ chmod a=r $@-t
+ mv $@-t $@
+
+.PHONY: rpm
+rpm: dist iwhd.spec
+ chmod 644 $(distdir).tar.gz
+ rpmbuild -ta $(distdir).tar.gz
+
iwhd_CPPFLAGS = $(HAIL_CFLAGS)
iwhd_LDADD = -lmongoclient @@ -65,6 +85,6 @@ iwhd_LDADD = $(GLIB2_LIB)
$(HAIL_LIBS)
-MOSTLYCLEANFILES = qlexer.c
-MAINTAINERCLEANFILES = qlexer.c
+MOSTLYCLEANFILES += qlexer.c
+MAINTAINERCLEANFILES += qlexer.c
EXTRA_DIST += qlexer.c
diff --git a/iwhd.spec.in b/iwhd.spec.in
new file mode 100644
index 0000000..282370e
--- /dev/null
+++ b/iwhd.spec.in
@@ -0,0 +1,63 @@
+Name: iwhd
+Version: @VERSION@
+Release: 1%{?dist}
+Summary: Image WareHouse Daemon
+
+Group: System Environment/Libraries
+License: GPLv3
+
+# FIXME: this is just the gitweb URL. Do we need more?
+URL:
http://repo.or.cz/w/iwhd.git
+
+# pulled from upstream git,
+# to recreate tarball, check out commit, then run "make dist"
+Source0: iwhd-%{version}.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: boost-devel
+BuildRequires: boost-filesystem
+BuildRequires: glib2-devel
+BuildRequires: hail-devel
+BuildRequires: jansson-devel
+BuildRequires: libcurl-devel
+BuildRequires: libmicrohttpd-devel
+BuildRequires: libxml2-devel
+BuildRequires: mongodb-devel
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: mongodb-server
+BuildRequires: help2man
+
+%description
+Deltacloud image-warehouse daemon
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%check
+make -s check
+
+%clean
+rm -rf %{buildroot}
+
+%post
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README NEWS
+%{_bindir}/iwhd
+
+%changelog
+* Wed Oct 7 2010 Jim Meyering <meyering(a)redhat.com> - 0.90-1
+- Initial release.
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 1 +
Makefile.am | 28 ++++++++++++++++++++++---
iwhd.spec.in | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 88 insertions(+), 4 deletions(-)
create mode 100644 iwhd.spec.in
repo.or.cz automatic notification. Contact project admin jim(a)meyering.net
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
iwhd.git ("image warehouse daemon")