OBS User unknown 2007-03-07 21:48:39 +00:00 committed by Git OBS Bridge
parent ecb7136a15
commit 65450f671e
5 changed files with 122 additions and 64 deletions

3
libvirt-0.2.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa83fef8abae580e4fa966003cbc52406b5b767fd91198c85ff9a0c237f6eaa2
size 928863

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86412c4fbe780ffd114c43da4e12b7afed07699c15e6410f7de47c785c8b94f7
size 1628703

22
libvirt-cflags.patch Normal file
View 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])

View File

@ -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

View File

@ -11,18 +11,22 @@
# norootforbuild
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/
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: Development/Libraries/C and C++
Autoreqprov: yes
Version: 0.2.0
Release: 1
Release: 3
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
Requires: xen libxml2 readline ncurses gnutls
ExclusiveArch: %ix86 x86_64
%define _libexecdir %{_prefix}/lib/%{name}
%description
Libvirt is a C toolkit to interract with the virtualization
@ -43,7 +47,7 @@ Authors:
%package devel
Summary: A C toolkit to interract with the virtualization capabilities of Linux
Group: Development/Libraries/C and C++
Requires: libvirt = %{version}
Requires: %{name} = %{version} libxml2-devel xen-devel
%description devel
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:
--------
Daniel Veillard <veillard@redhat.com>
@ -64,8 +89,9 @@ Authors:
%package python
Summary: A C toolkit to interract with the virtualization capabilities of Linux
Group: Development/Libraries/C and C++
Requires: libvirt = %{version}
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
Requires: %{name} = %{version}
%py_requires
%description python
Libvirt is a C toolkit to interract with the virtualization
@ -84,88 +110,89 @@ Authors:
Karel Zak <kzak@redhat.com>
%prep
%setup
%setup -q
%patch
rm po/no.*
%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
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
%{__rm} -rf $RPM_BUILD_ROOT
%makeinstall
(cd docs/examples ; make clean ; rm -rf .deps)
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
%makeinstall DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
cp -a AUTHORS ChangeLog COPYING COPYING.LIB NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/
cp -a docs/{*.html,*.gif,*.rng,{libvirt,test}*.xml} $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
cp -a docs/examples/{*.c,*.html,info1,suspend} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/examples.x*
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
#cat > $RPM_BUILD_ROOT/etc/permissions.d/libvirt <<EOF
#%{_libdir}/libvirt_proxy root.root 4755
#EOF
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/libvirt_proxy
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/as
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
rm $RPM_BUILD_ROOT%{_libexecdir}/libvirt_proxy
%find_lang %{name}
%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)
%doc README
%doc %{_mandir}/man1/virsh.1*
%{_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(0755, root, root) %{_libexecdir}/libvirt_qemud
%doc %{_datadir}/doc/libvirt-%{version}/html/*
%dir %{_datadir}/doc/libvirt-%{version}
%dir %{_datadir}/doc/libvirt-%{version}/html
%{_libexecdir}/libvirt_qemud
%doc %{_mandir}/man1/virsh.1*
#/etc/permissions.d/libvirt
# Localization files
%{_datadir}/locale/*/LC_MESSAGES/*
%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_includedir}/libvirt/*.h
%dir /usr/include/libvirt
%{_includedir}/libvirt
%{_libdir}/*.so
%{_libdir}/pkgconfig/libvirt.pc
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%dir %{_datadir}/gtk-doc/html/libvirt
%doc docs/*.html docs/html docs/*.gif
%doc docs/examples
%doc docs/libvirt-api.xml
%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 doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libvirt
%doc %{_docdir}/%{name}/*.gif
%doc %{_docdir}/%{name}/*.c
%doc %{_docdir}/%{name}/*.html
%doc %{_docdir}/%{name}/*.rng
%doc %{_docdir}/%{name}/*.xml
%doc %{_docdir}/%{name}/html
%files python
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING.LIB
%{_libdir}/python*/site-packages/libvirt.py*
%{_libdir}/python*/site-packages/libvirtmod*
%doc python/tests/*.py
%doc python/TODO
%doc python/libvirtclass.txt
%doc docs/examples/python
%doc %{_docdir}/%{name}-python
%{py_sitedir}/libvirt.py*
%{py_sitedir}/libvirtmod*
%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
- Removed usr/lib/libvirt_proxy setuid binary from package. Fixes
bug #246610.