2 Summary: C library for parsing command line parameters
5 Group: System/Libraries
7 URL: http://www.rpm5.org/
8 Source0: http://www.rpm5.org/files/%{name}/%{name}-%{version}.tar.gz
9 Source1001: %{name}.manifest
10 Patch1: popt-pkgconfig-lib64.patch
11 Requires(post): /sbin/ldconfig
12 Requires(postun): /sbin/ldconfig
16 Popt is a C library for parsing command line parameters. Popt was
17 heavily influenced by the getopt() and getopt_long() functions, but
18 it improves on them by allowing more powerful argument expansion.
19 Popt can parse arbitrary argv[] style arrays and automatically set
20 variables based on command line arguments. Popt allows command line
21 arguments to be aliased via configuration files and includes utility
22 functions for parsing arbitrary strings into argv[] arrays using
28 Summary: Development files for the popt library
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 The popt-devel package includes header files and libraries necessary
34 for developing programs which use the popt C library. It contains the
35 API documentation of the popt library, too.
40 %setup -q -n %{name}-%{version}
47 %configure --disable-static \
57 # Move libpopt.{so,a} to %{_libdir}
58 rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so}
59 pushd $RPM_BUILD_ROOT/%{_lib}
60 mkdir -p $RPM_BUILD_ROOT%{_libdir}
61 ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so
64 # Multiple popt configurations are possible
65 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
67 mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
68 for keyword in LICENSE COPYING COPYRIGHT;
70 for file in `find %{_builddir} -name $keyword`;
72 cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
77 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
83 %defattr(-,root,root,-)
84 %manifest %{name}.manifest
86 %{_datadir}/license/%{name}
92 %defattr(-,root,root,-)
96 %{_libdir}/pkgconfig/popt.pc
98 %doc %{_mandir}/man3/popt.3*