build: make the "rpm" rule work once again
[iwhd.git] / iwhd.spec.in
blob2b28b53ef041e92248e09fe190a11db0d6d4c19b
1 Name: iwhd
2 Version: @VERSION@
3 Release: 1%{?dist}
4 Summary: Image WareHouse Daemon
6 Group: System Environment/Libraries
7 License: GPLv3
9 # FIXME: this is just the gitweb URL. Do we need more?
10 URL: http://repo.or.cz/w/iwhd.git
12 # pulled from upstream git,
13 # to recreate tarball, check out commit, then run "make dist"
14 Source0: iwhd-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 BuildRequires: boost-devel
19 BuildRequires: boost-filesystem
20 BuildRequires: glib2-devel
21 BuildRequires: hail-devel
22 BuildRequires: jansson-devel
23 BuildRequires: libcurl-devel
24 BuildRequires: libmicrohttpd-devel
25 BuildRequires: libxml2-devel
26 BuildRequires: mongodb-devel
27 BuildRequires: bison
28 BuildRequires: flex
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: mongodb-server
32 BuildRequires: help2man
34 %description
35 Deltacloud image-warehouse daemon
37 %prep
38 %setup -q
40 %build
41 %configure
42 make %{?_smp_mflags}
44 %install
45 rm -rf %{buildroot}
46 make install DESTDIR=%{buildroot}
48 %check
49 make -s check
51 %clean
52 rm -rf %{buildroot}
54 %post
56 %files
57 %defattr(-,root,root,-)
58 %doc AUTHORS COPYING README NEWS
59 %{_bindir}/iwhd
60 %{_mandir}/man8/iwhd.8*
62 %changelog
63 * Wed Oct 7 2010 Jim Meyering <meyering@redhat.com> - 0.90-1
64 - Initial release.