]> git.pld-linux.org Git - packages/argtable2.git/blob - argtable2.spec
- cosmetics
[packages/argtable2.git] / argtable2.spec
1 Summary:        An ANSI C library for parsing GNU style command line arguments
2 Name:           argtable2
3 Version:        6
4 Release:        0.9
5 License:        LGPL v2
6 Group:          Development/Libraries
7 Source0:        http://dl.sourceforge.net/argtable/%{name}-%{version}.tar.gz
8 # Source0-md5:  e1d5035992b29b45c5abad2b3487e096
9 URL:            http://argtable.sourceforge.net/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Argtable is an ANSI C library for parsing GNU style command line
16 arguments. It enables a program's command line syntax to be defined in
17 the source code as an array of argtable structs. The command line is
18 then parsed according to that specification and the resulting values
19 are returned in those same structs where they are accessible to the
20 main program. Both tagged (-v, --verbose, --foo=bar) and untagged
21 arguments are supported, as are multiple instances of each argument.
22 Syntax error handling is automatic and the library also provides the
23 means for displaying the command line syntax directly from the array
24 of argument specifications.
25
26 %package devel
27 Summary:        Header files for argtable2 library
28 Summary(pl):    Pliki nag³ówkowe biblioteki argtable2
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 Header files for argtable2 library.
34
35 %description devel -l pl
36 Pliki nag³ówkowe biblioteki argtable2.
37
38 %package static
39 Summary:        Static argtable2 library
40 Summary(pl):    Statyczna biblioteka argtable2
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static argtable2 library.
46
47 %description static -l pl
48 Statyczna biblioteka argtable2.
49
50 %prep
51 %setup -q
52
53 %build
54 %configure
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post   -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
68
69 %files
70 %defattr(644,root,root,755)
71 %doc AUTHORS ChangeLog
72 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
73
74 %files devel
75 %defattr(644,root,root,755)
76 %doc example doc/*.{ps,gif,html,pdf}
77 %attr(755,root,root) %{_libdir}/lib*.so
78 %{_libdir}/lib*.la
79 %{_includedir}/*.h
80 %{_datadir}/%{name}.def
81 %{_mandir}/man3/*.3*
82
83 %files static
84 %defattr(644,root,root,755)
85 %{_libdir}/lib*.a
This page took 0.1054 seconds and 4 git commands to generate.