blob: 894bcb8937d2614382291ee6bf11320816e8804f (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# -*- rpm-spec -*-
%define with_introspection 0
%define with_python 0
%if 0%{?fedora} >= 15
%define with_introspection 1
%endif
%if 0%{?rhel} >= 6
%define with_introspection 1
%endif
Name: @PACKAGE@
Version: @VERSION@
Release: 1%{?dist}%{?extra_release}
Summary: Libvirt configuration designer
Group: Development/Tools
License: LGPLv2+
URL: http://libvirt.org/
Source0: http://libvirt.org/sources/designer/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libvirt-gconfig-devel >= @LIBVIRT_GCONFIG_REQUIRED@
BuildRequires: libvirt-gobject-devel >= @LIBVIRT_GOBJECT_REQUIRED@
%if %{with_introspection}
BuildRequires: gobject-introspection-devel
%endif
BuildRequires: libosinfo-devel >= @LIBOSINFO_REQUIRED@
%package libs
Group: Development/Libraries
Summary: Libvirt configuration designer libraries
%package devel
Group: Development/Libraries
Summary: Libvirt configuration designer development headers
Requires: %{name}-libs = %{version}-%{release}
Requires: libvirt-gconfig-devel >= @LIBVIRT_GCONFIG_REQUIRED@
%description
This package provides the libvirt configuration designer command
line tools.
%description libs
This package provides the libvirt configuration designer run-time
libraries.
%description devel
This package provides the libvirt configuration designer development
headers
%prep
%setup -q
%build
%if %{with_introspection}
%define introspection_arg --enable-introspection
%else
%define introspection_arg --disable-introspection
%endif
%configure %{introspection_arg}
%__make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%__make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-designer-1.0.a
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-designer-1.0.la
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/virtxml
%{_mandir}/man1/virtxml.1*
%files libs
%defattr(-,root,root,-)
%doc README COPYING AUTHORS ChangeLog NEWS
%{_libdir}/libvirt-designer-1.0.so.*
%if %{with_introspection}
%{_libdir}/girepository-1.0/LibvirtDesigner-1.0.typelib
%endif
%files devel
%defattr(-,root,root,-)
%{_libdir}/libvirt-designer-1.0.so
%{_libdir}/pkgconfig/libvirt-designer-1.0.pc
%dir %{_includedir}/libvirt-designer-1.0
%dir %{_includedir}/libvirt-designer-1.0/libvirt-designer
%{_includedir}/libvirt-designer-1.0/libvirt-designer/libvirt-designer.h
%{_includedir}/libvirt-designer-1.0/libvirt-designer/libvirt-designer-*.h
%if %{with_introspection}
%{_datadir}/gir-1.0/LibvirtDesigner-1.0.gir
%endif
%{_datadir}/gtk-doc/html/libvirt-designer
%changelog
|