Compare commits

...

4 Commits

View File

@ -1,5 +1,5 @@
Name: qemu
Version: 2.11.1
Version: 4.2.0
Release: 1mamba
Summary: A generic and open source processor emulator
Group: Applications/Emulators
@ -74,6 +74,7 @@ BuildRequires: spice-protocol-devel
BuildRequires: libusbredir-devel
BuildRequires: libcelt051-devel
BuildRequires: libnfs-devel
BuildRequires: libopenssl-static
#% if "%{_build_cpu}" != "ppc"
#BuildRequires: gcc34
#% endif
@ -150,15 +151,17 @@ This package contains static user mode emulators. In this mode, QEMU can launch
--disable-bluez \
--disable-system \
--disable-strip \
--disable-libssh2 \
--disable-libnfs \
--disable-libxml2 \
--disable-gnutls \
--enable-linux-user
# --disable-libssh2 \
# --disable-smartcard-nss \
# --disable-usb-redir \
# --disable-vde \
%make
%make LIBSSH_LIBS="-lssh -lcrypto -ldl -lgss"
mkdir static
find *-linux-user -name qemu-\* -exec mv {} static/ \;
@ -190,10 +193,14 @@ make clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m 755 %{S:1} \
%{buildroot}%{_prefix}/lib/systemd/scripts/%{name}-binfmt
install -D -m 0644 %{S:5} \
%{buildroot}%{_unitdir}/qemu.service
#install -D -m 755 %{S:1} \
# %{buildroot}%{_prefix}/lib/systemd/scripts/%{name}-binfmt
#install -D -m 0644 %{S:5} \
# %{buildroot}%{_unitdir}/qemu.service
install -d -m0755 %{buildroot}%{_binfmtdir}
scripts/qemu-binfmt-conf.sh --exportdir %{buildroot}%{_binfmtdir}/ \
--systemd ALL --qemu-path %{_bindir}
cd static
for f in *; do
@ -214,23 +221,9 @@ install -D -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/qemu-ga
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
# new install
%systemd_post qemu
if [ $1 -gt 1 ]; then
systemctl --no-reload preset qemu >/dev/null 2>&1 || :
fi
:
%preun
# erase
%systemd_preun qemu
:
%postun
# upgrade
%systemd_postun_with_restart qemu.service
:
#%post
#% binfmt_apply
#:
%post guest-agent
%systemd_post qemu-guest-agent.service
@ -260,22 +253,26 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}*
%{_bindir}/elf2dmp
%exclude %{_bindir}/qemu-ga
%{_bindir}/ivshmem-client
%{_bindir}/ivshmem-server
#%{_bindir}/vscclient
%exclude %{_bindir}/%{name}*.static
%{_bindir}/virtfs-proxy-helper
%{_unitdir}/qemu.service
%{_prefix}/lib/systemd/scripts/%{name}-binfmt
%exclude %{_bindir}/%{name}*.static
%{_datadir}/applications/qemu.desktop
%{_datadir}/icons/hicolor/*/apps/qemu.png
%{_datadir}/icons/hicolor/*/apps/qemu.bmp
%{_datadir}/icons/hicolor/scalable/apps/qemu.svg
%{_libexecdir}/qemu-bridge-helper
%{_datadir}/%{name}
%{_binfmtdir}/*.conf
%{_docdir}/%{name}
%{_mandir}/man1/%{name}*
%{_mandir}/man1/qemu*
%{_mandir}/man1/virtfs-proxy-helper.1*
%{_mandir}/man7/%{name}-qmp-ref.7*
%{_mandir}/man7/%{name}-block-drivers.7*
%{_mandir}/man8/%{name}-nbd.8*
%{_mandir}/man7/qemu-qmp-ref.7*
%{_mandir}/man7/qemu-block-drivers.7*
%{_mandir}/man7/qemu-cpu-models.7*
%{_mandir}/man8/qemu-nbd.8*
%doc COPYING COPYING.LIB
%files guest-agent
@ -312,6 +309,18 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
%attr(0755,root,root) %{_bindir}/%{name}*.static
%changelog
* Tue Jan 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-1mamba
- update to 4.2.0
* Wed Apr 24 2019 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
- automatic version update by autodist
* Mon Feb 11 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-1mamba
- update to 3.1.0
* Sun Sep 09 2018 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic version update by autodist
* Fri Feb 16 2018 Automatic Build System <autodist@mambasoft.it> 2.11.1-1mamba
- automatic version update by autodist