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