5 Summary: A C library for parsing command line parameters
6 Url: http://www.rpm5.org/
8 Source: popt-%{version}.tar.bz2
10 Source1001: popt.manifest
11 BuildRequires: pkgconfig
14 Popt is a C library for parsing command line parameters. Popt was
15 heavily influenced by the getopt() and getopt_long() functions. It
16 improves on them by allowing more powerful argument expansion. Popt can
17 parse arbitrary argv[] style arrays and automatically set variables
18 based on command line arguments. Popt allows command line arguments to
19 be aliased via configuration files and includes utility functions for
20 parsing arbitrary strings into argv[] arrays using shell-like rules.
23 Summary: A C library for parsing command line parameters
25 Provides: popt = %{version}
26 Obsoletes: popt < %{version}
28 %description -n libpopt
29 Popt is a C library for parsing command line parameters. Popt was
30 heavily influenced by the getopt() and getopt_long() functions. It
31 improves on them by allowing more powerful argument expansion. Popt can
32 parse arbitrary argv[] style arrays and automatically set variables
33 based on command line arguments. Popt allows command line arguments to
34 be aliased via configuration files and includes utility functions for
35 parsing arbitrary strings into argv[] arrays using shell-like rules.
38 Summary: Development files for the popt library
39 Group: Development/Libraries
40 Requires: libpopt = %{version}
43 The popt-devel package includes header files and libraries necessary
44 for developing programs which use the popt C library. It contains the
45 API documentation of the popt library, too.
51 %configure --with-pic --disable-static
57 %if "%{_libdir}" != "%{_prefix}/lib"
58 install -d -m755 %{buildroot}/%{_libdir}/pkgconfig
59 mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
64 %post -n libpopt -p /sbin/ldconfig
66 %postun -n libpopt -p /sbin/ldconfig
71 %manifest %{name}.manifest
74 %{_libdir}/libpopt.so.*
77 %manifest %{name}.manifest
82 %{_mandir}/man3/popt.3*
83 %{_libdir}/pkgconfig/popt.pc