enable timezone package to provides some binaries

This commit is contained in:
Alexander Stefanov 2024-09-20 15:20:14 +00:00
parent 90ba6eafa5
commit fb1558118d

View file

@ -72,7 +72,7 @@
%bcond_without i18ndata
%bcond_without locales
# separate package https://abf.io/import/timezone
%bcond_with timezone
%bcond_without timezone
%if %isarch %{ix86} %{x86_64}
%bcond_without systap
@ -706,9 +706,6 @@ LANG variable to their preferred language in their
%files -f libc.lang
%if "%{name}" == "glibc"
%if %{with timezone}
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/localtime
%endif
# (tpg) please do not set (noreplace) here as after update system may end up in broken state
%config %{_sysconfdir}/nsswitch.conf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ld.so.conf
@ -1116,9 +1113,8 @@ These are configuration files that describe possible time zones.
%files -n timezone
%{_bindir}/zdump
%{_bindir}/zic
%{_sbindir}/zic
%doc %{_mandir}/man1/zdump.1*
%{_datadir}/zoneinfo
#-----------------------------------------------------------------------
# with timezone
%endif
@ -1594,10 +1590,9 @@ cd -
rm -r %{buildroot}%{_includedir}/netatalk/
# /etc/localtime - we're proud of our timezone #Well we(mdk) may put Paris
%if %{with timezone}
rm %{buildroot}%{_sysconfdir}/localtime
cp -f %{buildroot}%{_datadir}/zoneinfo/CET %{buildroot}%{_sysconfdir}/localtime
# part of tzdata rpm import/timezone pkg
rm -rf %{buildroot}%{_datadir}/zoneinfo
%endif
# Documentation