Blame SPECS/popt.spec

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