Group :: Development/C
RPM: gengetopt
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_enable check
Name: gengetopt
Version: 2.23
Release: alt1
Summary: Tool to write command line option parsing code for C programs
License: GPLv3+
Group: Development/C
Url: http://www.gnu.org/software/%name/
Source: ftp://ftp.gnu.org/gnu/%name/%name-%version.tar.xz
BuildRequires: gcc-c++ bison flex help2man source-highlight makeinfo
%{?_enable_check:BuildRequires: valgrind}
%description
Gengetopt is a tool to generate C code to parse the command line
arguments argc and argv that are part of every C or C++ program. The
generated code uses the C library function getopt_long to perform the
actual command line parsing.
%define pkgdocdir %_docdir/%name-%version
%prep
%setup
%build
%configure --docdir=%pkgdocdir
%make_build
%install
%makeinstall_std
rm %buildroot%_infodir/index.info
%check
%make check
%files
%_bindir/%name
%_datadir/%name/
%_infodir/%name.info.*
%_man1dir/%name.1*
%doc %pkgdocdir/
%changelog
…
Full changelog you can see here
Name: gengetopt
Version: 2.23
Release: alt1
Summary: Tool to write command line option parsing code for C programs
License: GPLv3+
Group: Development/C
Url: http://www.gnu.org/software/%name/
Source: ftp://ftp.gnu.org/gnu/%name/%name-%version.tar.xz
BuildRequires: gcc-c++ bison flex help2man source-highlight makeinfo
%{?_enable_check:BuildRequires: valgrind}
%description
Gengetopt is a tool to generate C code to parse the command line
arguments argc and argv that are part of every C or C++ program. The
generated code uses the C library function getopt_long to perform the
actual command line parsing.
%define pkgdocdir %_docdir/%name-%version
%prep
%setup
%build
%configure --docdir=%pkgdocdir
%make_build
%install
%makeinstall_std
rm %buildroot%_infodir/index.info
%check
%make check
%files
%_bindir/%name
%_datadir/%name/
%_infodir/%name.info.*
%_man1dir/%name.1*
%doc %pkgdocdir/
%changelog
…
Full changelog you can see here