Blame SPECS/libgovirt.spec

a4c532
# -*- rpm-spec -*-
a4c532
a4c532
%global with_gir 0
a4c532
a4c532
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
a4c532
%global with_gir 1
a4c532
%endif
a4c532
a4c532
Summary: A GObject library for interacting with oVirt REST API
a4c532
Name: libgovirt
a4c532
Version: 0.1.0
cf9628
Release: 3%{?dist}%{?extra_release}
a4c532
License: LGPLv2+
a4c532
Group: Development/Libraries
a4c532
Source: http://people.freedesktop.org/~teuf/govirt/%{name}-%{version}.tar.xz
a4c532
URL: http://people.freedesktop.org/~teuf/govirt/
a4c532
BuildRequires: glib2-devel
a4c532
BuildRequires: rest-devel >= 0.7.90
a4c532
%if %{with_gir}
a4c532
BuildRequires: gobject-introspection-devel
a4c532
%endif
a4c532
a4c532
%description
a4c532
libgovirt is a library that allows applications to use oVirt REST API
a4c532
to list VMs managed by an oVirt instance, and to get the connection
a4c532
parameters needed to make a SPICE/VNC connection to them.
a4c532
a4c532
%package devel
a4c532
Summary: Libraries, includes, etc. to compile with the libgovirt library
a4c532
Group: Development/Libraries
a4c532
Requires: %{name}%{?_isa} = %{version}-%{release}
a4c532
Requires: pkgconfig
a4c532
Requires: glib2-devel
a4c532
a4c532
%description devel
a4c532
libgovirt is a library that allows applications to use oVirt REST API
a4c532
to list VMs managed by an oVirt instance, and to get the connection
a4c532
parameters needed to make a SPICE/VNC connection to them.
a4c532
a4c532
Libraries, includes, etc. to compile with the libgovirt library
a4c532
a4c532
%prep
a4c532
%setup -q
a4c532
a4c532
%build
a4c532
%if %{with_gir}
a4c532
%global gir_arg --enable-introspection=yes
a4c532
%else
a4c532
%global gir_arg --enable-introspection=no
a4c532
%endif
a4c532
a4c532
%configure %{gir_arg}
a4c532
%__make %{?_smp_mflags} V=1
a4c532
a4c532
%install
a4c532
%__make install DESTDIR=%{buildroot}
a4c532
rm -f %{buildroot}%{_libdir}/*.a
a4c532
rm -f %{buildroot}%{_libdir}/*.la
a4c532
a4c532
%check
a4c532
make check
a4c532
a4c532
%post -p /sbin/ldconfig
a4c532
a4c532
%postun -p /sbin/ldconfig
a4c532
a4c532
%files
a4c532
%doc AUTHORS COPYING MAINTAINERS README
a4c532
%{_libdir}/%{name}.so.1*
a4c532
%if %{with_gir}
a4c532
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
a4c532
%endif
a4c532
a4c532
%files devel
a4c532
%{_libdir}/%{name}.so
a4c532
%dir %{_includedir}/govirt-1.0/
a4c532
%dir %{_includedir}/govirt-1.0/govirt/
a4c532
%{_includedir}/govirt-1.0/govirt/*.h
a4c532
%{_libdir}/pkgconfig/govirt-1.0.pc
a4c532
%if %{with_gir}
a4c532
%{_datadir}/gir-1.0/GoVirt-1.0.gir
a4c532
%endif
a4c532
a4c532
%changelog
cf9628
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.0-3
cf9628
- Mass rebuild 2014-01-24
cf9628
cf9628
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.0-2
cf9628
- Mass rebuild 2013-12-27
cf9628
a4c532
* Tue Jun 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.1.0-1
a4c532
- Update to upstream release 0.1.0
a4c532
a4c532
* Mon Mar 11 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-2
a4c532
- Removed definition of BuildRoot and cleanup of BuildRoot in %clean
a4c532
- Added missing arch to versioned Requires: %%{name} in the -devel package
a4c532
- Don't include empty NEWS and ChangeLog in built RPM
a4c532
a4c532
* Wed Feb 20 2013 Christophe Fergeau <cfergeau@redhat.com> 0.0.3-1
a4c532
- Initial import of libgovirt 0.0.3
a4c532
a4c532