forked from adam-stokes/deprecated-matahari-bm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mingw32-matahari.spec.in
82 lines (55 loc) · 2.41 KB
/
mingw32-matahari.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
%global specversion 17
%global upstream_version cb3faf4
# Keep around for when/if required
%global alphatag %{upstream_version}.git
%global mh_release %{?alphatag:0.}%{specversion}%{?alphatag:.%{alphatag}}%{?dist}
Name: mingw32-matahari
Version: #MATAHARI_VERSION#
Release: %{mh_release}
Summary: Matahari QMF Agents for Windows guests
Group: Applications/System
License: GPLv2+
URL: http://fedorahosted.org/matahari
# wget --no-check-certificate -O matahari-matahari-{upstream_version}.tgz https://github.com/matahari/matahari/tarball/{upstream_version}
Source0: matahari-matahari-%{upstream_version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: redhat-rpm-config cmake make qpid-qmf-devel
BuildRequires: mingw32-filesystem >= 57
BuildRequires: mingw32-gcc-c++ mingw32-nsis genisoimage
BuildRequires: mingw32-pcre mingw32-qpid-cpp mingw32-srvany mingw32-glib2 mingw32-sigar
%description
Matahari provides a QMF Agent that can be used to control and manage
various pieces of functionality for an ovirt node, using the AMQP protocol.
The Advanced Message Queuing Protocol (AMQP) is an open standard application
layer protocol providing reliable transport of messages.
QMF provides a modeling framework layer on top of qpid (which implements
AMQP). This interface allows you to manage a host and its various components
as a set of objects with properties and methods.
MinGW cross-compiled Windows application.
#{_mingw32_debug_package}
%prep
%setup -q -n matahari-matahari-%{upstream_version}
%build
PATH=%{_mingw32_bindir}:$PATH
%{_mingw32_cmake} --debug-output -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=on
make VERBOSE=1 %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make VERBOSE=1 %{?_smp_mflags} package
genisoimage -o matahari-%{version}-win32.iso matahari-%{version}-win32.exe src/windows/autorun.inf
%{__install} -d $RPM_BUILD_ROOT/%{_mingw32_datadir}/matahari
%{__install} matahari-%{version}-win32.iso $RPM_BUILD_ROOT/%{_mingw32_datadir}/matahari
%clean
test "x%{buildroot}" != "x" && rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_mingw32_datadir}/matahari
%doc AUTHORS COPYING
%changelog
* Tue Oct 12 2010 Andrew Beekhof <[email protected]> - 0.4.0-0.12.060266b.git
- Initial build.
* Fri Sep 10 2010 Andrew Beekhof <[email protected]> - 0.4.0-0.1
- Initial build.