Accepting request 84703 from devel:tools

minor portability fixes and spec-cleaner, this builds on all standard OBS repos (forwarded request 84697 from rudi_m)

OBS-URL: https://build.opensuse.org/request/show/84703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gengetopt?expand=0&rev=2
This commit is contained in:
Sascha Peilicke 2011-09-26 08:05:17 +00:00 committed by Git OBS Bridge
commit cd84788143

View File

@ -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