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
|
|
|
#
|
2020-02-13 12:50:11 +01:00
|
|
|
# Copyright (c) 2020 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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: popt
|
2020-08-16 01:52:30 +02:00
|
|
|
Version: 1.18
|
2012-02-12 23:52:37 +01:00
|
|
|
Release: 0
|
2009-08-28 15:08:07 +02:00
|
|
|
#!BuildIgnore: rpmlint-Factory
|
|
|
|
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-02-13 12:50:11 +01:00
|
|
|
URL: http://www.rpm.org/
|
2013-07-07 19:39:14 +02:00
|
|
|
|
|
|
|
#CVS-Clone: -d :pserver:anonymous@rpm5.org:/cvs co popt
|
2020-08-16 01:52:30 +02:00
|
|
|
Source: http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
|
2010-01-14 15:03:00 +01:00
|
|
|
Source2: baselibs.conf
|
2020-08-16 01:52:30 +02:00
|
|
|
Patch: popt-libc-updates.patch
|
2013-02-14 23:02:50 +01:00
|
|
|
BuildRequires: libtool
|
2011-10-20 08:48:26 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-02-12 23:52:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
|
|
%package -n libpopt0
|
|
|
|
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}
|
|
|
|
|
|
|
|
%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
|
2017-08-21 07:40:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-14 23:02:50 +01:00
|
|
|
Requires: glibc-devel
|
2009-08-28 15:08:07 +02:00
|
|
|
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
|
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
|
2017-08-21 07:40:18 +02:00
|
|
|
%configure --disable-static
|
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
|
2012-02-12 23:52:37 +01:00
|
|
|
rm %{buildroot}%{_libdir}/libpopt.la
|
|
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%post -n libpopt0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpopt0 -p /sbin/ldconfig
|
|
|
|
|
2012-02-12 23:52:37 +01:00
|
|
|
%files -n libpopt0 -f %{name}.lang
|
2009-08-28 15:08:07 +02:00
|
|
|
%defattr(-,root,root)
|
2018-02-27 10:47:04 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc CHANGES
|
2012-02-12 23:52:37 +01:00
|
|
|
%{_libdir}/libpopt.so.*
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
2012-02-12 23:52:37 +01:00
|
|
|
%{_libdir}/libpopt.so
|
2009-08-28 15:08:07 +02:00
|
|
|
%{_includedir}/popt.h
|
|
|
|
%{_mandir}/man3/popt.3*
|
2010-09-20 14:51:04 +02:00
|
|
|
%{_libdir}/pkgconfig/popt.pc
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%changelog
|