b14fcd
Summary:	C library for parsing command line parameters
b14fcd
Name:		popt
266822
Version:	1.18
266822
Release:	1%{?dist}
b14fcd
License:	MIT
b14fcd
Group:		System Environment/Libraries
266822
URL:		https://github.com/rpm-software-management/popt/
266822
Source:		http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
b14fcd
BuildRequires:	gcc gettext
b14fcd
b14fcd
%description
b14fcd
Popt is a C library for parsing command line parameters. Popt was
b14fcd
heavily influenced by the getopt() and getopt_long() functions, but
b14fcd
it improves on them by allowing more powerful argument expansion.
b14fcd
Popt can parse arbitrary argv[] style arrays and automatically set
b14fcd
variables based on command line arguments. Popt allows command line
b14fcd
arguments to be aliased via configuration files and includes utility
b14fcd
functions for parsing arbitrary strings into argv[] arrays using
b14fcd
shell-like rules.
b14fcd
b14fcd
%package devel
b14fcd
Summary:	Development files for the popt library
b14fcd
Group:		Development/Libraries
b14fcd
Requires:	%{name}%{?_isa} = %{version}-%{release}, pkgconfig
b14fcd
b14fcd
%description devel
b14fcd
The popt-devel package includes header files and libraries necessary
b14fcd
for developing programs which use the popt C library. It contains the
b14fcd
API documentation of the popt library, too.
b14fcd
b14fcd
%package static
b14fcd
Summary:	Static library for parsing command line parameters
b14fcd
Group:		Development/Libraries
b14fcd
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
b14fcd
b14fcd
%description static
b14fcd
The popt-static package includes static libraries of the popt library.
b14fcd
Install it if you need to link statically with libpopt.
b14fcd
b14fcd
%prep
266822
%autosetup
b14fcd
b14fcd
%build
b14fcd
%configure
266822
%make_build
b14fcd
b14fcd
%install
266822
%make_install
b14fcd
b14fcd
# Multiple popt configurations are possible
b14fcd
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
b14fcd
266822
rm -f $RPM_BUILD_ROOT/%{_libdir}/libpopt.la
266822
b14fcd
%find_lang %{name}
b14fcd
b14fcd
%check
b14fcd
make check
b14fcd
b14fcd
%ldconfig_scriptlets
b14fcd
b14fcd
%files -f %{name}.lang
b14fcd
%license COPYING
b14fcd
%doc CHANGES
b14fcd
%{_sysconfdir}/popt.d
b14fcd
%{_libdir}/libpopt.so.*
b14fcd
b14fcd
%files devel
b14fcd
%doc README
b14fcd
%{_libdir}/libpopt.so
b14fcd
%{_libdir}/pkgconfig/%{name}.pc
b14fcd
%{_includedir}/popt.h
b14fcd
%{_mandir}/man3/popt.3*
b14fcd
b14fcd
%files static
b14fcd
%{_libdir}/libpopt.a
b14fcd
b14fcd
%changelog
266822
* Thu Jan 07 2021 Panu Matilainen <pmatilai@redhat.com> - 1.18-1
266822
- Rebase to popt 1.18 (https://github.com/rpm-software-management/popt/releases/tag/popt-1.18-release)
266822
- Update URLs to rebooted upstream
266822
- Clean up ancient cruft from spec, use modern build macros
266822
b14fcd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-14
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b14fcd
b14fcd
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.16-13
b14fcd
- Switch to %%ldconfig_scriptlets
b14fcd
b14fcd
* Thu Oct 12 2017 Robert Scheck <robert@fedoraproject.org> 1.16-12
b14fcd
- Added upstream patch to handle glob(3) error returns (#1051685)
b14fcd
b14fcd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-11
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b14fcd
b14fcd
* Fri Jul 28 2017 Peter Jones <pjones@redhat.com> - 1.16-10
b14fcd
- Make it use %%autosetup -S git
b14fcd
- Fix a memory leak
b14fcd
b14fcd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-9
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b14fcd
b14fcd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-8
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b14fcd
b14fcd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-7
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b14fcd
b14fcd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-6
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b14fcd
b14fcd
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-5
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b14fcd
b14fcd
* Thu Jun 26 2014 Panu Matilainen <pmatilai@redhat.com> - 1.16-4
b14fcd
- Mark license as such, not documentation
b14fcd
b14fcd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-3
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b14fcd
b14fcd
* Wed Jan 08 2014 Robert Scheck <robert@fedoraproject.org> 1.16-2
b14fcd
- Added patch to have --help and --usage translatable (#734434)
b14fcd
b14fcd
* Sun Nov 24 2013 Robert Scheck <robert@fedoraproject.org> 1.16-1
b14fcd
- Upgrade to 1.16 (#448286, #999377)
b14fcd
- Tight run-time dependencies between sub-packages via %%{?_isa}
b14fcd
- Added patch for spelling mistakes in popt man page (#675567)
b14fcd
b14fcd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-15
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b14fcd
b14fcd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-14
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b14fcd
b14fcd
* Fri Dec 14 2012 Panu Matilainen <pmatilai@redhat.com> - 1.13-13
b14fcd
- Remove useless doxygen docs to eliminate multilib conflicts (#533829)
b14fcd
b14fcd
* Thu Aug 02 2012 Panu Matilainen <pmatilai@redhat.com> - 1.13-12
b14fcd
- Hack poptBadOption() to return something semi-meaningful on exec alias
b14fcd
  failures (#697435, #710267)
b14fcd
- Run internal test-suite on build, minimal as it might be
b14fcd
b14fcd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-11
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b14fcd
b14fcd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-10
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b14fcd
b14fcd
* Tue Jun 14 2011 Panu Matilainen <pmatilai@redhat.com>
b14fcd
- Backport upstream patch to fix --opt=<arg> syntax for aliases (#293531)
b14fcd
b14fcd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-8
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b14fcd
b14fcd
* Tue Feb 16 2010 Robert Scheck <robert@fedoraproject.org> 1.13-7
b14fcd
- Solved multilib problems at doxygen generated files (#517509)
b14fcd
b14fcd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-6
b14fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b14fcd
b14fcd
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.13-5
b14fcd
- Rebuilt against gcc 4.4 and rpm 4.6
b14fcd
b14fcd
* Sun May 25 2008 Robert Scheck <robert@fedoraproject.org> 1.13-4
b14fcd
- Solved multilib problems at doxygen generated files (#342921)
b14fcd
b14fcd
* Wed Feb 20 2008 Robert Scheck <robert@fedoraproject.org> 1.13-3
b14fcd
- Revert the broken bind_textdomain_codeset() patch (#433324)
b14fcd
b14fcd
* Thu Feb 14 2008 Robert Scheck <robert@fedoraproject.org> 1.13-2
b14fcd
- Added patch to work around missing bind_textdomain_codeset()
b14fcd
b14fcd
* Sun Dec 30 2007 Robert Scheck <robert@fedoraproject.org> 1.13-1
b14fcd
- Upgrade to 1.13 (#290531, #332201, #425803)
b14fcd
- Solved multilib problems at doxygen generated files (#342921)
b14fcd
b14fcd
* Thu Aug 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-3
b14fcd
- Added buildrequirement to graphviz (#249352)
b14fcd
- Backported bugfixes from CVS (#102254, #135428 and #178413)
b14fcd
b14fcd
* Sun Aug 12 2007 Robert Scheck <robert@fedoraproject.org> 1.12-2
b14fcd
- Move libpopt to /lib[64] (#249814)
b14fcd
- Generate API documentation, added buildrequirement to doxygen
b14fcd
b14fcd
* Mon Jul 23 2007 Robert Scheck <robert@fedoraproject.org> 1.12-1
b14fcd
- Changes to match with Fedora Packaging Guidelines (#249352)
b14fcd
b14fcd
* Tue Jul 10 2007 Jeff Johnson <jbj@rpm5.org>
b14fcd
- release popt-1.12 through rpm5.org.
b14fcd
b14fcd
* Sat Jun  9 2007 Jeff Johnson <jbj@rpm5.org>
b14fcd
- release popt-1.11 through rpm5.org.
b14fcd
b14fcd
* Thu Dec 10 1998 Michael Johnson <johnsonm@redhat.com>
b14fcd
- released 1.2.2; see CHANGES
b14fcd
b14fcd
* Tue Nov 17 1998 Michael K. Johnson <johnsonm@redhat.com>
b14fcd
- added man page to default install
b14fcd
b14fcd
* Thu Oct 22 1998 Erik Troan <ewt@redhat.com>
b14fcd
- see CHANGES file for 1.2
b14fcd
b14fcd
* Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
b14fcd
- added ./configure step to spec file