gengetopt/gengetopt.spec

64 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: gengetopt
Version: 2.23
Release: 1mamba
Summary: A tool to write command line option parsing code for C programs
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gnu.org/software/gengetopt/gengetopt.html
Source: https://ftp.gnu.org/gnu/gengetopt/gengetopt-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires(post): %{__install_info}
Requires(preun): %{__install_info}
%description
A tool to write command line option parsing code for C programs.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_infodir}/dir
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%install_info %{name}.info
:
%preun
%uninstall_info %{name}.info
:
%files
%defattr(-,root,root)
%{_bindir}/gengetopt
%dir %{_datadir}/gengetopt
%{_datadir}/gengetopt/*
%{_infodir}/gengetopt.info*
%{_infodir}/index.info*
%{_mandir}/man1/gengetopt.1*
%dir %{_docdir}/gengetopt
%{_docdir}/gengetopt/*
%doc AUTHORS COPYING LICENSE THANKS
%changelog
* Sat Feb 10 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.23-1mamba
- package created using the webbuild interface