2011-04-11 13:19:42 +02:00
|
|
|
#
|
2011-09-25 00:44:39 +02:00
|
|
|
# spec file for package gengetopt
|
2011-04-11 13:19:42 +02:00
|
|
|
#
|
2018-04-13 14:01:35 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-11 13:19:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-13 16:21:30 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-11 13:19:42 +02:00
|
|
|
#
|
|
|
|
|
2015-03-17 16:27:41 +01:00
|
|
|
|
2011-04-11 13:19:42 +02:00
|
|
|
Name: gengetopt
|
2012-11-11 08:11:15 +01:00
|
|
|
Version: 2.22.6
|
2011-12-17 13:03:11 +01:00
|
|
|
Release: 0
|
2011-04-11 13:19:42 +02:00
|
|
|
Summary: Commandline parser generator
|
2018-04-13 14:01:35 +02:00
|
|
|
License: GPL-3.0-or-later
|
2011-04-11 13:19:42 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2018-04-13 14:04:32 +02:00
|
|
|
URL: https://www.gnu.org/software/gengetopt/
|
2017-03-05 10:42:36 +01:00
|
|
|
Source0: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz.sig
|
2015-03-17 16:27:41 +01:00
|
|
|
Source2: %{name}.keyring
|
2018-11-13 16:21:30 +01:00
|
|
|
# PATCH-FIX-UPSTREAM sbrabec@suse.cz savannah54996 -- Fix glibc license. https://savannah.gnu.org/bugs/?54996
|
|
|
|
Patch1: gengetopt-glibc-license.patch
|
2017-03-05 10:42:36 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2011-04-11 13:19:42 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-05 10:42:36 +01:00
|
|
|
BuildRequires: help2man
|
2018-11-13 16:21:30 +01:00
|
|
|
BuildRequires: makeinfo
|
2015-03-17 16:27:41 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%description
|
2011-09-19 16:52:00 +02:00
|
|
|
Gengetopt is a tool to generate C code to parse getopt styled command line
|
|
|
|
arguments.
|
|
|
|
It's similar or even more powerful than the well known libpopt but does not
|
|
|
|
add any run or compile time dependencies to your projects. Moreover
|
|
|
|
reading/writing the options from/to config files is also supported.
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-11-13 16:21:30 +01:00
|
|
|
%patch1 -p1
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-05 10:42:36 +01:00
|
|
|
%configure
|
2015-03-17 16:27:41 +01:00
|
|
|
make --jobs 1
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-05 10:42:36 +01:00
|
|
|
%make_install
|
2011-09-18 18:43:28 +02:00
|
|
|
|
|
|
|
# our system's getopt.h has getopt_long() on board, no need to install sources
|
2011-04-11 13:19:42 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}
|
2011-09-25 00:44:39 +02:00
|
|
|
# info's dir file is not auto ignored on some systems
|
|
|
|
rm -rf %{buildroot}%{_infodir}/dir
|
2017-03-05 10:42:36 +01:00
|
|
|
# documentation is handled by doc macr
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
2011-09-18 18:43:28 +02:00
|
|
|
|
2011-04-11 13:19:42 +02:00
|
|
|
%check
|
2015-03-17 16:27:41 +01:00
|
|
|
make check --jobs 1
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%post
|
2017-03-05 10:42:36 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2011-04-11 13:19:42 +02:00
|
|
|
|
2015-03-17 16:27:41 +01:00
|
|
|
%preun
|
2017-03-05 10:42:36 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%files
|
2018-04-13 14:04:32 +02:00
|
|
|
%license COPYING LICENSE
|
|
|
|
%doc ChangeLog NEWS README THANKS
|
2017-03-05 10:42:36 +01:00
|
|
|
%doc doc/*.h doc/*.c doc/*.ggo doc/README.example
|
2011-04-11 13:19:42 +02:00
|
|
|
%{_bindir}/%{name}
|
2018-04-13 14:04:32 +02:00
|
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2011-04-11 13:19:42 +02:00
|
|
|
|
|
|
|
%changelog
|