## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: evernight-vista-wsl-runtime Version: 44.0.1 Release: %autorelease Summary: Windows Subsystem for Linux setup script and configuration License: MIT URL: https://src.fedoraproject.org/rpms/wsl-setup BuildArch: noarch Source1: LICENSE Source2: wsl.conf Source3: wsl-distribution.conf Source4: wsl-oobe.sh Source5: firstboot-override.conf Source6: wsl-setup-tmpfiles.conf Source7: wsl-setup-user-tmpfiles.conf Source8: wsl-setup BuildRequires: systemd-rpm-macros Conflicts: wsl-setup Provides: wsl-setup # Needed for the distribution icon Requires: evernight-vista-logo # Utilities used by the OOBE script Requires: shadow-utils Requires: systemd %description Provides WSL specific configuration files and first-time setup script. %prep %build %install install -pm 0644 %{SOURCE1} LICENSE install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ %{SOURCE2} install -Dpm0644 -T %{SOURCE3} %{buildroot}%{_datarootdir}/wsl-setup/wsl-distribution.conf.template install -Dpm0755 -T %{SOURCE4} %{buildroot}%{_libexecdir}/wsl/oobe.sh install -Dpm0755 -T %{SOURCE8} %{buildroot}%{_bindir}/wsl-setup ln -s ..%{_prefix}/lib/wsl-distribution.conf %{buildroot}%{_sysconfdir}/wsl-distribution.conf # WSL provides a socket for x11, but we need to ensure its linked to in /tmp. # The official recommendation is to disable tmpfiles entirely, but it would be # nice to work with it, instead. # https://learn.microsoft.com/en-us/windows/wsl/build-custom-distro#systemd-recommendations install -Dpm0644 %{SOURCE6} %{buildroot}%{_tmpfilesdir}/%{name}.conf # WSL provides a Wayland and PulseAudio socket as well, which are expected to be in # the user's runtime directory. This configuration sets up the links for each user. install -Dpm0644 %{SOURCE7} %{buildroot}%{_user_tmpfilesdir}/%{name}.conf # Currently systemd-firstboot hangs forever attempting to acquire the console; this is # problematic since many other services wait for it to complete before starting, including # things like the system D-Bus. Configure it to not run in WSL (a preset didn't seem to work) # until we can see about adjusting either WSL or systemd to make it behave. install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/systemd-firstboot.service.d/override.conf %post # generate the "auto" naming, using the defaults %{_bindir}/wsl-setup %files %{_bindir}/wsl-setup %config(noreplace) %{_sysconfdir}/wsl.conf %ghost %attr(644, root, root) %{_prefix}/lib/wsl-distribution.conf %{_sysconfdir}/wsl-distribution.conf %dir %{_datarootdir}/wsl-setup/ %{_datarootdir}/wsl-setup/wsl-distribution.conf.template %{_libexecdir}/wsl/oobe.sh %{_tmpfilesdir}/%{name}.conf %{_user_tmpfilesdir}/%{name}.conf %{_unitdir}/systemd-firstboot.service.d/override.conf %license LICENSE %changelog ## START: Generated by rpmautospec * Wed Jan 21 2026 Jeremy Bertozzi - 1.0.1-16 - oobe: fix cloud-init systemd unit name * Sat Jan 17 2026 Fedora Release Engineering - 1.0.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Oct 21 2025 Troy Dawson - 1.0.1-14 - Fix ghost file permissions * Tue Oct 14 2025 Li Tian - 1.0.1-13 - wsl-oobe.sh: Ask for re-input of username when error * Tue Oct 14 2025 Li Tian - 1.0.1-12 - wsl-setup: fix --help|-h option error prompt - -help|-h ought not to fall into error prompt. * Tue Sep 23 2025 Li Tian - 1.0.1-11 - tmpfiles: not forcefully create symlink /tmp/.X11-unix * Fri Jul 11 2025 Simon de Vlieger - 1.0.1-9 - oobe: ignore cloud-init warnings * Mon Jul 07 2025 Troy Dawson - 1.0.1-8 - Fix script arguments section * Mon Jul 07 2025 Jeremy Cline - 1.0.1-7 - oobe: don't append the user section to /etc/wsl.conf * Tue Jul 01 2025 Jeremy Cline - 1.0.1-6 - Add Requires for utilities used in the OOBE script * Wed Jun 18 2025 Simon de Vlieger - 1.0.1-5 - oobe: wait for cloud-init to finish * Thu Jun 05 2025 Simon de Vlieger - 1.0.1-4 - oobe: message for enabled cloud-init * Wed May 28 2025 Simon de Vlieger - 1.0.1-3 - oobe: exit early for cloud-init * Mon May 19 2025 Troy Dawson - 1.0.1-2 - Change /usr/lib/wsl-distribution.conf to a ghost file * Mon May 19 2025 Troy Dawson - 1.0.1-1 - Make wsl-setup a script * Tue Apr 15 2025 Troy Dawson - 1.0.0-8 - Dynamically set DefaultName on package install * Fri Apr 11 2025 Troy Dawson - 1.0.0-7 - Expand variations for default_name * Fri Mar 21 2025 Jeremy Cline - 1.0.0-6 - Add distribution icon to wsl-distribution.conf * Sun Feb 23 2025 David Senoner - 1.0.0-5 - fix typo * Tue Feb 18 2025 Jeremy Cline - 1.0.0-4 - oobe: Let the user know they're in wheel and have passwordless sudo * Fri Jan 31 2025 Jeremy Cline - 1.0.0-3 - Add tmpfiles configuration for x11, Wayland, and PulseAudio support * Tue Jan 28 2025 Jeremy Cline - 1.0.0-2 - Replace define macro with global * Mon Jan 27 2025 Jeremy Cline - 1.0.0-1 - Initial import (rhbz #2342289) ## END: Generated by rpmautospec