SHA256
3
0
forked from pool/popt

Accepting request 982370 from Base:System

OBS-URL: https://build.opensuse.org/request/show/982370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/popt?expand=0&rev=39
This commit is contained in:
Dominique Leuenberger 2022-06-16 16:19:32 +00:00 committed by Git OBS Bridge
commit a627099c88
2 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 7 10:56:25 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Create lang subpackage
-------------------------------------------------------------------
Mon Aug 24 00:12:29 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -15,7 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname libpopt0
Name: popt
Version: 1.18
Release: 0
@ -24,8 +24,7 @@ Summary: A C library for parsing command line parameters
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/rpm-software-management/popt
Source: http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
Source0: http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
Source2: baselibs.conf
Patch: popt-libc-updates.patch
BuildRequires: libtool
@ -40,13 +39,13 @@ 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
%package -n %{soname}
Summary: A C library for parsing command line parameters
Group: System/Libraries
Provides: popt = %{version}
Obsoletes: popt < %{version}
%description -n libpopt0
%description -n %{soname}
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
@ -59,13 +58,15 @@ parsing arbitrary strings into argv[] arrays using shell-like rules.
Summary: Development files for the popt library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libpopt0 = %{version}
Requires: %{soname} = %{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.
%lang_package
%prep
%autosetup -p1
@ -80,15 +81,17 @@ rm %{buildroot}%{_libdir}/libpopt.la
%find_lang %{name}
%post -n libpopt0 -p /sbin/ldconfig
%post -n %{soname} -p /sbin/ldconfig
%postun -n libpopt0 -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files -n libpopt0 -f %{name}.lang
%files -n %{soname}
%license COPYING
%doc CHANGES
%{_libdir}/libpopt.so.*
%files lang -f %{name}.lang
%files devel
%doc README
%{_libdir}/libpopt.so