[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:
Pawel Winogrodzki 2022-02-25 13:45:47 -08:00 коммит произвёл GitHub
Родитель bdd54e5acd
Коммит bde0b332d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
18 изменённых файлов: 52 добавлений и 58 удалений

Просмотреть файл

@ -3,14 +3,13 @@
%define qemu_group qemu
# 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 netcf
Summary: Virtualization API library that supports KVM, QEMU, Xen, ESX etc
Name: libvirt
Version: 7.10.0
Release: 2%{?dist}
Release: 3%{?dist}
License: LGPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
@ -28,10 +27,8 @@ BuildRequires: device-mapper-devel
BuildRequires: dnsmasq >= 2.41
BuildRequires: e2fsprogs-devel
BuildRequires: fuse-devel >= 2.8.6
%if 0%{with glusterfs}
BuildRequires: glusterfs-api-devel >= 3.4.1
BuildRequires: glusterfs-devel >= 3.4.1
%endif
BuildRequires: gnutls-devel
BuildRequires: iscsi-initiator-utils
BuildRequires: libacl-devel
@ -189,10 +186,7 @@ Requires: %{name}-daemon = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: dnsmasq >= 2.41
Requires: iptables
%if 0%{with missing_dependencies}
Requires: radvd
%endif
%description daemon-driver-network
The network driver plugin for the libvirtd daemon, providing
@ -233,10 +227,10 @@ Requires: %{name}-libs = %{version}-%{release}
Requires: bzip2
# For image compression
Requires: gzip
Requires: lzop
Requires: xz
%if 0%{with missing_dependencies}
Requires: lzop
Requires: systemd-container
%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-rbd = %{version}-%{release}
Requires: %{name}-daemon-driver-storage-scsi = %{version}-%{release}
%if 0%{with glusterfs}
Requires: %{name}-daemon-driver-storage-gluster = %{version}-%{release}
%endif
%description daemon-driver-storage
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
volumes using the host disks.
%if 0%{with glusterfs}
%package daemon-driver-storage-gluster
Summary: Storage driver plugin for gluster
@ -313,7 +304,6 @@ Requires: glusterfs-client >= 2.0.1
%description daemon-driver-storage-gluster
The storage driver backend adding implementation of the storage APIs for gluster
volumes using libgfapi.
%endif
%package daemon-driver-storage-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_qemu=enabled \
-Dfuse=enabled \
%if 0%{with glusterfs}
-Dglusterfs=enabled \
-Dstorage_gluster=enabled \
%endif
-Dlibssh2=enabled \
%if 0%{with netcf}
-Dnetcf=enabled \
@ -496,6 +483,7 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
-Dselinux=enabled \
-Dselinux_mount="/sys/fs/selinux" \
-Dstorage_disk=enabled \
-Dstorage_gluster=enabled \
-Dstorage_iscsi=enabled \
-Dstorage_lvm=enabled \
-Dstorage_mpath=enabled \
@ -513,10 +501,6 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
-Ddriver_lxc=disabled \
-Ddriver_vz=disabled \
-Dfirewalld_zone=disabled \
%if ! 0%{with glusterfs}
-Dglusterfs=disabled \
-Dstorage_gluster=disabled \
%endif
-Dlibssh=disabled \
-Dlogin_shell=disabled \
%if ! 0%{with netcf}
@ -984,11 +968,9 @@ exit 0
%files daemon-driver-storage-disk
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_disk.so
%if 0%{with glusterfs}
%files daemon-driver-storage-gluster
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so
%{_libdir}/%{name}/storage-file/libvirt_storage_file_gluster.so
%endif
%files daemon-driver-storage-iscsi
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_iscsi.so
@ -1071,6 +1053,10 @@ exit 0
%{_libdir}/libnss_libvirt_guest.so.2
%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
- 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
Distribution: Mariner
Summary: Real-time file compressor
Name: lzop
Version: 1.04
Release: 4%{?dist}
License: GPLv2+
URL: https://www.lzop.org/
Source: https://www.lzop.org/download/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: lzo-devel
URL: https://www.lzop.org/
Source: https://www.lzop.org/download/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: lzo-devel
%description
lzop is a compression utility which is designed to be a companion to gzip.
@ -27,7 +28,7 @@ make %{?_smp_mflags}
%install
%make_install INSTALL='install -p' install
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
rm -rf %{buildroot}%{_docdir}/%{name}
%files
%{!?_licensedir:%global license %%doc}
@ -37,6 +38,9 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
%{_mandir}/man?/%{name}.*
%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
- 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
Distribution: Mariner
Summary: A Router Advertisement daemon
Name: radvd
Version: 2.18
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
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
Patch0: radvd-werror.patch
Patch1: radvd-endianess.patch
Patch2: radvd-stderr_logging.patch
Patch3: radvd-nodaemon_manpage,patch
Patch4: radvd-double_free_ifacelist.patch
Patch0: radvd-werror.patch
Patch1: radvd-endianess.patch
Patch2: radvd-stderr_logging.patch
Patch3: radvd-nodaemon_manpage,patch
Patch4: radvd-double_free_ifacelist.patch
BuildRequires: gcc
BuildRequires: bison
BuildRequires: flex
BuildRequires: flex-static
BuildRequires: pkgconfig
BuildRequires: check-devel
BuildRequires: systemd
BuildRequires: bison
BuildRequires: check-devel
BuildRequires: flex
BuildRequires: flex-static
BuildRequires: gcc
BuildRequires: pkg-config
BuildRequires: systemd
Requires(pre): shadow-utils
%{?systemd_requires}
Requires(pre): shadow-utils
%description
radvd is the router advertisement daemon for IPv6. It listens to router
@ -48,13 +48,13 @@ for F in CHANGES; do
done
%build
export CFLAGS="$RPM_OPT_FLAGS -fPIE "
export CFLAGS="%{optflags} -fPIE "
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
%configure \
--with-check \
--disable-silent-rules \
--with-pidfile=/run/radvd/radvd.pid
make %{?_smp_mflags}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
@ -86,11 +86,12 @@ make check
%pre
getent group radvd >/dev/null || groupadd -r -g 75 radvd
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
%files
%doc CHANGES COPYRIGHT INTRO.html README TODO
%license COPYRIGHT
%doc CHANGES INTRO.html README TODO
%{_unitdir}/radvd.service
%config(noreplace) %{_sysconfdir}/radvd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
@ -102,6 +103,9 @@ exit 0
%{_sbindir}/radvdump
%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
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
- Making binaries paths compatible with CBL-Mariner's paths.