diff --git a/gengetopt.spec b/gengetopt.spec index d50e1b1..e1071d5 100644 --- a/gengetopt.spec +++ b/gengetopt.spec @@ -1,7 +1,7 @@ # -# spec file for package gengetopt (Version 2.22.4) +# spec file for package gengetopt # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ Url: http://www.gnu.org/software/gengetopt/ Group: Development/Languages/C and C++ Source: %{name}-%{version}.tar.bz2 BuildRequires: gcc-c++ -PreReq: %install_info_prereq +Requires(pre): info BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -45,14 +45,15 @@ reading/writing the options from/to config files is also supported. make %install -%{?make_install} %{!?make_install:make install DESTDIR=$RPM_BUILD_ROOT} +%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}} # our system's getopt.h has getopt_long() on board, no need to install sources rm -rf %{buildroot}%{_datadir}/%{name} +# info's dir file is not auto ignored on some systems +rm -rf %{buildroot}%{_infodir}/dir # make rpmlint happy and delete INSTALL rm -f %{buildroot}%{_docdir}/%{name}/INSTALL - %check make check