Marcus Meissner
a38b89aef4
- Remove patches: - config-guess-sub-update.patch - popt-secure-getenv.patch run autoreconf instead . - popt-libc-updates.patch replaces popt-secure-getenv.patch * test for secure_getenv instead of __secure_getenv * update configure.ac so it can be regenerated with modern autotools. * Internal symbols are already hidden with a linker script, improve that by hidding symbols with the compiler too. * use strerror_r instead of strerror in the library. - popt wants __secure_getenv at configure time, but This function is no longer available as of glibc 2.17. test for secure_getenv() instead (popt-secure-getenv.patch) OBS-URL: https://build.opensuse.org/request/show/155365 OBS-URL: https://build.opensuse.org/package/show/Base:System/popt?expand=0&rev=35
110 lines
3.4 KiB
RPMSpec
110 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package popt
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: popt
|
|
Version: 1.16
|
|
Release: 0
|
|
#!BuildIgnore: rpmlint-Factory
|
|
Summary: A C library for parsing command line parameters
|
|
License: MIT
|
|
Group: System Environment/Libraries
|
|
Url: http://www.rpm5.org/
|
|
Source: popt-%{version}.tar.bz2
|
|
Source2: baselibs.conf
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch0: popt-libc-updates.patch
|
|
|
|
%description
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
heavily influenced by the getopt() and getopt_long() functions. 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 -n libpopt0
|
|
Summary: A C library for parsing command line parameters
|
|
Group: System Environment/Libraries
|
|
Provides: popt = %{version}
|
|
Obsoletes: popt < %{version}
|
|
|
|
%description -n libpopt0
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
heavily influenced by the getopt() and getopt_long() functions. 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: glibc-devel
|
|
Requires: libpopt0 = %{version}
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --with-pic --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}%{_libdir}/libpopt.la
|
|
|
|
%if "%{_libdir}" != "%{_prefix}/lib"
|
|
install -d -m755 %{buildroot}/%{_libdir}/pkgconfig
|
|
mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
|
|
%endif
|
|
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libpopt0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpopt0 -p /sbin/ldconfig
|
|
|
|
%files -n libpopt0 -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc CHANGES COPYING
|
|
%{_libdir}/libpopt.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{_libdir}/libpopt.so
|
|
%{_includedir}/popt.h
|
|
%{_mandir}/man3/popt.3*
|
|
%{_libdir}/pkgconfig/popt.pc
|
|
|
|
%changelog
|