forked from libvirt/libvirt-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibvirt-java.spec.in
More file actions
158 lines (123 loc) · 4.73 KB
/
libvirt-java.spec.in
File metadata and controls
158 lines (123 loc) · 4.73 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Summary: Java bindings for the libvirt virtualization API
Name: libvirt-java
Version: @version@
Prefix: libvirt
Release: @release@%{?dist}%{?extra_release}
License: MIT
BuildArch: noarch
Group: Development/Libraries
Source: http://libvirt.org/sources/java/%{name}-%{version}.tar.gz
URL: http://libvirt.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: jna
Requires: libvirt-client >= @libvirt.required@
%if 0%{?fedora} >= 21
Requires: java-headless >= @java.required@
%else
Requires: java >= @java.required@
%endif
Requires: jpackage-utils
BuildRequires: ant
BuildRequires: jna
BuildRequires: ant-junit
BuildRequires: java-devel >= @java.required@
BuildRequires: jpackage-utils
#
# the jpackage-utils should provide a %{java_home} macro
# to select a different Java JVM from the default one use the following
# rpmbuild --define 'java_home /usr/lib/jvm/your_jvm_of_choice'
#
%description
Libvirt-java is a base framework allowing to use libvirt, the virtualization
API though the Java programming language.
It requires libvirt-client >= @libvirt.required@
%package devel
Summary: Compressed Java source files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Libvirt-java is a base framework allowing to use libvirt, the virtualization
API though the Java programming language. This is the development part needed
to build applications with Libvirt-java.
%package javadoc
Summary: Java documentation for %{name}
Group: Development/Documentation
Requires: jpackage-utils
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%build
ant build jar docs
%install
rm -fr %{buildroot}
install -d -m0755 %{buildroot}%{_javadir}
install -d -m0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp target/%{prefix}-%{version}.jar %{buildroot}%{_javadir}/%{prefix}.jar
cp -r target/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{_javadocdir}/%{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%check
ant test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS LICENSE NEWS README INSTALL
%{_javadir}/*.jar
%files devel
%defattr(-,root,root)
%doc src/test/java/test.java
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog
* Fri Sep 20 2013 Daniel Veillard <veillard@redhat.com> - 0.5.1
- fix compatibility with java-1.6
* Fri Sep 13 2013 Daniel Veillard <veillard@redhat.com> - 0.5.0
- A few bug and portability fixes
- Some improvements and better migration and storage support
* Fri Jul 6 2012 Daniel Veillard <veillard@redhat.com> - 0.4.8-1
- Add flags to StoragePoolRefresh
- use byte[] array for secretGetValue
- Fix for the jna parameter passing issue
- Added domain flags and error constants for libvirt 0.9.12
* Thu Feb 3 2011 Bryan Kearney <bkearney@redhat.com> - 0.4.7-1
- Only throw errors on real errors.
- Remote non thread safe error reporting
- BZ 600819 Incorrect scheduler parameter value passed to native API.
* Tue Jul 6 2010 Bryan Kearney <bkearney@redhat.com> - 0.4.6-1
- Added libvirt support up to 0.8.2 API
* Mon May 24 2010 Bryan Kearney <bkearney@redhat.com> - 0.4.5-1
- Added libvirt support up to 0.8.1 API
* Fri May 14 2010 Bryan Kearney <bkearney@redhat.com> - 0.4.3-1
- Added libvirt API support for up to 0.7.1
- Reduce java dependencies to 1.5
- Improved packaging for javadocs
- Better Free/Close handling
* Fri Jan 29 2010 Bryan Kearney <bkearney@redhat.com> - 0.4.2-1
- Changed Scheduled Parameters to be a Union instead of a Struct.
- Better Pointer mappings in the error callback
* Mon Jan 18 2010 Bryan Kearney <bkearney@redhat.com> - 0.4.1-1
- Better null checking around Scheduled Parameters
- Added error function callback
* Tue Dec 1 2009 Bryan Kearney <bkearney@redhat.com> - 0.4.0-2
- Modified the dependency to be libvirt-client instead of libvirt.
* Tue Nov 24 2009 Bryan Kearney <bkearney@redhat.com> - 0.4.0-1
- Added libvirt APIs up through 0.7.0
* Tue Nov 24 2009 Bryan Kearney <bkearney@redhat.com> - 0.3.2-1
- Added libvirt APIs up through 0.6.1
* Thu Oct 29 2009 Bryan Kearney <bkearney@redhat.com> - 0.3.1-1
- Added maven building tools.
- Fixed connection and domain bugs found by Thomas Treutner
* Wed Jul 29 2009 Bryan Kearney <bkearney@redhat.com> - 0.3.0-1
- refactored the code to use jna (https://jna.dev.java.net/)
* Fri Jul 18 2008 Daniel Veillard <veillard@redhat.com> - 0.2.0-1
- new release 0.2.0
- finished cleanup of APIs
* Thu Jul 3 2008 Daniel Veillard <veillard@redhat.com> - 0.1.2-1
- new release 0.1.2
* Tue Jul 1 2008 Daniel Veillard <veillard@redhat.com> - 0.1.1-1
- new release 0.1.1
* Tue Jun 24 2008 Daniel Veillard <veillard@redhat.com> - 0.1.0-1
- created