Accepting request 981131 from home:gmbr3:Active
- Create lang subpackage OBS-URL: https://build.opensuse.org/request/show/981131 OBS-URL: https://build.opensuse.org/package/show/Base:System/popt?expand=0&rev=58
This commit is contained in:
parent
27c957b310
commit
b60cd0c292
@ -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>
|
||||
|
||||
|
21
popt.spec
21
popt.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user