From 197cc8a52f02e2c1f4881596abf682be6357cb8c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Jul 18 2008 15:01:15 +0000 Subject: first verion: 0.2.0, Daniel --- diff --git a/libvirt-java.spec b/libvirt-java.spec new file mode 100644 index 0000000..dcafa76 --- /dev/null +++ b/libvirt-java.spec @@ -0,0 +1,105 @@ +Summary: Java bindings for the libvirt virtualization API +Name: libvirt-java +Version: 0.2.0 +Release: 1%{?dist} +License: LGPLv2+ +Group: Development/Libraries +Source: http://libvirt.org/sources/java/libvirt-java-%{version}.tar.gz +URL: http://libvirt.org/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +Requires: libvirt >= 0.4.0 +Requires: java >= 1.5.0 +Requires: jpackage-utils +BuildRequires: libvirt-devel >= 0.4.0 +BuildRequires: java-devel >= 1.5.0 +BuildRequires: pkgconfig +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 >= 0.4.0 + +%package devel +Summary: Compressed Java source files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libvirt-devel >= 0.4.0 +Requires: pkgconfig + +%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: %{name} = %{version}-%{release} +Requires: jpackage-utils + +%description javadoc +API documentation for %{name}. +%prep +%setup -q + +%build +%configure --with-java-home=%{java_home} +# javac call is not parallelizable, as a result the same command is +# run N times in parallel if %{?_smp_mflags} is set up +make + +# fix up the modification date of generated documentation +find doc -type f -newer ChangeLog | xargs touch -r ChangeLog + +%install +rm -fr %{buildroot} + +make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install + +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING NEWS README INSTALL +%{_libdir}/libvirt_jni*.so.* +%{_datadir}/java/*.jar + +%files devel +%defattr(-,root,root) +%doc src/*.java +%{_libdir}/libvirt_jni*.so +%{_libdir}/pkgconfig/*.pc + +%files javadoc +%defattr(-,root,root) +/usr/share/javadoc/%{name}-%{version} + +%changelog +* Fri Jul 18 2008 Daniel Veillard - 0.2.0-1.fc9 +- new release 0.2.0 +- finished cleanup of APIs + +* Thu Jul 3 2008 Daniel Veillard - 0.1.2-1 +- new release 0.1.2 + +* Tue Jul 1 2008 Daniel Veillard - 0.1.1-1 +- new release 0.1.1 + +* Tue Jun 24 2008 Daniel Veillard - 0.1.0-1 +- created + diff --git a/sources b/sources index e69de29..c9445ec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8d3fe9bd9571fb0735db188f41fb278d libvirt-java-0.2.0.tar.gz