mingw32-libvirt.spec.in 4.0 KB
Newer Older
R
Richard W.M. Jones 已提交
1 2 3 4 5
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
6
%define __debug_install_post %{_mingw32_debug_install_post}
R
Richard W.M. Jones 已提交
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

Name:           mingw32-libvirt
Version:        @VERSION@
Release:        3%{?dist}%{?extra_release}
Summary:        MinGW Windows libvirt virtualization library

License:        LGPLv2+
Group:          Development/Libraries
URL:            http://libvirt.org/
Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-gcc
BuildRequires:  mingw32-binutils
BuildRequires:  mingw32-libgpg-error
BuildRequires:  mingw32-libgcrypt
BuildRequires:  mingw32-gnutls
BuildRequires:  mingw32-gettext
BuildRequires:  mingw32-libxml2
BuildRequires:  mingw32-portablexdr
BuildRequires:  pkgconfig
# Need native version for msgfmt
BuildRequires:  gettext

BuildArch:      noarch

34
%{?_mingw32_debug_package}
R
Richard W.M. Jones 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

%description
MinGW Windows libvirt virtualization library.


%prep
%setup -q -n libvirt-%{version}


%build
# XXX enable SASL in future
%{_mingw32_configure} \
  --without-sasl \
  --without-avahi \
  --without-polkit \
  --without-python \
  --without-xen \
  --without-qemu \
  --without-lxc \
54
  --without-uml \
55
  --without-vbox \
R
Richard W.M. Jones 已提交
56
  --without-openvz \
57
  --without-phyp \
58
  --without-netcf \
59
  --without-audit \
60
  --without-dtrace \
R
Richard W.M. Jones 已提交
61 62 63 64 65 66 67 68 69 70 71 72 73 74
  --without-libvirtd
make


%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install

rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*

rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
75
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-qemu.a
R
Richard W.M. Jones 已提交
76 77 78 79 80 81 82 83 84 85


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/libvirt-0.dll
%{_mingw32_bindir}/virsh.exe
86
%{_mingw32_bindir}/virt-xml-validate
87
%{_mingw32_bindir}/virt-pki-validate
88
%{_mingw32_bindir}/libvirt-qemu-0.dll
R
Richard W.M. Jones 已提交
89 90 91 92

%{_mingw32_libdir}/libvirt.dll.a
%{_mingw32_libdir}/libvirt.la
%{_mingw32_libdir}/pkgconfig/libvirt.pc
93 94
%{_mingw32_libdir}/libvirt-qemu.dll.a
%{_mingw32_libdir}/libvirt-qemu.la
R
Richard W.M. Jones 已提交
95

96 97 98
%dir %{_mingw32_datadir}/libvirt/
%dir %{_mingw32_datadir}/libvirt/schemas/
%{_mingw32_datadir}/libvirt/schemas/domain.rng
E
Eric Blake 已提交
99
%{_mingw32_datadir}/libvirt/schemas/domainsnapshot.rng
100 101 102 103 104
%{_mingw32_datadir}/libvirt/schemas/network.rng
%{_mingw32_datadir}/libvirt/schemas/storagepool.rng
%{_mingw32_datadir}/libvirt/schemas/storagevol.rng
%{_mingw32_datadir}/libvirt/schemas/nodedev.rng
%{_mingw32_datadir}/libvirt/schemas/capability.rng
105
%{_mingw32_datadir}/libvirt/schemas/interface.rng
106
%{_mingw32_datadir}/libvirt/schemas/nwfilter.rng
M
Miloslav Trmač 已提交
107
%{_mingw32_datadir}/libvirt/schemas/secret.rng
108
%{_mingw32_datadir}/libvirt/schemas/storageencryption.rng
109

110 111
%{_mingw32_datadir}/libvirt/cpu_map.xml

R
Richard W.M. Jones 已提交
112 113 114 115 116
%{_mingw32_datadir}/locale/*/LC_MESSAGES/libvirt.mo

%dir %{_mingw32_includedir}/libvirt
%{_mingw32_includedir}/libvirt/libvirt.h
%{_mingw32_includedir}/libvirt/virterror.h
117
%{_mingw32_includedir}/libvirt/libvirt-qemu.h
R
Richard W.M. Jones 已提交
118 119

%{_mingw32_mandir}/man1/virsh.1*
120
%{_mingw32_mandir}/man1/virt-xml-validate.1*
121
%{_mingw32_mandir}/man1/virt-pki-validate.1*
R
Richard W.M. Jones 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145


%changelog
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
- BuildArch should be noarch

* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
- Whitespace removal.

* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
- New upstream release 0.4.6.
- Rename mingw -> mingw32.

* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
- Import crash fix from rawhide

* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
- Add dep on gettext & pkgconfig

* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
- Remove static lib.

* Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
- Initial RPM release, largely based on earlier work from several sources.