]> git.pld-linux.org Git - packages/tzdata.git/blobdiff - tzdata.spec
- separate zoneinfo_right like in glibc
[packages/tzdata.git] / tzdata.spec
index 9152211ff80c68a831e2ac2a50182c7498fe368a..e1ed721a1df10c2b764d056ae198e9fa96d315ad 100644 (file)
@@ -1,21 +1,20 @@
 Summary:       Timezone data
 Summary(pl):   Dane o strefach czasowych
 Name:          tzdata
-Version:       2005h
+Version:       2006g
 Release:       1
 License:       GPL
 Group:         Base
-Source0:       %{name}.tar.bz2
-# Source0-md5: d20ffc3a857fd1714daadf8edacfb37a
-Source1:       %{name}%{version}.tar.gz
-# Source1-md5: 4c7aa406b55cce53b268ad4d274f33ba
-Source2:       tzcode%{version}.tar.gz
-# Source2-md5: cc4d27cfad7a8405fa198afbbd514204
+Source0:       %{name}-base-0.tar.bz2
+# Source0-md5: 906a4c98cc5240f416524a256b039c42
+Source1:       ftp://elsie.nci.nih.gov/pub/%{name}%{version}.tar.gz
+# Source1-md5: fed13df17e2e386f4c31b0962d3ed356
+Source2:       ftp://elsie.nci.nih.gov/pub/tzcode%{version}.tar.gz
+# Source2-md5: 4091e3f764a296b476bb77cf8eda01c7
 BuildRequires: gawk
-BuildRequires: glibc-devel
 BuildRequires: perl-base
 BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -n -u)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This package contains data files with rules for various timezones
@@ -25,31 +24,59 @@ around the world.
 Ten pakiet zawiera pliki z danymi na temat regu³ stref czasowych na
 ca³ym ¶wiecie.
 
+%package zoneinfo_right
+Summary:       Non-POSIX (real) time zones
+Summary(es):   Zonas de tiempo reales (no de POSIX)
+Summary(pl):   Nie-POSIX-owe (prawdziwe) strefy czasowe
+Obsoletes:     glibc-zoneinfo_right
+Group:         Libraries
+
+%description zoneinfo_right
+You don't want this. Details at:
+http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
+
+%description zoneinfo_right -l es
+No lo necesita. Encontrará los detalles en:
+http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
+
+%description zoneinfo_right -l pl
+Nie potrzebujesz tego. Szczegó³y pod:
+http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
+
 %prep
-%setup -n tzdata
+%setup -q -n %{name}
 mkdir %{name}%{version}
 tar xzf %{SOURCE1} -C %{name}%{version}
 mkdir tzcode%{version}
 tar xzf %{SOURCE2} -C tzcode%{version}
 
+sed -e "
+s|@objpfx@|`pwd`/obj/|
+s|@datadir@|%{_datadir}|
+s|@install_root@|$RPM_BUILD_ROOT|
+" Makeconfig.in > Makeconfig
+
+grep -v tz-art.htm tzcode%{version}/tz-link.htm > tzcode%{version}/tz-link.html
+
 %build
-sed -e 's|@objpfx@|'`pwd`'/obj/|' \
-    -e 's|@datadir@|%{_datadir}|' \
-    -e 's|@install_root@|%{buildroot}|' \
-  Makeconfig.in > Makeconfig
 %{__make}
-grep -v tz-art.htm tzcode%{version}/tz-link.htm > tzcode%{version}/tz-link.html
 
 %install
+rm -rf $RPM_BUILD_ROOT
 %{__make} install
 echo ====================TESTING=========================
 %{__make} check
 echo ====================TESTING END=====================
 
 %clean
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc tzcode%{version}/README tzcode%{version}/Theory tzcode%{version}/tz-link.html
 %{_datadir}/zoneinfo
+%exclude %{_datadir}/zoneinfo/right
+
+%files zoneinfo_right
+%defattr(644,root,root,755)
+%{_datadir}/zoneinfo/right
This page took 0.034402 seconds and 4 git commands to generate.