Summary: Timezone data
Summary(pl.UTF-8): Dane o strefach czasowych
Name: tzdata
-Version: 2007a
-Release: 2
+Version: 2007g
+Release: 1
License: GPL
Group: Base
Source0: %{name}-base-0.tar.bz2
# Source0-md5: 906a4c98cc5240f416524a256b039c42
Source1: ftp://elsie.nci.nih.gov/pub/%{name}%{version}.tar.gz
-# Source1-md5: 5ba3a8c3581a0ef962179fba1328f3cb
+# Source1-md5: 04152531a69c07b6cb08bacfd425aae1
Source2: ftp://elsie.nci.nih.gov/pub/tzcode%{version}.tar.gz
-# Source2-md5: 9162d8d447eec31f60d0602edd17e123
+# Source2-md5: a5da1f7650c541fa61f9ddd0c10b5332
+Source3: timezone.init
+Source4: timezone.sysconfig
BuildRequires: gawk
BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts >= 0.4.1.4
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
%{__make} install
-echo ====================TESTING=========================
+: ====================TESTING=========================
%{__make} check \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} %{rpmldflags}"
-echo ====================TESTING END=====================
+: ====================TESTING END=====================
+
# glibc.spec didn't keep it. so won't here either.
rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posix
> $RPM_BUILD_ROOT/etc/localtime
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/timezone
+cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/timezone
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add timezone
+%service timezone restart
+
+%preun
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del timezone
+fi
+
+%triggerpostun -- rc-scripts < 0.4.1.4
+/sbin/chkconfig --add timezone
+
%files
%defattr(644,root,root,755)
%doc tzcode%{version}/README tzcode%{version}/Theory tzcode%{version}/tz-link.html
%ghost /etc/localtime
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/timezone
+%attr(754,root,root) /etc/rc.d/init.d/timezone
%{_datadir}/zoneinfo
%exclude %{_datadir}/zoneinfo/right