2009-08-28 15:08:07 +02:00
|
|
|
#
|
2011-01-17 13:43:23 +01:00
|
|
|
# spec file for package popt
|
2009-08-28 15:08:07 +02:00
|
|
|
#
|
2022-09-28 09:04:29 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-08-28 15:08:07 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-02-13 12:50:11 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-28 15:08:07 +02:00
|
|
|
#
|
|
|
|
|
2022-09-28 09:04:29 +02:00
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%define soname libpopt0
|
2009-08-28 15:08:07 +02:00
|
|
|
Name: popt
|
2022-09-28 09:04:29 +02:00
|
|
|
Version: 1.19
|
2012-02-12 23:52:37 +01:00
|
|
|
Release: 0
|
2009-08-28 15:08:07 +02:00
|
|
|
Summary: A C library for parsing command line parameters
|
2013-02-04 17:13:36 +01:00
|
|
|
License: MIT
|
2017-08-21 07:40:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-09-23 16:26:29 +02:00
|
|
|
URL: https://github.com/rpm-software-management/popt
|
2022-06-13 10:25:32 +02:00
|
|
|
Source0: http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
|
2010-01-14 15:03:00 +01:00
|
|
|
Source2: baselibs.conf
|
2022-09-28 09:04:29 +02:00
|
|
|
Patch0: popt-libc-updates.patch
|
2013-02-14 23:02:50 +01:00
|
|
|
BuildRequires: libtool
|
2011-10-20 08:48:26 +02:00
|
|
|
BuildRequires: pkgconfig
|
2022-09-28 09:04:29 +02:00
|
|
|
#!BuildIgnore: rpmlint-Factory
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%package -n %{soname}
|
2009-08-28 15:08:07 +02:00
|
|
|
Summary: A C library for parsing command line parameters
|
2017-08-21 07:40:18 +02:00
|
|
|
Group: System/Libraries
|
2012-02-12 23:52:37 +01:00
|
|
|
Provides: popt = %{version}
|
2009-08-28 15:08:07 +02:00
|
|
|
Obsoletes: popt < %{version}
|
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%description -n %{soname}
|
2009-08-28 15:08:07 +02:00
|
|
|
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
|
2017-08-21 07:40:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-06-13 10:25:32 +02:00
|
|
|
Requires: %{soname} = %{version}
|
2022-09-28 09:04:29 +02:00
|
|
|
Requires: glibc-devel
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%lang_package
|
|
|
|
|
2009-08-28 15:08:07 +02:00
|
|
|
%prep
|
2020-08-16 01:52:30 +02:00
|
|
|
%autosetup -p1
|
2013-02-14 23:02:50 +01:00
|
|
|
|
2009-08-28 15:08:07 +02:00
|
|
|
%build
|
2013-06-17 10:35:44 +02:00
|
|
|
autoreconf -fiv
|
2022-09-28 09:04:29 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-werror \
|
|
|
|
%{nil}
|
2020-08-16 01:52:30 +02:00
|
|
|
%make_build
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%install
|
2020-08-16 01:52:30 +02:00
|
|
|
%make_install
|
2022-09-28 09:04:29 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-02-12 23:52:37 +01:00
|
|
|
|
|
|
|
%find_lang %{name}
|
2009-08-28 15:08:07 +02:00
|
|
|
|
2022-09-28 09:04:29 +02:00
|
|
|
%check
|
|
|
|
%make_build check
|
2009-08-28 15:08:07 +02:00
|
|
|
|
2022-09-28 09:04:29 +02:00
|
|
|
%post -n %{soname} -p /sbin/ldconfig
|
2022-06-13 10:25:32 +02:00
|
|
|
%postun -n %{soname} -p /sbin/ldconfig
|
2009-08-28 15:08:07 +02:00
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%files -n %{soname}
|
2018-02-27 10:47:04 +01:00
|
|
|
%license COPYING
|
2012-02-12 23:52:37 +01:00
|
|
|
%{_libdir}/libpopt.so.*
|
2009-08-28 15:08:07 +02:00
|
|
|
|
2022-06-13 10:25:32 +02:00
|
|
|
%files lang -f %{name}.lang
|
2022-09-28 09:04:29 +02:00
|
|
|
%license COPYING
|
2022-06-13 10:25:32 +02:00
|
|
|
|
2009-08-28 15:08:07 +02:00
|
|
|
%files devel
|
2022-09-28 09:04:29 +02:00
|
|
|
%license COPYING
|
2009-08-28 15:08:07 +02:00
|
|
|
%doc README
|
2012-02-12 23:52:37 +01:00
|
|
|
%{_libdir}/libpopt.so
|
2009-08-28 15:08:07 +02:00
|
|
|
%{_includedir}/popt.h
|
2022-09-28 09:04:29 +02:00
|
|
|
%{_mandir}/man3/popt.3%{?ext_man}
|
2010-09-20 14:51:04 +02:00
|
|
|
%{_libdir}/pkgconfig/popt.pc
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%changelog
|