]> git.pld-linux.org Git - packages/gengetopt.git/blame - gengetopt.spec
- fixed %install...
[packages/gengetopt.git] / gengetopt.spec
CommitLineData
4acb4c0f 1#
4acb4c0f 2Summary: C code generator that generates command line options parsers
3Summary(pl.UTF-8): Generator kodu C generujący paser opcji linii poleceń
4Name: gengetopt
5Version: 2.22.1
a43feec9 6Release: 1
4acb4c0f 7License: GPL v3+
8Group: Development/Tools
9Source0: http://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
10# Source0-md5: 3877433c69902a26887ad65c1a2d60eb
11URL: http://www.gnu.org/software/gengetopt/
e26d6b42 12BuildRequires: autoconf >= 2.58
13BuildRequires: automake
14BuildRequires: libtool
4acb4c0f 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18Gengetopt generates a C function that uses getopt_long function to
19parse the command line options, to validate them and fills a struct.
20
21%description -l pl.UTF-8
22Gengetopt jest to narzędzie generujące kod w języku C, który służy do
23parsowania opcji przekazanych w wierszu poleceń z użyciem biblioteki
24getopt. Kod wygenerowany przez gengetopt potrafi obsłużyć zarówno
25krótkie opcje, jak i długie - sprawdzić poprawność przekazazych
26argumentów i wypełnić odpowiednie struktury.
27
28%package examples
29Summary: gengetopt examples
30Summary(pl.UTF-8): Przykłady gengetopt
31Group: Documentation
32Requires: %{name} = %{epoch}:%{version}-%{release}
33
34%description examples
35Gengetopt examples.
36
37%description examples -l pl.UTF-8
38Przykładowe pliki dla gengetopt.
39
40%prep
41%setup -q
42
43%build
e26d6b42 44%{__libtoolize}
4acb4c0f 45%{__aclocal} -I gl/m4
46%{__autoconf}
47%{__autoheader}
48%{__automake} --add-missing --gnu
49%configure
50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
2bd73457 55install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name},%{_infodir},%{_mandir}/man1}
4acb4c0f 56
729672f7 57install src/%{name} $RPM_BUILD_ROOT%{_bindir}/gengetopt
58install doc/*.{c,cc,ggo,h} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59install doc/README.example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60install src/gnugetopt.h $RPM_BUILD_ROOT%{_datadir}/%{name}/gnugetopt.h
61install src/getopt.c $RPM_BUILD_ROOT%{_datadir}/%{name}/getopt.c
62install src/getopt1.c $RPM_BUILD_ROOT%{_datadir}/%{name}/getopt1.c
4acb4c0f 63install doc/gengetopt.info $RPM_BUILD_ROOT%{_infodir}/gengetopt.info
64install doc/gengetopt.1 $RPM_BUILD_ROOT%{_mandir}/man1/gengetopt.1
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
71%doc AUTHORS ChangeLog NEWS README THANKS TODO
72%attr(755,root,root) %{_bindir}/gengetopt
73%{_mandir}/man1/gengetopt.1*
74%{_infodir}/gengetopt.info*
75%{_datadir}/%{name}
76
77%files examples
78%defattr(644,root,root,755)
729672f7 79%{_examplesdir}/%{name}-%{version}
This page took 0.08074 seconds and 4 git commands to generate.