forked from pool/libvirt
This commit is contained in:
parent
ecb7136a15
commit
65450f671e
3
libvirt-0.2.0.tar.bz2
Normal file
3
libvirt-0.2.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fa83fef8abae580e4fa966003cbc52406b5b767fd91198c85ff9a0c237f6eaa2
|
||||||
|
size 928863
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:86412c4fbe780ffd114c43da4e12b7afed07699c15e6410f7de47c785c8b94f7
|
|
||||||
size 1628703
|
|
22
libvirt-cflags.patch
Normal file
22
libvirt-cflags.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
2nd chunk removes incomplete chec. Without it autoconf will fail.
|
||||||
|
================================================================================
|
||||||
|
--- configure.in
|
||||||
|
+++ configure.in
|
||||||
|
@@ -75,7 +75,7 @@
|
||||||
|
dnl make CFLAGS very pedantic at least during the devel phase for everybody
|
||||||
|
dnl
|
||||||
|
if test "${GCC}" = "yes" ; then
|
||||||
|
- CFLAGS="-g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
|
||||||
|
+ CFLAGS="-g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall $CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl
|
||||||
|
@@ -161,7 +161,7 @@
|
||||||
|
if test "z$with_libxml" = "zno" ; then
|
||||||
|
AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_MIN_VERSION)
|
||||||
|
AC_MSG_ERROR(libxml2 >= $LIBXML_MIN_VERSION is required for $XMLSEC_PACKAGE)
|
||||||
|
-elif test "z$with_libxml" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
|
||||||
|
+elif test "z$with_libxml" = "z" ; then
|
||||||
|
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_MIN_VERSION,
|
||||||
|
[LIBXML_FOUND=yes],
|
||||||
|
[LIBXML_FOUND=no])
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 7 18:50:05 CET 2007 - sbrabec@suse.cz
|
||||||
|
|
||||||
|
- Created -doc subpackage (#248813).
|
||||||
|
- Do not remove valid locales.
|
||||||
|
- Fixed docdir destination.
|
||||||
|
- Build with CFLAGS.
|
||||||
|
- Spec file cleanup.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 20 15:38:15 MST 2007 - jfehlig@novell.com
|
Tue Feb 20 15:38:15 MST 2007 - jfehlig@novell.com
|
||||||
|
|
||||||
|
149
libvirt.spec
149
libvirt.spec
@ -11,18 +11,22 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
BuildRequires: gettext gnutls-devel libxml2-devel ncurses-devel python python-devel readline-devel xen-devel
|
BuildRequires: gettext gnutls-devel libxml2-devel ncurses-devel pkg-config python python-devel readline-devel xen-devel xhtml-dtd
|
||||||
|
# Only for directory ownership:
|
||||||
|
BuildRequires: gtk-doc
|
||||||
URL: http://libvirt.org/
|
URL: http://libvirt.org/
|
||||||
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Autoreqprov: yes
|
Autoreqprov: yes
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 1
|
Release: 3
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Source0: libvirt-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Patch: libvirt-cflags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: xen libxml2 readline ncurses gnutls
|
Requires: xen libxml2 readline ncurses gnutls
|
||||||
ExclusiveArch: %ix86 x86_64
|
ExclusiveArch: %ix86 x86_64
|
||||||
|
%define _libexecdir %{_prefix}/lib/%{name}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libvirt is a C toolkit to interract with the virtualization
|
Libvirt is a C toolkit to interract with the virtualization
|
||||||
@ -43,7 +47,7 @@ Authors:
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libvirt = %{version}
|
Requires: %{name} = %{version} libxml2-devel xen-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Libvirt is a C toolkit to interract with the virtualization
|
Libvirt is a C toolkit to interract with the virtualization
|
||||||
@ -56,6 +60,27 @@ integrate other virtualization mechanisms if needed.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Daniel Veillard <veillard@redhat.com>
|
||||||
|
Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Libvirt is a C toolkit to interract with the virtualization
|
||||||
|
capabilities Linux. Virtualization of the Linux Operating System means
|
||||||
|
the ability to run multiple instances of Operating Systems concurently
|
||||||
|
on a single hardware system where the basic resources are driven by a
|
||||||
|
Linux instance. The library aims to provide long term stable C API
|
||||||
|
initially for the Xen paravirtualization but should be able to
|
||||||
|
integrate other virtualization mechanisms if needed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Daniel Veillard <veillard@redhat.com>
|
Daniel Veillard <veillard@redhat.com>
|
||||||
@ -64,8 +89,9 @@ Authors:
|
|||||||
%package python
|
%package python
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libvirt = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
|
|
||||||
|
%py_requires
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
Libvirt is a C toolkit to interract with the virtualization
|
Libvirt is a C toolkit to interract with the virtualization
|
||||||
@ -84,88 +110,89 @@ Authors:
|
|||||||
Karel Zak <kzak@redhat.com>
|
Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q
|
||||||
|
%patch
|
||||||
|
rm po/no.*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
autoreconf -f -i
|
||||||
|
# libvirt-0.2.0 FIXME:
|
||||||
|
# libvirt.c: 180
|
||||||
|
# xend_internal.c: 1033
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
%configure
|
%configure
|
||||||
make
|
make %{?jobs:-j%jobs} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
|
||||||
|
cd docs/examples ; make index.html ; cd ../..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%makeinstall DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
|
||||||
%makeinstall
|
cp -a AUTHORS ChangeLog COPYING COPYING.LIB NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/
|
||||||
(cd docs/examples ; make clean ; rm -rf .deps)
|
cp -a docs/{*.html,*.gif,*.rng,{libvirt,test}*.xml} $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
cp -a docs/examples/{*.c,*.html,info1,suspend} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/examples.x*
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
cp -a docs/examples/python/{*.py,*.xml,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-python/examples
|
||||||
|
chmod +x $RPM_BUILD_ROOT%{_docdir}/%{name}-python/examples/*.py
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
|
||||||
#mkdir -p $RPM_BUILD_ROOT/etc/permissions.d
|
#mkdir -p $RPM_BUILD_ROOT/etc/permissions.d
|
||||||
#cat > $RPM_BUILD_ROOT/etc/permissions.d/libvirt <<EOF
|
#cat > $RPM_BUILD_ROOT/etc/permissions.d/libvirt <<EOF
|
||||||
#%{_libdir}/libvirt_proxy root.root 4755
|
#%{_libdir}/libvirt_proxy root.root 4755
|
||||||
#EOF
|
#EOF
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/libvirt_proxy
|
rm $RPM_BUILD_ROOT%{_libexecdir}/libvirt_proxy
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/as
|
%find_lang %{name}
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/hy
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/my
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/or
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/si
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ur
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post
|
||||||
|
%run_ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun
|
||||||
|
%run_ldconfig
|
||||||
|
|
||||||
%files
|
%files -f %{name}.lang
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc README
|
|
||||||
%doc %{_mandir}/man1/virsh.1*
|
|
||||||
%{_bindir}/virsh
|
%{_bindir}/virsh
|
||||||
%{_libdir}/lib*.so.*
|
%doc %dir %{_docdir}/%{name}
|
||||||
|
%doc %{_docdir}/%{name}/[CNRT]*
|
||||||
|
%doc %{_docdir}/%{name}/AUTHORS
|
||||||
|
%doc %{_docdir}/%{name}/examples
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%dir %{_libexecdir}
|
||||||
#%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
|
#%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
|
||||||
%attr(0755, root, root) %{_libexecdir}/libvirt_qemud
|
%{_libexecdir}/libvirt_qemud
|
||||||
%doc %{_datadir}/doc/libvirt-%{version}/html/*
|
%doc %{_mandir}/man1/virsh.1*
|
||||||
%dir %{_datadir}/doc/libvirt-%{version}
|
|
||||||
%dir %{_datadir}/doc/libvirt-%{version}/html
|
|
||||||
#/etc/permissions.d/libvirt
|
#/etc/permissions.d/libvirt
|
||||||
# Localization files
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/lib*.so
|
%{_includedir}/libvirt
|
||||||
%{_includedir}/libvirt/*.h
|
%{_libdir}/*.so
|
||||||
%dir /usr/include/libvirt
|
|
||||||
%{_libdir}/pkgconfig/libvirt.pc
|
%{_libdir}/pkgconfig/libvirt.pc
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
|
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
|
%files doc
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
|
%defattr(-, root, root)
|
||||||
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
|
%{_datadir}/gtk-doc/html/libvirt
|
||||||
%dir %{_datadir}/gtk-doc
|
%doc %{_docdir}/%{name}/*.gif
|
||||||
%dir %{_datadir}/gtk-doc/html
|
%doc %{_docdir}/%{name}/*.c
|
||||||
%dir %{_datadir}/gtk-doc/html/libvirt
|
%doc %{_docdir}/%{name}/*.html
|
||||||
%doc docs/*.html docs/html docs/*.gif
|
%doc %{_docdir}/%{name}/*.rng
|
||||||
%doc docs/examples
|
%doc %{_docdir}/%{name}/*.xml
|
||||||
%doc docs/libvirt-api.xml
|
%doc %{_docdir}/%{name}/html
|
||||||
%doc %{_datadir}/doc/libvirt-python-%{version}/examples/*.py
|
|
||||||
%dir %{_datadir}/doc/libvirt-python-%{version}/examples
|
|
||||||
%doc %{_datadir}/doc/libvirt-python-%{version}/TODO
|
|
||||||
%dir %{_datadir}/doc/libvirt-python-%{version}
|
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc AUTHORS NEWS README COPYING.LIB
|
%doc %{_docdir}/%{name}-python
|
||||||
%{_libdir}/python*/site-packages/libvirt.py*
|
%{py_sitedir}/libvirt.py*
|
||||||
%{_libdir}/python*/site-packages/libvirtmod*
|
%{py_sitedir}/libvirtmod*
|
||||||
%doc python/tests/*.py
|
|
||||||
%doc python/TODO
|
|
||||||
%doc python/libvirtclass.txt
|
|
||||||
%doc docs/examples/python
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 07 2007 - sbrabec@suse.cz
|
||||||
|
- Created -doc subpackage (#248813).
|
||||||
|
- Do not remove valid locales.
|
||||||
|
- Fixed docdir destination.
|
||||||
|
- Build with CFLAGS.
|
||||||
|
- Spec file cleanup.
|
||||||
* Tue Feb 20 2007 - jfehlig@novell.com
|
* Tue Feb 20 2007 - jfehlig@novell.com
|
||||||
- Removed usr/lib/libvirt_proxy setuid binary from package. Fixes
|
- Removed usr/lib/libvirt_proxy setuid binary from package. Fixes
|
||||||
bug #246610.
|
bug #246610.
|
||||||
|
Loading…
Reference in New Issue
Block a user