1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#################################################################################
# RPM spec file for argtable2
#
# Note: the argtable2 configure script generates the argtable.spec
# file from the argtable.spec.in template.
#################################################################################
Summary: An ANSI C library for parsing GNU style command line arguments.
Name: argtable2
Version: @PACKAGE_VERSION@
Release: 1
License: LGPL
Group: Development/Libraries
Source: http://prdownloads.sourceforge.net/argtable/argtable2-@PACKAGE_VERSION@.tar.gz
URL: http://argtable.sourceforge.net
Packager: Stewart Heitmann <sheitmann@users.sourceforge.net>
Prefix: /usr/local
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Argtable is an ANSI C library for parsing GNU style command line arguments.
It enables a program's command line syntax to be defined in the source code as an array
of argtable structs. The command line is then parsed according to
that specification and the resulting values are returned in those same structs where they
are accessible to the main program.
Both tagged (-v, --verbose, --foo=bar) and untagged arguments are supported,
as are multiple instances of each argument.
Syntax error handling is automatic and the library also provides the means for displaying
the command line syntax directly from the array of argument specifications.
%prep
%setup -q
%build
%configure
make
%install
rm -fr %{buildroot}
%makeinstall
%clean
rm -fr %{buildroot}
rm -rf ../argtable2-@PACKAGE_VERSION@
%files
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*
%{_mandir}/*
%{_defaultdocdir}
%post
|