96b077
Summary:	C library for parsing command line parameters
96b077
Name:		popt
96b077
Version:	1.13
96b077
Release:	16%{?dist}
96b077
License:	MIT
96b077
Group:		System Environment/Libraries
96b077
URL:		http://www.rpm5.org/
96b077
Source:		http://www.rpm5.org/files/%{name}/%{name}-%{version}.tar.gz
96b077
Patch1:		popt-1.13-popt_fprintf.patch
96b077
Patch2:		popt-1.13-alias-equal-arg.patch
96b077
Patch3:		popt-1.13-execfail.patch
96b077
BuildRequires:	gettext
96b077
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
96b077
96b077
%description
96b077
Popt is a C library for parsing command line parameters. Popt was
96b077
heavily influenced by the getopt() and getopt_long() functions, but
96b077
it improves on them by allowing more powerful argument expansion.
96b077
Popt can parse arbitrary argv[] style arrays and automatically set
96b077
variables based on command line arguments. Popt allows command line
96b077
arguments to be aliased via configuration files and includes utility
96b077
functions for parsing arbitrary strings into argv[] arrays using
96b077
shell-like rules.
96b077
96b077
%package devel
96b077
Summary:	Development files for the popt library
96b077
Group:		Development/Libraries
96b077
Requires:	%{name} = %{version}-%{release}
96b077
96b077
%description devel
96b077
The popt-devel package includes header files and libraries necessary
96b077
for developing programs which use the popt C library. It contains the
96b077
API documentation of the popt library, too.
96b077
96b077
%package static
96b077
Summary:	Static library for parsing command line parameters
96b077
Group:		Development/Libraries
96b077
Requires:	%{name}-devel = %{version}-%{release}
96b077
96b077
%description static
96b077
The popt-static package includes static libraries of the popt library.
96b077
Install it if you need to link statically with libpopt.
96b077
96b077
%prep
96b077
%setup -q
96b077
%patch1 -p1 -b .popt_fprintf
96b077
%patch2 -p1 -b .alias-equal-arg
96b077
%patch3 -p1 -b .execfail
96b077
96b077
%build
96b077
%configure --libdir=/%{_lib}
96b077
make %{?_smp_mflags}
96b077
96b077
%install
96b077
rm -rf $RPM_BUILD_ROOT
96b077
make DESTDIR=$RPM_BUILD_ROOT install
96b077
96b077
# Move libpopt.{so,a} to %{_libdir}
96b077
rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so}
96b077
pushd $RPM_BUILD_ROOT/%{_lib}
96b077
mkdir -p $RPM_BUILD_ROOT%{_libdir}
96b077
ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so
96b077
popd
96b077
mv -f $RPM_BUILD_ROOT/%{_lib}/libpopt.a $RPM_BUILD_ROOT%{_libdir}/libpopt.a
96b077
96b077
# Multiple popt configurations are possible
96b077
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
96b077
96b077
%find_lang %{name}
96b077
96b077
%clean
96b077
rm -rf $RPM_BUILD_ROOT
96b077
96b077
%check
96b077
make check
96b077
96b077
%post -p /sbin/ldconfig
96b077
96b077
%postun -p /sbin/ldconfig
96b077
96b077
%files -f %{name}.lang
96b077
%defattr(-,root,root)
96b077
%doc CHANGES COPYING
96b077
%{_sysconfdir}/popt.d
96b077
/%{_lib}/libpopt.so.*
96b077
96b077
%files devel
96b077
%defattr(-,root,root)
96b077
%doc README
96b077
%{_libdir}/libpopt.so
96b077
%{_includedir}/popt.h
96b077
%{_mandir}/man3/popt.3*
96b077
96b077
%files static
96b077
%defattr(-,root,root)
96b077
%{_libdir}/libpopt.a
96b077
96b077
%changelog
96b077
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.13-16
96b077
- Mass rebuild 2014-01-24
96b077
96b077
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.13-15
96b077
- Mass rebuild 2013-12-27
96b077
96b077
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-14
96b077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
96b077
96b077
* Fri Dec 14 2012 Panu Matilainen <pmatilai@redhat.com> - 1.13-13
96b077
- Remove useless doxygen docs to eliminate multilib conflicts (#533829)
96b077
96b077
* Thu Aug 02 2012 Panu Matilainen <pmatilai@redhat.com> - 1.13-12
96b077
- Hack poptBadOption() to return something semi-meaningful on exec alias
96b077
  failures (#697435, #710267)
96b077
- Run internal test-suite on build, minimal as it might be
96b077
96b077
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-11
96b077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
96b077
96b077
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-10
96b077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
96b077
96b077
* Tue Jun 14 2011 Panu Matilainen <pmatilai@redhat.com>
96b077
- Backport upstream patch to fix --opt=<arg> syntax for aliases (#293531)
96b077
96b077
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-8
96b077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
96b077
96b077
* Tue Feb 16 2010 Robert Scheck <robert@fedoraproject.org> 1.13-7
96b077
- Solved multilib problems at doxygen generated files (#517509)
96b077
96b077
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-6
96b077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
96b077
96b077
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.13-5
96b077
- Rebuilt against gcc 4.4 and rpm 4.6
96b077
96b077
* Sun May 25 2008 Robert Scheck <robert@fedoraproject.org> 1.13-4
96b077
- Solved multilib problems at doxygen generated files (#342921)
96b077
96b077
* Wed Feb 20 2008 Robert Scheck <robert@fedoraproject.org> 1.13-3
96b077
- Revert the broken bind_textdomain_codeset() patch (#433324)
96b077
96b077
* Thu Feb 14 2008 Robert Scheck <robert@fedoraproject.org> 1.13-2
96b077
- Added patch to work around missing bind_textdomain_codeset()
96b077
96b077
* Sun Dec 30 2007 Robert Scheck <robert@fedoraproject.org> 1.13-1
96b077
- Upgrade to 1.13 (#290531, #332201, #425803)
96b077
- Solved multilib problems at doxygen generated files (#342921)
96b077
96b077
* Thu Aug 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-3
96b077
- Added buildrequirement to graphviz (#249352)
96b077
- Backported bugfixes from CVS (#102254, #135428 and #178413)
96b077
96b077
* Sun Aug 12 2007 Robert Scheck <robert@fedoraproject.org> 1.12-2
96b077
- Move libpopt to /lib[64] (#249814)
96b077
- Generate API documentation, added buildrequirement to doxygen
96b077
96b077
* Mon Jul 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-1
96b077
- Changes to match with Fedora Packaging Guidelines (#249352)
96b077
96b077
* Tue Jul 10 2007 Jeff Johnson <jbj@rpm5.org>
96b077
- release popt-1.12 through rpm5.org.
96b077
96b077
* Sat Jun  9 2007 Jeff Johnson <jbj@rpm5.org>
96b077
- release popt-1.11 through rpm5.org.
96b077
96b077
* Thu Dec 10 1998 Michael Johnson <johnsonm@redhat.com>
96b077
- released 1.2.2; see CHANGES
96b077
96b077
* Tue Nov 17 1998 Michael K. Johnson <johnsonm@redhat.com>
96b077
- added man page to default install
96b077
96b077
* Thu Oct 22 1998 Erik Troan <ewt@redhat.com>
96b077
- see CHANGES file for 1.2
96b077
96b077
* Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
96b077
- added ./configure step to spec file