Accepting request 476989 from devel:tools

- Update dependencies
- Small packaging cleanup

OBS-URL: https://build.opensuse.org/request/show/476989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gengetopt?expand=0&rev=13
This commit is contained in:
2017-03-12 19:00:55 +00:00
committed by Git OBS Bridge
2 changed files with 23 additions and 15 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Mar 5 09:40:52 UTC 2017 - mpluskal@suse.com
- Update dependencies
- Small packaging cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 16 19:15:15 UTC 2015 - mpluskal@suse.com Mon Mar 16 19:15:15 UTC 2015 - mpluskal@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package gengetopt # spec file for package gengetopt
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX 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
@@ -22,14 +22,16 @@ Release: 0
Summary: Commandline parser generator Summary: Commandline parser generator
License: GPL-3.0+ License: GPL-3.0+
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Url: http://www.gnu.org/software/gengetopt/ Url: https://www.gnu.org/software/gengetopt/
Source0: ftp://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz Source0: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz.sig Source1: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring Source2: %{name}.keyring
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: help2man
Requires(post): %{install_info_prereq} Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq} Requires(preun): %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Gengetopt is a tool to generate C code to parse getopt styled command line Gengetopt is a tool to generate C code to parse getopt styled command line
@@ -42,34 +44,34 @@ reading/writing the options from/to config files is also supported.
%setup -q %setup -q
%build %build
%configure \ %configure
--docdir=%{_docdir}/%{name}
make --jobs 1 make --jobs 1
%install %install
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}} %make_install
# 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 # info's dir file is not auto ignored on some systems
rm -rf %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_infodir}/dir
# make rpmlint happy and delete INSTALL # documentation is handled by doc macr
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL rm -rf %{buildroot}%{_datadir}/doc/%{name}
%check %check
make check --jobs 1 make check --jobs 1
%post %post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%preun %preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc COPYING ChangeLog LICENSE NEWS README THANKS
%doc doc/*.h doc/*.c doc/*.ggo doc/README.example
%{_bindir}/%{name} %{_bindir}/%{name}
%doc %{_infodir}/*.info* %{_infodir}/%{name}.info%{ext_info}
%doc %{_mandir}/man1/%{name}* %{_mandir}/man1/%{name}.1%{ext_man}
%doc %{_docdir}/%{name}
%changelog %changelog