2 # Do NOT Edit the Auto-generated Part!
3 # Generated by: spectacle version 0.22
9 Summary: C library for parsing command line parameters
12 Group: System/Libraries
14 URL: http://www.rpm5.org/
15 Source0: http://www.rpm5.org/files/%{name}/%{name}-%{version}.tar.gz
17 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
22 Popt is a C library for parsing command line parameters. Popt was
23 heavily influenced by the getopt() and getopt_long() functions, but
24 it improves on them by allowing more powerful argument expansion.
25 Popt can parse arbitrary argv[] style arrays and automatically set
26 variables based on command line arguments. Popt allows command line
27 arguments to be aliased via configuration files and includes utility
28 functions for parsing arbitrary strings into argv[] arrays using
34 Summary: Development files for the popt library
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 The popt-devel package includes header files and libraries necessary
40 for developing programs which use the popt C library. It contains the
41 API documentation of the popt library, too.
46 %setup -q -n %{name}-%{version}
55 %configure --disable-static \
71 # Move libpopt.{so,a} to %{_libdir}
72 rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so}
73 pushd $RPM_BUILD_ROOT/%{_lib}
74 mkdir -p $RPM_BUILD_ROOT%{_libdir}
75 ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so
78 # Multiple popt configurations are possible
79 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
86 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
95 %defattr(-,root,root,-)
104 %defattr(-,root,root,-)
108 %{_libdir}/libpopt.so
109 %{_libdir}/pkgconfig/popt.pc
110 %{_includedir}/popt.h
111 %doc %{_mandir}/man3/popt.3*