-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpython-lmiwbem.spec.in
125 lines (97 loc) · 3.2 KB
/
python-lmiwbem.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
%global with_doc 0
Name: python-lmiwbem
Version: @VERSION@
Release: 1%{?dist}
Summary: Python WBEM Client
License: LGPLv2+
URL: https://github.com/phatina/python-lmiwbem
Source0: https://github.com/phatina/python-lmiwbem/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: python2-devel
%if %{with_doc}
BuildRequires: python-sphinx
BuildRequires: python-sphinx_rtd_theme
BuildRequires: python-sphinxcontrib-napoleon
%endif
BuildRequires: boost-devel >= 1.40.0
BuildRequires: boost-python >= 1.40.0
BuildRequires: openslp-devel
BuildRequires: tog-pegasus-devel >= 2.12.0
BuildRequires: tog-pegasus-libs >= 2.12.0
Requires: boost-python >= 1.40.0
Requires: openslp
Requires: python
Requires: tog-pegasus-libs >= 2.12.0
Provides: lmiwbem = %{version}-%{release}
Provides: lmiwbem%{?_isa} = %{version}-%{release}
Obsoletes: lmiwbem <= 0.6.0-2
%description
%{name} is a Python library, which performs CIM operations using CIM-XML
protocol. The library tries to mimic PyWBEM.
%if %{with_doc}
%package doc
Summary: Documentation for %{name}
Group: Documentation
BuildArch: noarch
Provides: lmiwbem-doc = %{version}-%{release}
Obsoletes: lmiwbem-doc <= 0.6.0-2
%description doc
%{summary}
%endif
%prep
%setup -q -n %{name}-%{version}
%build
%configure \
%if %{with_doc}
--with-doc=yes
%endif
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' | xargs rm -f
%files
%doc COPYING README.md
%{python2_sitearch}/lmiwbem/
%if %{with_doc}
%files doc
%doc COPYING README.md
%dir %{_docdir}/%{name}-%{version}
%{_docdir}/%{name}-%{version}/html
%endif
%changelog
* @SPECFILE_DATE@ Peter Hatina <[email protected]> - @VERSION@-1
- upgrade to @VERSION@
* Mon Jun 29 2015 Peter Hatina <[email protected]> - 0.7.2-1
- upgrade to 0.7.2
* Tue Feb 24 2015 Peter Hatina <[email protected]> - 0.7.1-1
- upgrade to 0.7.1
- rename to python-lmiwbem
* Mon Feb 23 2015 Peter Hatina <[email protected]> - 0.7.0-1
- upgrade to 0.7.0
* Thu Jan 29 2015 Peter Hatina <[email protected]> - 0.6.1-pre-1
- doc: switch to google style docstrings
* Tue Jan 13 2015 Peter Hatina <[email protected]> - 0.6.0-1
- upgrade to 0.6.0
* Wed Nov 3 2014 Peter Hatina <[email protected]> - 0.5.0-1
- upgrade to 0.5.0
* Wed Oct 29 2014 Peter Hatina <[email protected]> - 0.4.0-2
- doc: switch to rtd theme
* Wed Oct 29 2014 Peter Hatina <[email protected]> - 0.4.0-1
- upgrade to 0.4.0
* Tue Sep 23 2014 Peter Hatina <[email protected]> - 0.3.1-3
- introduce conditional documentation build
* Tue Sep 23 2014 Devchandra <[email protected]> - 0.3.1-2
- fix (Build)Requires
- spec typos
* Fri Aug 29 2014 Peter Hatina <[email protected]> - 0.3.1-1
- upgrade to 0.3.1
* Tue Aug 26 2014 Peter Hatina <[email protected]> - 0.3.0-1
- upgrade to 0.3.0
* Thu Jul 31 2014 Peter Hatina <[email protected]> - 0.2.0-2
- fix (Build)Requires
* Wed May 21 2014 Peter Hatina <[email protected]> - 0.2.0-1
- upgrade to 0.2.0
- introduce lmiwbem-doc package
* Wed Jan 29 2014 Peter Hatina <[email protected]> - 0.1.0-1
- initial import