diff --git a/.libgovirt.metadata b/.libgovirt.metadata new file mode 100644 index 0000000..1a35d04 --- /dev/null +++ b/.libgovirt.metadata @@ -0,0 +1 @@ +0199f8649c5288e4ba67f7250fdcc72f0bc410b1 SOURCES/libgovirt-0.1.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/libgovirt.spec b/SPECS/libgovirt.spec new file mode 100644 index 0000000..97eb74a --- /dev/null +++ b/SPECS/libgovirt.spec @@ -0,0 +1,96 @@ +# -*- rpm-spec -*- + +%global with_gir 0 + +%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 +%global with_gir 1 +%endif + +Summary: A GObject library for interacting with oVirt REST API +Name: libgovirt +Version: 0.1.0 +Release: 1%{?dist}%{?extra_release} +License: LGPLv2+ +Group: Development/Libraries +Source: http://people.freedesktop.org/~teuf/govirt/%{name}-%{version}.tar.xz +URL: http://people.freedesktop.org/~teuf/govirt/ +BuildRequires: glib2-devel +BuildRequires: rest-devel >= 0.7.90 +%if %{with_gir} +BuildRequires: gobject-introspection-devel +%endif + +%description +libgovirt is a library that allows applications to use oVirt REST API +to list VMs managed by an oVirt instance, and to get the connection +parameters needed to make a SPICE/VNC connection to them. + +%package devel +Summary: Libraries, includes, etc. to compile with the libgovirt library +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig +Requires: glib2-devel + +%description devel +libgovirt is a library that allows applications to use oVirt REST API +to list VMs managed by an oVirt instance, and to get the connection +parameters needed to make a SPICE/VNC connection to them. + +Libraries, includes, etc. to compile with the libgovirt library + +%prep +%setup -q + +%build +%if %{with_gir} +%global gir_arg --enable-introspection=yes +%else +%global gir_arg --enable-introspection=no +%endif + +%configure %{gir_arg} +%__make %{?_smp_mflags} V=1 + +%install +%__make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/*.a +rm -f %{buildroot}%{_libdir}/*.la + +%check +make check + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS COPYING MAINTAINERS README +%{_libdir}/%{name}.so.1* +%if %{with_gir} +%{_libdir}/girepository-1.0/GoVirt-1.0.typelib +%endif + +%files devel +%{_libdir}/%{name}.so +%dir %{_includedir}/govirt-1.0/ +%dir %{_includedir}/govirt-1.0/govirt/ +%{_includedir}/govirt-1.0/govirt/*.h +%{_libdir}/pkgconfig/govirt-1.0.pc +%if %{with_gir} +%{_datadir}/gir-1.0/GoVirt-1.0.gir +%endif + +%changelog +* Tue Jun 11 2013 Christophe Fergeau 0.1.0-1 +- Update to upstream release 0.1.0 + +* Mon Mar 11 2013 Christophe Fergeau 0.0.3-2 +- Removed definition of BuildRoot and cleanup of BuildRoot in %clean +- Added missing arch to versioned Requires: %%{name} in the -devel package +- Don't include empty NEWS and ChangeLog in built RPM + +* Wed Feb 20 2013 Christophe Fergeau 0.0.3-1 +- Initial import of libgovirt 0.0.3 + +