blob: 1083e5d77a9b8fa306773b391c4ea65aabda9bb6 (
plain)
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
82
83
84
85
86
87
88
|
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
Name: mingw32-libosinfo
Version: @VERSION@
Release: 1%{?dist}%{?extra_release}
Summary: MinGW Windows port of a library for managing OS information for virtualization
License: LGPLv2+
Group: Development/Libraries
Source: libosinfo-%{version}.tar.gz
URL: https://fedorahosted.org/libosinfo/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 40
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-glib2
BuildRequires: mingw32-libxml2
BuildRequires: mingw32-libsoup
BuildRequires: mingw32-libsoup-gnome
BuildRequires: pkgconfig
Requires: pkgconfig
%description
libosinfo is a library that allows virtualization provisioning tools to
determine the optimal device settings for a hypervisor/operating system
combination.
%prep
%setup -q -n libosinfo-%{version}
%build
%{_mingw32_configure} --enable-introspection=no --enable-tests=no
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# Remove static libraries but DON'T remove *.dll.a files.
rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/libosinfo-1.0.a
# Kill gtk-doc stuff that just duplicates content from
# the native package
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
#find_lang libosinfo
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.LIB NEWS README
%{_mingw32_bindir}/osinfo-detect.exe
%{_mingw32_bindir}/osinfo-db-validate.exe
%{_mingw32_bindir}/osinfo-query.exe
%{_mingw32_bindir}/libosinfo-1.0-0.dll
%{_mingw32_libdir}/libosinfo-1.0.dll.a
%{_mingw32_libdir}/libosinfo-1.0.la
%{_mingw32_libdir}/pkgconfig/libosinfo-1.0.pc
%dir %{_mingw32_includedir}/libosinfo-1.0/
%dir %{_mingw32_includedir}/libosinfo-1.0/osinfo
%{_mingw32_includedir}/libosinfo-1.0/osinfo/*.h
%dir %{_mingw32_datadir}/libosinfo
%dir %{_mingw32_datadir}/libosinfo/db
%dir %{_mingw32_datadir}/libosinfo/schemas
%{_mingw32_datadir}/libosinfo/db/usb.ids
%{_mingw32_datadir}/libosinfo/db/pci.ids
%{_mingw32_datadir}/libosinfo/db/devices
%{_mingw32_datadir}/libosinfo/db/oses
%{_mingw32_datadir}/libosinfo/db/hypervisors
%{_mingw32_datadir}/libosinfo/schemas/libosinfo.rng
%{_mingw32_mandir}/man1/osinfo-db-validate.1*
%{_mingw32_mandir}/man1/osinfo-detect.1*
%{_mingw32_mandir}/man1/osinfo-query.1*
%changelog
* Wed Aug 25 2010 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1
- Initial package
|