Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > d78814c88b57fcf378c255559d12533d > files > 2

gengetopt-2.7.1-5mdk.src.rpm

%define name gengetopt
%define version 2.7.1
%define release 5mdk

Summary: GNU gengetopt generates command line parsers
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Development/C
URL: http://www.gnu.org/software/gengetopt/gengetopt.html
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
BuildRequires: flex

%description
This program generates a C function that uses getopt_long function to parse
the command line options, to validate them and fills a struct.

Thus your program can now handle options such as:

myprog --input foo.c -o foo.o --no-tabs -i 100 *.class

And both long options (those that start with --) and short options (start
with - and consist of only one character) can be handled. For standards
about short and long options you may want to take a look at the GNU Coding
Standards.

%prep
%setup -q
perl -pi -e "s!@prefix@/share/doc/gengetopt!@prefix@/share/doc/gengetopt-%{version}!" doc/gengetopt.1.in

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
mkdir -p examples
cp -f doc/*ggo doc/cmdline*[ch] doc/main*c examples
rm -rf %buildroot/%_datadir/doc/gengetopt

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/*html doc/no_getopt_long.txt ChangeLog COPYING LICENSE NEWS
%doc README THANKS examples
%_bindir/gengetopt
%_datadir/gengetopt/*
%_mandir/man1/gengetopt.1*


%changelog
* Tue Mar 11 2003 Götz Waschk <waschk@linux-mandrake.com> 2.7.1-5mdk
- fix buildrequires

* Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 2.7.1-4mdk
- fix installation, clean unpackaged files

* Fri Aug 16 2002 Götz Waschk <waschk@linux-mandrake.com> 2.7.1-3mdk
- gcc 3.2-0.3mdk build

* Mon Jul 29 2002 Götz Waschk <waschk@linux-mandrake.com> 2.7.1-2mdk
- gcc 3.2 build

* Tue Jul 23 2002 Götz Waschk <waschk@linux-mandrake.com> 2.7.1-1mdk
- 2.7.1

* Fri Jan  4 2002 Götz Waschk <waschk@linux-mandrake.com> 2.5-1mdk
- patched doc path in the man page
- initial RPM package