]> git.pld-linux.org Git - packages/gengetopt.git/blame - gengetopt.spec
- BR: texinfo
[packages/gengetopt.git] / gengetopt.spec
CommitLineData
4acb4c0f 1Summary: C code generator that generates command line options parsers
a65684ca 2Summary(pl.UTF-8): Generator kodu C generujący analizatory opcji linii poleceń
4acb4c0f 3Name: gengetopt
a65684ca 4Version: 2.22.6
a43feec9 5Release: 1
4acb4c0f 6License: GPL v3+
7Group: Development/Tools
8Source0: http://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
a65684ca
JB
9# Source0-md5: 29749a48dda69277ab969c510597a14e
10Patch0: %{name}-info.patch
11Patch1: %{name}-am.patch
4acb4c0f 12URL: http://www.gnu.org/software/gengetopt/
e26d6b42 13BuildRequires: autoconf >= 2.58
14BuildRequires: automake
a65684ca
JB
15BuildRequires: help2man
16BuildRequires: libstdc++-devel
17BuildRequires: libtool >= 2:1.5
46788467 18BuildRequires: texinfo
4acb4c0f 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Gengetopt generates a C function that uses getopt_long function to
23parse the command line options, to validate them and fills a struct.
24
25%description -l pl.UTF-8
a65684ca
JB
26Gengetopt jest to narzędzie generujące kod w języku C, wykorzystujący
27funkcję getopt_long do analizy opcji linii poleceń, sprawdzania ich
28poprawności i umieszczania ich w strukturze.
4acb4c0f 29
30%package examples
31Summary: gengetopt examples
a65684ca 32Summary(pl.UTF-8): Przykłady do gengetopt
4acb4c0f 33Group: Documentation
a65684ca 34Requires: %{name} = %{version}-%{release}
4acb4c0f 35
36%description examples
37Gengetopt examples.
38
39%description examples -l pl.UTF-8
a65684ca 40Przykłady do gengetopt.
4acb4c0f 41
42%prep
43%setup -q
a65684ca
JB
44%patch0 -p1
45%patch1 -p1
4acb4c0f 46
47%build
e26d6b42 48%{__libtoolize}
a65684ca 49%{__aclocal} -I m4 -I gl/m4
4acb4c0f 50%{__autoconf}
51%{__autoheader}
a65684ca 52%{__automake} --gnu
4acb4c0f 53%configure
54%{__make}
55
56%install
57rm -rf $RPM_BUILD_ROOT
a65684ca 58install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
4acb4c0f 59
a65684ca
JB
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
4acb4c0f 62
a65684ca
JB
63cp -p doc/*.{c,cc,ggo,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64cp -p doc/README.example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65
66# packaged as %doc
67%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gengetopt
4acb4c0f 68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
a65684ca
JB
72%post -p /sbin/postshell
73-/usr/sbin/fix-info-dir -c %{_infodir}
74
75%postun -p /sbin/postshell
76-/usr/sbin/fix-info-dir -c %{_infodir}
77
4acb4c0f 78%files
79%defattr(644,root,root,755)
a65684ca 80%doc AUTHORS ChangeLog LICENSE NEWS README THANKS TODO doc/{gengetopt,index}.html
4acb4c0f 81%attr(755,root,root) %{_bindir}/gengetopt
82%{_mandir}/man1/gengetopt.1*
83%{_infodir}/gengetopt.info*
84%{_datadir}/%{name}
85
86%files examples
87%defattr(644,root,root,755)
729672f7 88%{_examplesdir}/%{name}-%{version}
This page took 0.099873 seconds and 4 git commands to generate.