Name: fix-info-dir
Version: 0.1
Release: 1
-Copyright: GPL
+License: GPL
Group: Utilities/System
Group(pl): Narzêdzia/System
Source: %{name}-%{version}.tar.gz
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Utility which creates a top-level `dir' file in the Info system
+Utility which creates a top-level `dir' file in the Info system.
%prep
%setup -q
make CFLAGS='-O2 -fomit-frame-pointer -DNDEBUG'
%install
-install -d 755 $RPM_BUILD_ROOT/%{_sbindir}
-install -s -m 755 %{name} $RPM_BUILD_ROOT/%{_sbindir}
-install -d 755 $RPM_BUILD_ROOT/%{_infodir}
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_infodir}}
+
+install -s %{name} $RPM_BUILD_ROOT/%{_sbindir}
touch $RPM_BUILD_ROOT/%{_infodir}/dir
%clean