# Conditional build
%bcond_without tests # make check
#
-%define tzcode_ver 2008e
-%define tzdata_ver 2008f
+%define tzcode_ver 2009a
+%define tzdata_ver 2009a
Summary: Timezone data
Summary(pl.UTF-8): Dane o strefach czasowych
Name: tzdata
Source0: %{name}-base-0.tar.bz2
# Source0-md5: 906a4c98cc5240f416524a256b039c42
Source1: ftp://elsie.nci.nih.gov/pub/%{name}%{tzdata_ver}.tar.gz
-# Source1-md5: aa3b077a7b786d46c131303b1d75deee
+# Source1-md5: 979cb227a83d7fbb954611a4fb5b1949
Source2: ftp://elsie.nci.nih.gov/pub/tzcode%{tzcode_ver}.tar.gz
-# Source2-md5: 12ec2d85324ddcba39db1471a03f486b
+# Source2-md5: 6a20a58704c779e3006394cf38a1dc0a
Source3: timezone.init
Source4: timezone.sysconfig
Patch0: %{name}-test-update.patch
Nie potrzebujesz tego. Szczegóły pod:
<http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>.
+%package devel
+Summary: tzfile header
+Group: Development/Libraries
+
+%description devel
+
%prep
%setup -qc
mv tzdata/* .
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_includedir}
%{__make} install
> $RPM_BUILD_ROOT/etc/localtime
+install tzcode/tzfile.h $RPM_BUILD_ROOT%{_includedir}/tzfile.h
+
install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/timezone
cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/timezone
%files zoneinfo_right
%defattr(644,root,root,755)
%{_datadir}/zoneinfo/right
+
+%files devel
+%{_includedir}/tzfile.h