]> git.pld-linux.org Git - packages/tzdata.git/blob - tzdata.spec
1b9aa947a2f2cb4da4e54b7041eaacd17752e74d
[packages/tzdata.git] / tzdata.spec
1 Summary:        Timezone data
2 Summary(pl):    Dane o strefach czasowych
3 Name:           tzdata
4 Version:        2005h
5 Release:        1
6 License:        GPL
7 Group:          Base
8 Source0:        %{name}.tar.bz2
9 # Source0-md5:  d20ffc3a857fd1714daadf8edacfb37a
10 Source1:        %{name}%{version}.tar.gz
11 # Source1-md5:  4c7aa406b55cce53b268ad4d274f33ba
12 Source2:        tzcode%{version}.tar.gz
13 # Source2-md5:  cc4d27cfad7a8405fa198afbbd514204
14 BuildRequires:  gawk
15 BuildRequires:  perl-base
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -n -u)
18
19 %description
20 This package contains data files with rules for various timezones
21 around the world.
22
23 %description -l pl
24 Ten pakiet zawiera pliki z danymi na temat regu³ stref czasowych na
25 ca³ym ¶wiecie.
26
27 %prep
28 %setup -n tzdata
29 mkdir %{name}%{version}
30 tar xzf %{SOURCE1} -C %{name}%{version}
31 mkdir tzcode%{version}
32 tar xzf %{SOURCE2} -C tzcode%{version}
33
34 %build
35 sed -e 's|@objpfx@|'`pwd`'/obj/|' \
36     -e 's|@datadir@|%{_datadir}|' \
37     -e 's|@install_root@|%{buildroot}|' \
38   Makeconfig.in > Makeconfig
39 %{__make}
40 grep -v tz-art.htm tzcode%{version}/tz-link.htm > tzcode%{version}/tz-link.html
41
42 %install
43 %{__make} install
44 echo ====================TESTING=========================
45 %{__make} check
46 echo ====================TESTING END=====================
47
48 %clean
49 rm -rf %{buildroot}
50
51 %files
52 %defattr(644,root,root,755)
53 %doc tzcode%{version}/README tzcode%{version}/Theory tzcode%{version}/tz-link.html
54 %{_datadir}/zoneinfo
This page took 0.100531 seconds and 3 git commands to generate.