]>
Commit | Line | Data |
---|---|---|
b42da7ab | 1 | Summary: An ANSI C library for parsing GNU style command line arguments |
1d80a9b9 | 2 | Summary(pl.UTF-8): Biblioteka ANSI C do analizy argumentów linii poleceń w stylu GNU |
b42da7ab PG |
3 | Name: argtable2 |
4 | Version: 6 | |
5 | Release: 0.9 | |
6 | License: LGPL v2 | |
7c9f5b2a | 7 | Group: Libraries |
b42da7ab PG |
8 | Source0: http://dl.sourceforge.net/argtable/%{name}-%{version}.tar.gz |
9 | # Source0-md5: e1d5035992b29b45c5abad2b3487e096 | |
10 | URL: http://argtable.sourceforge.net/ | |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Argtable is an ANSI C library for parsing GNU style command line | |
17 | arguments. It enables a program's command line syntax to be defined in | |
18 | the source code as an array of argtable structs. The command line is | |
19 | then parsed according to that specification and the resulting values | |
20 | are returned in those same structs where they are accessible to the | |
21 | main program. Both tagged (-v, --verbose, --foo=bar) and untagged | |
22 | arguments are supported, as are multiple instances of each argument. | |
23 | Syntax error handling is automatic and the library also provides the | |
24 | means for displaying the command line syntax directly from the array | |
25 | of argument specifications. | |
26 | ||
e3ad173d JR |
27 | %description -l pl.UTF-8 |
28 | Argtable to biblioteka ANSI C do analizy argumentów linii poleceń w | |
29 | stylu GNU. Pozwala na definiowanie składni linii poleceń programu w | |
30 | kodzie źródłowym jako tablicy struktur argtable. Linia poleceń jest | |
31 | potem analizowana zgodnie z tą specyfikacją, a wartości zwracane są | |
32 | przez te same struktury dostępne dla głównego programu. Obsługiwane | |
33 | są argumenty zarówno ze znacznikami (-v, --verbose, --foo=bar) jak i | |
34 | bez znaczników, a także wielokrotne wystąpienia danego argumentu. | |
35 | Obsługa błędów składni jest automatyczna, a biblioteka udostępnia | |
36 | także wyświetlanie składni linii poleceń bezpośrednio z tablicy | |
37 | specyfikacji argumentów. | |
7c9f5b2a | 38 | |
b42da7ab | 39 | %package devel |
aaf72b20 | 40 | Summary: Header files for argtable2 library |
1d80a9b9 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki argtable2 |
aaf72b20 | 42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
b42da7ab PG |
44 | |
45 | %description devel | |
46 | Header files for argtable2 library. | |
47 | ||
e3ad173d JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki argtable2. | |
b42da7ab PG |
50 | |
51 | %package static | |
aaf72b20 | 52 | Summary: Static argtable2 library |
1d80a9b9 | 53 | Summary(pl.UTF-8): Statyczna biblioteka argtable2 |
aaf72b20 | 54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
b42da7ab PG |
56 | |
57 | %description static | |
58 | Static argtable2 library. | |
59 | ||
e3ad173d | 60 | %description static -l pl.UTF-8 |
b42da7ab PG |
61 | Statyczna biblioteka argtable2. |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
67 | %configure | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS ChangeLog | |
85 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %doc example doc/*.{ps,gif,html,pdf} | |
90 | %attr(755,root,root) %{_libdir}/lib*.so | |
91 | %{_libdir}/lib*.la | |
92 | %{_includedir}/*.h | |
93 | %{_datadir}/%{name}.def | |
94 | %{_mandir}/man3/*.3* | |
95 | ||
96 | %files static | |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/lib*.a |