1 Summary: C code generator that generates command line options parsers
2 Summary(pl.UTF-8): Generator kodu C generujący analizatory opcji linii poleceń
7 Group: Development/Tools
8 Source0: http://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
9 # Source0-md5: 29749a48dda69277ab969c510597a14e
10 Patch0: %{name}-info.patch
11 Patch1: %{name}-am.patch
12 URL: http://www.gnu.org/software/gengetopt/
13 BuildRequires: autoconf >= 2.58
14 BuildRequires: automake
15 BuildRequires: help2man
16 BuildRequires: libstdc++-devel
17 BuildRequires: libtool >= 2:1.5
18 BuildRequires: texinfo
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Gengetopt generates a C function that uses getopt_long function to
23 parse the command line options, to validate them and fills a struct.
25 %description -l pl.UTF-8
26 Gengetopt jest to narzędzie generujące kod w języku C, wykorzystujący
27 funkcję getopt_long do analizy opcji linii poleceń, sprawdzania ich
28 poprawności i umieszczania ich w strukturze.
31 Summary: gengetopt examples
32 Summary(pl.UTF-8): Przykłady do gengetopt
34 Requires: %{name} = %{version}-%{release}
39 %description examples -l pl.UTF-8
40 Przykłady do gengetopt.
49 %{__aclocal} -I m4 -I gl/m4
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 DESTDIR=$RPM_BUILD_ROOT
63 cp -p doc/*.{c,cc,ggo,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp -p doc/README.example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gengetopt
70 rm -rf $RPM_BUILD_ROOT
72 %post -p /sbin/postshell
73 -/usr/sbin/fix-info-dir -c %{_infodir}
75 %postun -p /sbin/postshell
76 -/usr/sbin/fix-info-dir -c %{_infodir}
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog LICENSE NEWS README THANKS TODO doc/{gengetopt,index}.html
81 %attr(755,root,root) %{_bindir}/gengetopt
82 %{_mandir}/man1/gengetopt.1*
83 %{_infodir}/gengetopt.info*
87 %defattr(644,root,root,755)
88 %{_examplesdir}/%{name}-%{version}