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