BuildRequires: gawk
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
ca³ym ¶wiecie.
%prep
-%setup -n tzdata
+%setup -q -n %{name}
mkdir %{name}%{version}
tar xzf %{SOURCE1} -C %{name}%{version}
mkdir tzcode%{version}
%build
sed -e 's|@objpfx@|'`pwd`'/obj/|' \
-e 's|@datadir@|%{_datadir}|' \
- -e 's|@install_root@|%{buildroot}|' \
+ -e 's|@install_root@|$RPM_BUILD_ROOT|' \
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)