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
This commit is contained in:
parent
131103e739
commit
92a9215783
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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++
|
Group: Development/Languages/C and C++
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
PreReq: %install_info_prereq
|
Requires(pre): info
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,14 +45,15 @@ reading/writing the options from/to config files is also supported.
|
|||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%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
|
# our system's getopt.h has getopt_long() on board, no need to install sources
|
||||||
rm -rf %{buildroot}%{_datadir}/%{name}
|
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
|
# make rpmlint happy and delete INSTALL
|
||||||
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
|
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user