From 92a9215783ae8949d0a0589923901b44c2f5918b5dc70e35be0d63f7729e5e98 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sat, 24 Sep 2011 22:44:39 +0000 Subject: [PATCH] Accepting request 84697 from home:rudi_m:branches:devel:tools minor portability fixes and spec-cleaner, this builds on all standard OBS repos OBS-URL: https://build.opensuse.org/request/show/84697 OBS-URL: https://build.opensuse.org/package/show/devel:tools/gengetopt?expand=0&rev=8 --- gengetopt.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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