]> git.pld-linux.org Git - packages/gengetopt.git/blame - gengetopt.spec
- updated to 2.23
[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
410a3cb6 4Version: 2.23
a43feec9 5Release: 1
4acb4c0f 6License: GPL v3+
7Group: Development/Tools
410a3cb6
JB
8Source0: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.xz
9# Source0-md5: ea165d618640dbdecb42ae4491337965
a65684ca 10Patch0: %{name}-info.patch
4acb4c0f 11URL: http://www.gnu.org/software/gengetopt/
e26d6b42 12BuildRequires: autoconf >= 2.58
13BuildRequires: automake
a65684ca
JB
14BuildRequires: help2man
15BuildRequires: libstdc++-devel
16BuildRequires: libtool >= 2:1.5
410a3cb6 17BuildRequires: tar >= 1:1.22
46788467 18BuildRequires: texinfo
410a3cb6 19BuildRequires: xz
4acb4c0f 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Gengetopt generates a C function that uses getopt_long function to
24parse the command line options, to validate them and fills a struct.
25
26%description -l pl.UTF-8
a65684ca
JB
27Gengetopt jest to narzędzie generujące kod w języku C, wykorzystujący
28funkcję getopt_long do analizy opcji linii poleceń, sprawdzania ich
29poprawności i umieszczania ich w strukturze.
4acb4c0f 30
31%package examples
32Summary: gengetopt examples
a65684ca 33Summary(pl.UTF-8): Przykłady do gengetopt
4acb4c0f 34Group: Documentation
a65684ca 35Requires: %{name} = %{version}-%{release}
4acb4c0f 36
37%description examples
38Gengetopt examples.
39
40%description examples -l pl.UTF-8
a65684ca 41Przykłady do gengetopt.
4acb4c0f 42
43%prep
44%setup -q
a65684ca 45%patch0 -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
410a3cb6
JB
68# .texi meant just for index.html(?)
69%{__rm} $RPM_BUILD_ROOT%{_infodir}/index.info
4acb4c0f 70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
a65684ca
JB
74%post -p /sbin/postshell
75-/usr/sbin/fix-info-dir -c %{_infodir}
76
77%postun -p /sbin/postshell
78-/usr/sbin/fix-info-dir -c %{_infodir}
79
4acb4c0f 80%files
81%defattr(644,root,root,755)
a65684ca 82%doc AUTHORS ChangeLog LICENSE NEWS README THANKS TODO doc/{gengetopt,index}.html
4acb4c0f 83%attr(755,root,root) %{_bindir}/gengetopt
84%{_mandir}/man1/gengetopt.1*
85%{_infodir}/gengetopt.info*
86%{_datadir}/%{name}
87
88%files examples
89%defattr(644,root,root,755)
729672f7 90%{_examplesdir}/%{name}-%{version}
This page took 0.070337 seconds and 4 git commands to generate.