don't build systemd-lang for the mini flavor

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1427
This commit is contained in:
Franck Bui 2023-08-18 12:53:51 +00:00 committed by Git OBS Bridge
parent 1d4102b706
commit dcfd884160
2 changed files with 9 additions and 3 deletions

View File

@ -205,9 +205,7 @@
%{_datadir}/zsh/site-functions/_systemd-run %{_datadir}/zsh/site-functions/_systemd-run
%{_datadir}/zsh/site-functions/_systemd-tmpfiles %{_datadir}/zsh/site-functions/_systemd-tmpfiles
%{_datadir}/zsh/site-functions/_timedatectl %{_datadir}/zsh/site-functions/_timedatectl
%endif
%{_journalcatalogdir}/systemd.catalog %{_journalcatalogdir}/systemd.catalog
%if %{without bootstrap}
%{_libdir}/libnss_myhostname.so.2 %{_libdir}/libnss_myhostname.so.2
%{_libdir}/libnss_systemd.so.2 %{_libdir}/libnss_systemd.so.2
%endif %endif

View File

@ -691,7 +691,9 @@ Currently this package contains: repart, oomd, measure, pcrphase and ukify.
Have fun (at your own risk). Have fun (at your own risk).
%endif %endif
%if %{without bootstrap}
%lang_package %lang_package
%endif
%prep %prep
%autosetup -p1 -n systemd-v%{version}%{archive_version} %autosetup -p1 -n systemd-v%{version}%{archive_version}
@ -723,7 +725,6 @@ export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
-Dxinitrcdir=%{xinitconfdir}/xinitrc.d \ -Dxinitrcdir=%{xinitconfdir}/xinitrc.d \
-Drpmmacrosdir=no \ -Drpmmacrosdir=no \
-Dcertificate-root=%{_sysconfdir}/pki/systemd \ -Dcertificate-root=%{_sysconfdir}/pki/systemd \
-Dtranslations=true \
%if %{with bootstrap} %if %{with bootstrap}
-Dbashcompletiondir=no \ -Dbashcompletiondir=no \
-Dzshcompletiondir=no \ -Dzshcompletiondir=no \
@ -758,6 +759,7 @@ export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
-Dselinux=%{when_not bootstrap} \ -Dselinux=%{when_not bootstrap} \
-Dtpm=%{when_not bootstrap} \ -Dtpm=%{when_not bootstrap} \
-Dtpm2=%{when_not bootstrap} \ -Dtpm2=%{when_not bootstrap} \
-Dtranslations=%{when_not bootstrap} \
-Duserdb=%{when_not bootstrap} \ -Duserdb=%{when_not bootstrap} \
\ \
-Dcoredump=%{when coredump} \ -Dcoredump=%{when coredump} \
@ -1004,7 +1006,11 @@ tar -cO \
-C test/ . | tar -xC %{buildroot}%{_testsuitedir}/integration-tests -C test/ . | tar -xC %{buildroot}%{_testsuitedir}/integration-tests
%endif %endif
%if %{without bootstrap}
%find_lang systemd %find_lang systemd
%else
rm -f %{buildroot}%{_journalcatalogdir}/*
%endif
# Don't drop %%pre section even if it becomes empty: the build process of # Don't drop %%pre section even if it becomes empty: the build process of
# installation images uses a hardcoded list of packages with a %%pre that needs # installation images uses a hardcoded list of packages with a %%pre that needs
@ -1347,8 +1353,10 @@ fi
%include %{SOURCE208} %include %{SOURCE208}
%endif %endif
%if %{without bootstrap}
%files lang -f systemd.lang %files lang -f systemd.lang
%include %{SOURCE210} %include %{SOURCE210}
%endif
%if %{with journal_remote} %if %{with journal_remote}
%files journal-remote %files journal-remote