[main] Moving remaining `libvirt-*` packages into `SPECS`. (#2325)
* Re-enabling 'libvirt.spec' dependencies. * Moving 'libvirt-*' packages into 'SPECS'. * Unnecessary change. * Verifying license. * Linting.
This commit is contained in:
Родитель
bdd54e5acd
Коммит
bde0b332d6
|
@ -3,14 +3,13 @@
|
||||||
%define qemu_group qemu
|
%define qemu_group qemu
|
||||||
|
|
||||||
# Its dependencies cannot run their post-install scripts due to systemd not working in the build container.
|
# Its dependencies cannot run their post-install scripts due to systemd not working in the build container.
|
||||||
%bcond_with glusterfs
|
|
||||||
%bcond_with missing_dependencies
|
%bcond_with missing_dependencies
|
||||||
%bcond_with netcf
|
%bcond_with netcf
|
||||||
|
|
||||||
Summary: Virtualization API library that supports KVM, QEMU, Xen, ESX etc
|
Summary: Virtualization API library that supports KVM, QEMU, Xen, ESX etc
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: 7.10.0
|
Version: 7.10.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Vendor: Microsoft Corporation
|
Vendor: Microsoft Corporation
|
||||||
Distribution: Mariner
|
Distribution: Mariner
|
||||||
|
@ -28,10 +27,8 @@ BuildRequires: device-mapper-devel
|
||||||
BuildRequires: dnsmasq >= 2.41
|
BuildRequires: dnsmasq >= 2.41
|
||||||
BuildRequires: e2fsprogs-devel
|
BuildRequires: e2fsprogs-devel
|
||||||
BuildRequires: fuse-devel >= 2.8.6
|
BuildRequires: fuse-devel >= 2.8.6
|
||||||
%if 0%{with glusterfs}
|
|
||||||
BuildRequires: glusterfs-api-devel >= 3.4.1
|
BuildRequires: glusterfs-api-devel >= 3.4.1
|
||||||
BuildRequires: glusterfs-devel >= 3.4.1
|
BuildRequires: glusterfs-devel >= 3.4.1
|
||||||
%endif
|
|
||||||
BuildRequires: gnutls-devel
|
BuildRequires: gnutls-devel
|
||||||
BuildRequires: iscsi-initiator-utils
|
BuildRequires: iscsi-initiator-utils
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
|
@ -189,10 +186,7 @@ Requires: %{name}-daemon = %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires: dnsmasq >= 2.41
|
Requires: dnsmasq >= 2.41
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
|
|
||||||
%if 0%{with missing_dependencies}
|
|
||||||
Requires: radvd
|
Requires: radvd
|
||||||
%endif
|
|
||||||
|
|
||||||
%description daemon-driver-network
|
%description daemon-driver-network
|
||||||
The network driver plugin for the libvirtd daemon, providing
|
The network driver plugin for the libvirtd daemon, providing
|
||||||
|
@ -233,10 +227,10 @@ Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires: bzip2
|
Requires: bzip2
|
||||||
# For image compression
|
# For image compression
|
||||||
Requires: gzip
|
Requires: gzip
|
||||||
|
Requires: lzop
|
||||||
Requires: xz
|
Requires: xz
|
||||||
|
|
||||||
%if 0%{with missing_dependencies}
|
%if 0%{with missing_dependencies}
|
||||||
Requires: lzop
|
|
||||||
Requires: systemd-container
|
Requires: systemd-container
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -265,9 +259,7 @@ Requires: %{name}-daemon-driver-storage-logical = %{version}-%{release}
|
||||||
Requires: %{name}-daemon-driver-storage-mpath = %{version}-%{release}
|
Requires: %{name}-daemon-driver-storage-mpath = %{version}-%{release}
|
||||||
Requires: %{name}-daemon-driver-storage-rbd = %{version}-%{release}
|
Requires: %{name}-daemon-driver-storage-rbd = %{version}-%{release}
|
||||||
Requires: %{name}-daemon-driver-storage-scsi = %{version}-%{release}
|
Requires: %{name}-daemon-driver-storage-scsi = %{version}-%{release}
|
||||||
%if 0%{with glusterfs}
|
|
||||||
Requires: %{name}-daemon-driver-storage-gluster = %{version}-%{release}
|
Requires: %{name}-daemon-driver-storage-gluster = %{version}-%{release}
|
||||||
%endif
|
|
||||||
|
|
||||||
%description daemon-driver-storage
|
%description daemon-driver-storage
|
||||||
The storage driver plugin for the libvirtd daemon, providing
|
The storage driver plugin for the libvirtd daemon, providing
|
||||||
|
@ -301,7 +293,6 @@ Requires: parted
|
||||||
The storage driver backend adding implementation of the storage APIs for block
|
The storage driver backend adding implementation of the storage APIs for block
|
||||||
volumes using the host disks.
|
volumes using the host disks.
|
||||||
|
|
||||||
%if 0%{with glusterfs}
|
|
||||||
%package daemon-driver-storage-gluster
|
%package daemon-driver-storage-gluster
|
||||||
Summary: Storage driver plugin for gluster
|
Summary: Storage driver plugin for gluster
|
||||||
|
|
||||||
|
@ -313,7 +304,6 @@ Requires: glusterfs-client >= 2.0.1
|
||||||
%description daemon-driver-storage-gluster
|
%description daemon-driver-storage-gluster
|
||||||
The storage driver backend adding implementation of the storage APIs for gluster
|
The storage driver backend adding implementation of the storage APIs for gluster
|
||||||
volumes using libgfapi.
|
volumes using libgfapi.
|
||||||
%endif
|
|
||||||
|
|
||||||
%package daemon-driver-storage-iscsi
|
%package daemon-driver-storage-iscsi
|
||||||
Summary: Storage driver plugin for iscsi
|
Summary: Storage driver plugin for iscsi
|
||||||
|
@ -476,10 +466,7 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
||||||
-Ddriver_network=enabled \
|
-Ddriver_network=enabled \
|
||||||
-Ddriver_qemu=enabled \
|
-Ddriver_qemu=enabled \
|
||||||
-Dfuse=enabled \
|
-Dfuse=enabled \
|
||||||
%if 0%{with glusterfs}
|
|
||||||
-Dglusterfs=enabled \
|
-Dglusterfs=enabled \
|
||||||
-Dstorage_gluster=enabled \
|
|
||||||
%endif
|
|
||||||
-Dlibssh2=enabled \
|
-Dlibssh2=enabled \
|
||||||
%if 0%{with netcf}
|
%if 0%{with netcf}
|
||||||
-Dnetcf=enabled \
|
-Dnetcf=enabled \
|
||||||
|
@ -496,6 +483,7 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
||||||
-Dselinux=enabled \
|
-Dselinux=enabled \
|
||||||
-Dselinux_mount="/sys/fs/selinux" \
|
-Dselinux_mount="/sys/fs/selinux" \
|
||||||
-Dstorage_disk=enabled \
|
-Dstorage_disk=enabled \
|
||||||
|
-Dstorage_gluster=enabled \
|
||||||
-Dstorage_iscsi=enabled \
|
-Dstorage_iscsi=enabled \
|
||||||
-Dstorage_lvm=enabled \
|
-Dstorage_lvm=enabled \
|
||||||
-Dstorage_mpath=enabled \
|
-Dstorage_mpath=enabled \
|
||||||
|
@ -513,10 +501,6 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
||||||
-Ddriver_lxc=disabled \
|
-Ddriver_lxc=disabled \
|
||||||
-Ddriver_vz=disabled \
|
-Ddriver_vz=disabled \
|
||||||
-Dfirewalld_zone=disabled \
|
-Dfirewalld_zone=disabled \
|
||||||
%if ! 0%{with glusterfs}
|
|
||||||
-Dglusterfs=disabled \
|
|
||||||
-Dstorage_gluster=disabled \
|
|
||||||
%endif
|
|
||||||
-Dlibssh=disabled \
|
-Dlibssh=disabled \
|
||||||
-Dlogin_shell=disabled \
|
-Dlogin_shell=disabled \
|
||||||
%if ! 0%{with netcf}
|
%if ! 0%{with netcf}
|
||||||
|
@ -984,11 +968,9 @@ exit 0
|
||||||
%files daemon-driver-storage-disk
|
%files daemon-driver-storage-disk
|
||||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_disk.so
|
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_disk.so
|
||||||
|
|
||||||
%if 0%{with glusterfs}
|
|
||||||
%files daemon-driver-storage-gluster
|
%files daemon-driver-storage-gluster
|
||||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so
|
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so
|
||||||
%{_libdir}/%{name}/storage-file/libvirt_storage_file_gluster.so
|
%{_libdir}/%{name}/storage-file/libvirt_storage_file_gluster.so
|
||||||
%endif
|
|
||||||
|
|
||||||
%files daemon-driver-storage-iscsi
|
%files daemon-driver-storage-iscsi
|
||||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_iscsi.so
|
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_iscsi.so
|
||||||
|
@ -1071,6 +1053,10 @@ exit 0
|
||||||
%{_libdir}/libnss_libvirt_guest.so.2
|
%{_libdir}/libnss_libvirt_guest.so.2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 24 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 7.10.0-3
|
||||||
|
- Re-enabling '*-glusterfs' subpackage.
|
||||||
|
- Bringing back dependency on 'lzop' and 'radvd'.
|
||||||
|
|
||||||
* Thu Feb 17 2022 Thomas Crain <thcrain@microsoft.com> - 7.10.0-2
|
* Thu Feb 17 2022 Thomas Crain <thcrain@microsoft.com> - 7.10.0-2
|
||||||
- Remove requirement on python2 (python in general is not needed at runtime)
|
- Remove requirement on python2 (python in general is not needed at runtime)
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
|
Summary: Real-time file compressor
|
||||||
|
Name: lzop
|
||||||
|
Version: 1.04
|
||||||
|
Release: 5%{?dist}
|
||||||
|
License: GPLv2+
|
||||||
Vendor: Microsoft Corporation
|
Vendor: Microsoft Corporation
|
||||||
Distribution: Mariner
|
Distribution: Mariner
|
||||||
Summary: Real-time file compressor
|
URL: https://www.lzop.org/
|
||||||
Name: lzop
|
Source: https://www.lzop.org/download/%{name}-%{version}.tar.gz
|
||||||
Version: 1.04
|
|
||||||
Release: 4%{?dist}
|
BuildRequires: gcc
|
||||||
License: GPLv2+
|
BuildRequires: lzo-devel
|
||||||
URL: https://www.lzop.org/
|
|
||||||
Source: https://www.lzop.org/download/%{name}-%{version}.tar.gz
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: lzo-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
lzop is a compression utility which is designed to be a companion to gzip.
|
lzop is a compression utility which is designed to be a companion to gzip.
|
||||||
|
@ -27,7 +28,7 @@ make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install INSTALL='install -p' install
|
%make_install INSTALL='install -p' install
|
||||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
@ -37,6 +38,9 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||||
%{_mandir}/man?/%{name}.*
|
%{_mandir}/man?/%{name}.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 24 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.04-5
|
||||||
|
- License verified.
|
||||||
|
|
||||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.04-4
|
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.04-4
|
||||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
|
Summary: A Router Advertisement daemon
|
||||||
|
Name: radvd
|
||||||
|
Version: 2.18
|
||||||
|
Release: 5%{?dist}
|
||||||
|
# The code includes the advertising clause, so it's GPL-incompatible
|
||||||
|
License: BSD WITH advertising
|
||||||
Vendor: Microsoft Corporation
|
Vendor: Microsoft Corporation
|
||||||
Distribution: Mariner
|
Distribution: Mariner
|
||||||
Summary: A Router Advertisement daemon
|
URL: http://www.litech.org/radvd/
|
||||||
Name: radvd
|
Source0: %{url}dist/%{name}-%{version}.tar.xz
|
||||||
Version: 2.18
|
Source1: radvd-tmpfs.conf
|
||||||
Release: 4%{?dist}
|
|
||||||
|
|
||||||
# The code includes the advertising clause, so it's GPL-incompatible
|
|
||||||
License: BSD with advertising
|
|
||||||
URL: http://www.litech.org/radvd/
|
|
||||||
Source0: %{url}dist/%{name}-%{version}.tar.xz
|
|
||||||
Source1: radvd-tmpfs.conf
|
|
||||||
## https://github.com/reubenhwk/radvd/commit/6e45acbf3d64b9bd945adcb3de622fd7d059ceb9.patch
|
## https://github.com/reubenhwk/radvd/commit/6e45acbf3d64b9bd945adcb3de622fd7d059ceb9.patch
|
||||||
Patch0: radvd-werror.patch
|
Patch0: radvd-werror.patch
|
||||||
Patch1: radvd-endianess.patch
|
Patch1: radvd-endianess.patch
|
||||||
Patch2: radvd-stderr_logging.patch
|
Patch2: radvd-stderr_logging.patch
|
||||||
Patch3: radvd-nodaemon_manpage,patch
|
Patch3: radvd-nodaemon_manpage,patch
|
||||||
Patch4: radvd-double_free_ifacelist.patch
|
Patch4: radvd-double_free_ifacelist.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: bison
|
||||||
BuildRequires: bison
|
BuildRequires: check-devel
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: flex-static
|
BuildRequires: flex-static
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: gcc
|
||||||
BuildRequires: check-devel
|
BuildRequires: pkg-config
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
|
||||||
|
Requires(pre): shadow-utils
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires(pre): shadow-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
radvd is the router advertisement daemon for IPv6. It listens to router
|
radvd is the router advertisement daemon for IPv6. It listens to router
|
||||||
|
@ -48,13 +48,13 @@ for F in CHANGES; do
|
||||||
done
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fPIE "
|
export CFLAGS="%{optflags} -fPIE "
|
||||||
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
|
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
|
||||||
%configure \
|
%configure \
|
||||||
--with-check \
|
--with-check \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
--with-pidfile=/run/radvd/radvd.pid
|
--with-pidfile=/run/radvd/radvd.pid
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
@ -86,11 +86,12 @@ make check
|
||||||
%pre
|
%pre
|
||||||
getent group radvd >/dev/null || groupadd -r -g 75 radvd
|
getent group radvd >/dev/null || groupadd -r -g 75 radvd
|
||||||
getent passwd radvd >/dev/null || \
|
getent passwd radvd >/dev/null || \
|
||||||
useradd -r -u 75 -g radvd -d / -s /usr/sbin/nologin -c "radvd user" radvd
|
useradd -r -u 75 -g radvd -d / -s %{_sbindir}/nologin -c "radvd user" radvd
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGES COPYRIGHT INTRO.html README TODO
|
%license COPYRIGHT
|
||||||
|
%doc CHANGES INTRO.html README TODO
|
||||||
%{_unitdir}/radvd.service
|
%{_unitdir}/radvd.service
|
||||||
%config(noreplace) %{_sysconfdir}/radvd.conf
|
%config(noreplace) %{_sysconfdir}/radvd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
||||||
|
@ -102,6 +103,9 @@ exit 0
|
||||||
%{_sbindir}/radvdump
|
%{_sbindir}/radvdump
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 24 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.18-5
|
||||||
|
- License verified.
|
||||||
|
|
||||||
* Fri Apr 30 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.18-4
|
* Fri Apr 30 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.18-4
|
||||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||||
- Making binaries paths compatible with CBL-Mariner's paths.
|
- Making binaries paths compatible with CBL-Mariner's paths.
|
Загрузка…
Ссылка в новой задаче