xen/xen.spec

371 lines
13 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%define bigver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2)
Name: xen
Version: 4.18.0
Release: 1mamba
Summary: An high performing server virtualization software
Group: Applications/Emulators
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://xenproject.org/
Source: https://downloads.xenproject.org/release/xen/%{version}/xen-%{version}.tar.gz
Source1: xen-grub-conf-07_xen
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL2-devel
BuildRequires: libX11-devel
BuildRequires: libaio-devel
BuildRequires: libalsa-devel
BuildRequires: libbrltty-devel
BuildRequires: libbzip2-devel
BuildRequires: libcacard-devel
BuildRequires: libcairo-devel
BuildRequires: libcap-ng-devel
BuildRequires: libcurl-devel
BuildRequires: libdw-devel
BuildRequires: libe2fs-devel
BuildRequires: libepoxy-devel
BuildRequires: libfdt-devel
BuildRequires: libfuse3-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgnutls-devel
BuildRequires: libgtk3-devel
BuildRequires: libjack-devel
BuildRequires: libjpeg-devel
BuildRequires: libkeyutils-devel
BuildRequires: liblzma-devel
BuildRequires: liblzo-devel
BuildRequires: libmesa-devel
BuildRequires: libmultipath-tools-devel
BuildRequires: libncurses-devel
BuildRequires: libndctl-devel
BuildRequires: libnfs-devel
BuildRequires: libnl-devel
BuildRequires: libnuma-devel
BuildRequires: libpam-devel
BuildRequires: libpixman-devel
BuildRequires: libpng-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libpython311-devel
BuildRequires: libsasl2-devel
BuildRequires: libsdl2_image-devel
BuildRequires: libseccomp-devel
BuildRequires: libselinux-devel
BuildRequires: libsnappy-devel
BuildRequires: libsndio-devel
BuildRequires: libspice-devel
BuildRequires: libssh-devel
BuildRequires: libsystemd-devel
BuildRequires: libudev-devel
BuildRequires: libusb-devel
BuildRequires: libusbredir-devel
BuildRequires: libuuid-devel
BuildRequires: libvirglrenderer-devel
BuildRequires: libvte-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libyajl-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
#BuildRequires: libxen >= %{majver}
BuildRequires: libmultipath-tools-devel >= 0:0.9.4-1mamba
BuildRequires: ocaml-findlib
Requires: bridge-utils
Requires: python
Requires: libxen = %{?epoch:%epoch:}%{version}-%{release}
%description
With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the servers hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server.
Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met.
%package -n libxen
Summary: Libraries used by Xen
Group: System/Libraries
%description -n libxen
With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the servers hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server.
Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met.
This package contains the dynamic libraries used by Xen.
%package -n libxen-devel
Summary: Static libraries and header files for Xen
Requires: libxen = %{?epoch:%epoch:}%{version}-%{release}
Group: Development/Libraries
Provides: xen-devel
Obsoletes: xen-devel < 4.16.0
%description -n libxen-devel
With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the servers hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server.
Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met.
This is the development package.
%package -n python-xen
Summary: Python bindings for Xen
Group: System/Libraries
%description -n python-xen
With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the servers hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server.
Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met.
This package contains the python bindings.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
%build
#:<< _EOF
ld -v | grep gold && {
echo "ERROR: gold linker detected, this package requires standard ld; aborting."
exit 1
}
#export CFLAGS_FIX="$(echo %optflags | sed 's|-m64||g;s|-mtune=generic||g')"
%ifarch x86_64
make %{_smp_mflags} xen
%else
XEN_TARGET_ARCH=x86_64 make %{_smp_mflags} CROSS_COMPILE=x86_64-openmamba-linux-gnu- xen
%endif
%configure \
--disable-ocamltools \
--with-systemd=%{_unitdir} \
%ifarch %{ix86}
--disable-golang
%endif
# FIXME: compilation completes only when run from terminal
%make tools docs
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "%{_target_cpu}" == "i586"
XEN_TARGET_ARCH=x86_64 make CROSS_COMPILE=x86_64-openmamba-linux-gnu- install-xen DESTDIR=%{buildroot}
%else
make install-xen DESTDIR=%{buildroot}
%endif
make install-tools install-docs DESTDIR=%{buildroot}
install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/grub.d/07_xen
# enable xend-unix-server for virtual-manager
echo "(xend-unix-server yes)" >> %{buildroot}%{_sysconfdir}/xen/xend-config.sxp
install -d %{buildroot}%{_sysconfdir}/modules.d/
cat > %{buildroot}%{_sysconfdir}/modules.d/xen.conf << _EOF
blkbk
netbk
netloop
_EOF
rm -rf %{buildroot}%{_initrddir}
rm -f %{buildroot}%{_sysconfdir}/udev/xend.rules
# remove qemu etc, man and doc stuff installed under /usr/local
rm -rf %{buildroot}%{_prefix}/local
# remove files causing brp-strip error
rm -f %{buildroot}%{_datadir}/qemu-xen/qemu/opensbi-riscv*generic*.elf
rm -f %{buildroot}%{_datadir}/qemu-xen/qemu/palcode-clipper
rm -f %{buildroot}%{_datadir}/qemu-xen/qemu/hppa-firmware.img
%find_lang %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%if "%{_target_cpu}" == "i586"
if [ -x /usr/sbin/update-grub ]; then
/usr/sbin/update-grub 2>/dev/null
fi
%endif
:
%post -n libxen -p /sbin/ldconfig
%postun -n libxen -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/xencommons
%config(noreplace) %{_sysconfdir}/sysconfig/xendomains
%{_sysconfdir}/bash_completion.d/xl
%{_sysconfdir}/grub.d/07_xen
%dir %{_sysconfdir}/xen
%{_sysconfdir}/xen/*
%{_sysconfdir}/modules.d/xen.conf
/boot/xen-%{version}.gz
/boot/xen-%{majver}.gz
/boot/xen-%{bigver}.gz
/boot/xen-%{version}.config
/boot/xen.gz
%{_bindir}/pygrub
%{_bindir}/vchan-socket-proxy
%{_bindir}/xen-cpuid
%{_bindir}/xen-detect
%{_bindir}/xenalyze
#%{_bindir}/xencons
%{_bindir}/xencov_split
%{_bindir}/xenstore
%{_bindir}/xenstore-chmod
%{_bindir}/xenstore-control
%{_bindir}/xenstore-exists
%{_bindir}/xenstore-list
%{_bindir}/xenstore-ls
%{_bindir}/xenstore-read
%{_bindir}/xenstore-rm
%{_bindir}/xenstore-watch
%{_bindir}/xenstore-write
%{_bindir}/xentrace_format
%{_sbindir}/flask-getenforce
%{_sbindir}/flask-get-bool
%{_sbindir}/flask-label-pci
%{_sbindir}/flask-set-bool
%{_sbindir}/flask-loadpolicy
%{_sbindir}/flask-setenforce
%{_sbindir}/gdbsx
%{_sbindir}/xen*
%{_sbindir}/xl
%{_prefix}/lib/modules-load.d/xen.conf
%{_unitdir}/proc-xen.mount
#%{_unitdir}/var-lib-xenstored.mount
%{_unitdir}/xen-init-dom0.service
%{_unitdir}/xen-qemu-dom0-disk-backend.service
%{_unitdir}/xen-watchdog.service
%{_unitdir}/xenconsoled.service
%{_unitdir}/xendomains.service
%{_unitdir}/xenstored.service
%{_unitdir}/xendriverdomain.service
%ifarch x86_64
%{_prefix}/lib/debug/usr/libexec64/xen/boot/xen-shim-syms
%endif
%{_prefix}/lib/debug/xen-%{version}.efi.map
%{_mandir}/man1/*.gz
%{_mandir}/man5/*.gz
%{_mandir}/man7/xen*.7*
%{_mandir}/man7/xl-numa-placement.7*
%{_mandir}/man8/xentrace.8*
%ifnarch %{ix86}
%dir %{_datadir}/gocode/src/golang.xenproject.org
%dir %{_datadir}/gocode/src/golang.xenproject.org/xenlight
%{_datadir}/gocode/src/golang.xenproject.org/xenlight/*
%endif
%dir %{_datadir}/qemu-xen
%{_datadir}/qemu-xen/*
%{_docdir}/xen/*
%doc COPYING README
%files -n libxen
%defattr(-,root,root)
%{_libdir}/libxen*.so.*
%{_libdir}/libxlutil.so.*
%ifarch x86_64
%{_libdir}/efi/xen*.efi
%endif
%ifarch %{ix86}
%{_libdir}64/efi/xen*.efi
%endif
%dir %{_libdir}/xenfsimage
%{_libdir}/xenfsimage/*
%dir %{_libexecdir}/xen
%{_libexecdir}/xen/*
#%{_libdir}/ocaml/site-lib/*
#%dir %{_libdir}/xen
#%dir %{_libdir}/xen/bin
%files -n libxen-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libx*.a
%{_libdir}/libx*.so
%{_prefix}/lib/debug/xen-syms-%{version}*
%{_libdir}/pkgconfig/xen*.pc
%{_libdir}/pkgconfig/xlutil.pc
%files -n python-xen
%defattr(-,root,root)
%dir %{python3_sitearch}/xen
%{python3_sitearch}/xen/*
%{python3_sitearch}/xen-*.egg-info
%{python3_sitearch}/xenfsimage.cpython-*.so
%{python3_sitearch}/grub/*
%{python3_sitearch}/pygrub-*.egg-info
%changelog
* Thu Mar 14 2024 Automatic Build System <autodist@openmamba.org> 4.18.0-1mamba
- automatic version update by autodist
* Sun Oct 15 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.2-2mamba
- rebuilt with same libxen majver to fix deps on older version
* Sun Sep 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.2-1mamba
- update to 4.17.2
* Thu Dec 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.0-1mamba
- update to 4.17.0
* Mon Dec 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.16.2-2mamba
- rebuilt by autoport with build requirements: libmultipath-tools-devel>=0:0.9.4-1mamba
* Wed Aug 24 2022 Automatic Build System <autodist@mambasoft.it> 4.16.2-1mamba
- automatic version update by autodist
* Tue Apr 19 2022 Automatic Build System <autodist@mambasoft.it> 4.16.1-1mamba
- automatic version update by autodist
* Mon Jan 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.16.0-2mamba
- rebuilt with libmultipath-tools 0.8.8
* Sun Dec 26 2021 Automatic Build System <autodist@mambasoft.it> 4.16.0-1mamba
- automatic version update by autodist
* Sat Dec 10 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.0-1mamba
- update to 4.8.0
- fixed error in grub.d file
* Thu Jul 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.0-1mamba
- update to 4.7.0
* Wed May 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.2-1mamba
- update to 4.2.2
* Wed May 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.2-2mamba
- python 2.7 rebuild
* Sat Jun 16 2012 Automatic Build System <autodist@mambasoft.it> 4.1.2-1mamba
- automatic version update by autodist
* Thu Jan 13 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.1-2mamba
- rebuilt with xz 5.0.0
* Thu Sep 02 2010 Automatic Build System <autodist@mambasoft.it> 4.0.1-1mamba
- automatic update to 4.0.1 by autodist
* Tue Jun 22 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-2mamba
- added libxen and libxen-devel (replacing xen-devel) subpackages
- added pluggable module loading file for blkbk, netbk and netloop
- xend-config.sxp: configure unix-server for virtual-manager
* Fri Apr 09 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-1mamba
- update to 4.0.0
- added configuration file for grub 2
* Mon Mar 08 2010 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
- automatic update to 3.4.2 by autodist
* Sat Mar 06 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-2mamba
- added build of xen hypervisor (x86_64) and docs
* Fri Mar 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-1mamba
- update to 3.4.1
* Fri Jun 22 2007 Silvan Calarco <silvan.calarco@mambasoft.it> src-1mamba
- package created by autospec