]> git.pld-linux.org Git - packages/tzdata.git/blob - tzdata.spec
- tabs in preamble
[packages/tzdata.git] / tzdata.spec
1 Summary:        Timezone data
2 Summary(pl.UTF-8):      Dane o strefach czasowych
3 Name:           tzdata
4 Version:        2007a
5 Release:        2
6 License:        GPL
7 Group:          Base
8 Source0:        %{name}-base-0.tar.bz2
9 # Source0-md5:  906a4c98cc5240f416524a256b039c42
10 Source1:        ftp://elsie.nci.nih.gov/pub/%{name}%{version}.tar.gz
11 # Source1-md5:  5ba3a8c3581a0ef962179fba1328f3cb
12 Source2:        ftp://elsie.nci.nih.gov/pub/tzcode%{version}.tar.gz
13 # Source2-md5:  9162d8d447eec31f60d0602edd17e123
14 BuildRequires:  gawk
15 BuildRequires:  perl-base
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains data files with rules for various timezones
21 around the world.
22
23 %description -l pl.UTF-8
24 Ten pakiet zawiera pliki z danymi na temat reguł stref czasowych na
25 całym świecie.
26
27 %package zoneinfo_right
28 Summary:        Non-POSIX (real) time zones
29 Summary(es.UTF-8):      Zonas de tiempo reales (no de POSIX)
30 Summary(pl.UTF-8):      Nie-POSIX-owe (prawdziwe) strefy czasowe
31 Group:          Libraries
32 Obsoletes:      glibc-zoneinfo_right
33
34 %description zoneinfo_right
35 You don't want this. Details at:
36 <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>.
37
38 %description zoneinfo_right -l es.UTF-8
39 No lo necesita. Encontrará los detalles en:
40 <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>.
41
42 %description zoneinfo_right -l pl.UTF-8
43 Nie potrzebujesz tego. Szczegóły pod:
44 <http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html>.
45
46 %prep
47 %setup -q -n %{name}
48 mkdir %{name}%{version}
49 %{__tar} xzf %{SOURCE1} -C %{name}%{version}
50 mkdir tzcode%{version}
51 %{__tar} xzf %{SOURCE2} -C tzcode%{version}
52
53 sed -e "
54 s|@objpfx@|`pwd`/obj/|
55 s|@datadir@|%{_datadir}|
56 s|@install_root@|$RPM_BUILD_ROOT|
57 " Makeconfig.in > Makeconfig
58
59 grep -v tz-art.htm tzcode%{version}/tz-link.htm > tzcode%{version}/tz-link.html
60
61 %build
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT/etc/
67
68 %{__make} install
69
70 echo ====================TESTING=========================
71 %{__make} check \
72         CC="%{__cc}" \
73         CFLAGS="%{rpmcflags} %{rpmldflags}"
74 echo ====================TESTING END=====================
75
76 # glibc.spec didn't keep it. so won't here either.
77 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posix
78 # behave more like glibc.spec
79 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
80 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
81 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
82
83 > $RPM_BUILD_ROOT/etc/localtime
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc tzcode%{version}/README tzcode%{version}/Theory tzcode%{version}/tz-link.html
91 %ghost /etc/localtime
92
93 %{_datadir}/zoneinfo
94 %exclude %{_datadir}/zoneinfo/right
95
96 %files zoneinfo_right
97 %defattr(644,root,root,755)
98 %{_datadir}/zoneinfo/right
This page took 0.054628 seconds and 3 git commands to generate.