]>
Commit | Line | Data |
---|---|---|
f21a80a6 | 1 | Summary: Timezone data |
e5477455 | 2 | Summary(pl.UTF-8): Dane o strefach czasowych |
f21a80a6 | 3 | Name: tzdata |
95bcea34 | 4 | Version: 2007b |
48f17b2c | 5 | Release: 2 |
f21a80a6 | 6 | License: GPL |
3458d90a | 7 | Group: Base |
0b5f1229 ER |
8 | Source0: %{name}-base-0.tar.bz2 |
9 | # Source0-md5: 906a4c98cc5240f416524a256b039c42 | |
10 | Source1: ftp://elsie.nci.nih.gov/pub/%{name}%{version}.tar.gz | |
95bcea34 | 11 | # Source1-md5: 2b624fbf9e819dcbd8bb0246ab05370c |
0b5f1229 | 12 | Source2: ftp://elsie.nci.nih.gov/pub/tzcode%{version}.tar.gz |
95bcea34 | 13 | # Source2-md5: cdcf902ff81f5a4d787ef73390d1d7ca |
48f17b2c ER |
14 | Source3: timezone.init |
15 | Source4: timezone.sysconfig | |
f21a80a6 | 16 | BuildRequires: gawk |
3458d90a | 17 | BuildRequires: perl-base |
48f17b2c ER |
18 | BuildRequires: rpmbuild(macros) >= 1.228 |
19 | Requires(post,preun): /sbin/chkconfig | |
20 | Requires: rc-scripts >= 0.4.1.4 | |
f21a80a6 | 21 | BuildArch: noarch |
95a1ed16 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f21a80a6 PZ |
23 | |
24 | %description | |
3458d90a JB |
25 | This package contains data files with rules for various timezones |
26 | around the world. | |
27 | ||
151d1751 JR |
28 | %description -l pl.UTF-8 |
29 | Ten pakiet zawiera pliki z danymi na temat reguł stref czasowych na | |
30 | całym świecie. | |
f21a80a6 | 31 | |
33e5a5b5 ER |
32 | %package zoneinfo_right |
33 | Summary: Non-POSIX (real) time zones | |
e5477455 ER |
34 | Summary(es.UTF-8): Zonas de tiempo reales (no de POSIX) |
35 | Summary(pl.UTF-8): Nie-POSIX-owe (prawdziwe) strefy czasowe | |
33e5a5b5 | 36 | Group: Libraries |
37e6efaa | 37 | Obsoletes: glibc-zoneinfo_right |
33e5a5b5 ER |
38 | |
39 | %description zoneinfo_right | |
40 | You don't want this. Details at: | |
e3ed8f87 | 41 | <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>. |
33e5a5b5 | 42 | |
151d1751 JR |
43 | %description zoneinfo_right -l es.UTF-8 |
44 | No lo necesita. Encontrará los detalles en: | |
e3ed8f87 | 45 | <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>. |
33e5a5b5 | 46 | |
151d1751 JR |
47 | %description zoneinfo_right -l pl.UTF-8 |
48 | Nie potrzebujesz tego. Szczegóły pod: | |
e3ed8f87 | 49 | <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>. |
33e5a5b5 | 50 | |
f21a80a6 | 51 | %prep |
95a1ed16 | 52 | %setup -q -n %{name} |
f21a80a6 | 53 | mkdir %{name}%{version} |
a360159e | 54 | %{__tar} xzf %{SOURCE1} -C %{name}%{version} |
f21a80a6 | 55 | mkdir tzcode%{version} |
a360159e | 56 | %{__tar} xzf %{SOURCE2} -C tzcode%{version} |
f21a80a6 | 57 | |
0b5f1229 ER |
58 | sed -e " |
59 | s|@objpfx@|`pwd`/obj/| | |
60 | s|@datadir@|%{_datadir}| | |
61 | s|@install_root@|$RPM_BUILD_ROOT| | |
62 | " Makeconfig.in > Makeconfig | |
63 | ||
64 | grep -v tz-art.htm tzcode%{version}/tz-link.htm > tzcode%{version}/tz-link.html | |
65 | ||
f21a80a6 | 66 | %build |
3458d90a | 67 | %{__make} |
f21a80a6 PZ |
68 | |
69 | %install | |
95a1ed16 | 70 | rm -rf $RPM_BUILD_ROOT |
48f17b2c | 71 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} |
4747911d | 72 | |
3458d90a | 73 | %{__make} install |
a360159e | 74 | |
48f17b2c | 75 | : ====================TESTING========================= |
5db5c79b | 76 | %{__make} check \ |
77 | CC="%{__cc}" \ | |
78 | CFLAGS="%{rpmcflags} %{rpmldflags}" | |
48f17b2c ER |
79 | : ====================TESTING END===================== |
80 | ||
f21a80a6 | 81 | |
0f163d2c ER |
82 | # glibc.spec didn't keep it. so won't here either. |
83 | rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posix | |
84 | # behave more like glibc.spec | |
85 | ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime | |
86 | ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime | |
87 | ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules | |
88 | ||
4747911d AM |
89 | > $RPM_BUILD_ROOT/etc/localtime |
90 | ||
48f17b2c ER |
91 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/timezone |
92 | cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/timezone | |
93 | ||
f21a80a6 | 94 | %clean |
95a1ed16 | 95 | rm -rf $RPM_BUILD_ROOT |
f21a80a6 | 96 | |
48f17b2c ER |
97 | %post |
98 | /sbin/chkconfig --add timezone | |
99 | %service timezone restart | |
100 | ||
101 | %preun | |
102 | if [ "$1" = "0" ]; then | |
103 | /sbin/chkconfig --del timezone | |
104 | fi | |
105 | ||
f21a80a6 PZ |
106 | %files |
107 | %defattr(644,root,root,755) | |
f21a80a6 | 108 | %doc tzcode%{version}/README tzcode%{version}/Theory tzcode%{version}/tz-link.html |
4747911d | 109 | %ghost /etc/localtime |
48f17b2c ER |
110 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/timezone |
111 | %attr(754,root,root) /etc/rc.d/init.d/timezone | |
4747911d | 112 | |
3458d90a | 113 | %{_datadir}/zoneinfo |
33e5a5b5 ER |
114 | %exclude %{_datadir}/zoneinfo/right |
115 | ||
116 | %files zoneinfo_right | |
117 | %defattr(644,root,root,755) | |
118 | %{_datadir}/zoneinfo/right |