]> git.pld-linux.org Git - packages/gengetopt.git/blame - gengetopt.spec
- updated to 2.22.6, use make install
[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
4acb4c0f 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Gengetopt generates a C function that uses getopt_long function to
22parse the command line options, to validate them and fills a struct.
23
24%description -l pl.UTF-8
a65684ca
JB
25Gengetopt jest to narzędzie generujące kod w języku C, wykorzystujący
26funkcję getopt_long do analizy opcji linii poleceń, sprawdzania ich
27poprawności i umieszczania ich w strukturze.
4acb4c0f 28
29%package examples
30Summary: gengetopt examples
a65684ca 31Summary(pl.UTF-8): Przykłady do gengetopt
4acb4c0f 32Group: Documentation
a65684ca 33Requires: %{name} = %{version}-%{release}
4acb4c0f 34
35%description examples
36Gengetopt examples.
37
38%description examples -l pl.UTF-8
a65684ca 39Przykłady do gengetopt.
4acb4c0f 40
41%prep
42%setup -q
a65684ca
JB
43%patch0 -p1
44%patch1 -p1
4acb4c0f 45
46%build
e26d6b42 47%{__libtoolize}
a65684ca 48%{__aclocal} -I m4 -I gl/m4
4acb4c0f 49%{__autoconf}
50%{__autoheader}
a65684ca 51%{__automake} --gnu
4acb4c0f 52%configure
53%{__make}
54
55%install
56rm -rf $RPM_BUILD_ROOT
a65684ca 57install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
4acb4c0f 58
a65684ca
JB
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
4acb4c0f 61
a65684ca
JB
62cp -p doc/*.{c,cc,ggo,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63cp -p doc/README.example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64
65# packaged as %doc
66%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gengetopt
4acb4c0f 67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
a65684ca
JB
71%post -p /sbin/postshell
72-/usr/sbin/fix-info-dir -c %{_infodir}
73
74%postun -p /sbin/postshell
75-/usr/sbin/fix-info-dir -c %{_infodir}
76
4acb4c0f 77%files
78%defattr(644,root,root,755)
a65684ca 79%doc AUTHORS ChangeLog LICENSE NEWS README THANKS TODO doc/{gengetopt,index}.html
4acb4c0f 80%attr(755,root,root) %{_bindir}/gengetopt
81%{_mandir}/man1/gengetopt.1*
82%{_infodir}/gengetopt.info*
83%{_datadir}/%{name}
84
85%files examples
86%defattr(644,root,root,755)
729672f7 87%{_examplesdir}/%{name}-%{version}
This page took 0.088425 seconds and 4 git commands to generate.