Accepting request 573383 from home:luc14n0:branches:devel:libraries:c_c++

Add a Recommends and a Provides tags turning the lang package installable.

OBS-URL: https://build.opensuse.org/request/show/573383
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbytesize?expand=0&rev=3
This commit is contained in:
Luciano Santos 2018-02-06 15:22:56 +00:00 committed by Git OBS Bridge
parent 865f02870e
commit c5a9193937
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 6 15:06:08 UTC 2018 - luc14n0@linuxmail.org
- Add a %{name}-lang Recommends tag in the preamble and a %{name}
Provides tag under the lib subpackage so the lang subpackge can
be installable.
-------------------------------------------------------------------
Mon Feb 5 19:11:19 UTC 2018 - jengelh@inai.de

View File

@ -34,6 +34,7 @@ BuildRequires: mpfr-devel
BuildRequires: python3-devel
%{?with_python2:BuildRequires: python2-devel}
BuildRequires: pkgconfig(libpcre) >= 8.32
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -45,6 +46,7 @@ account. It also provides support for sizes bigger than MAXUINT64.
%package -n %{libname}
Group: System/Libraries
Summary: A library for working with sizes in bytes
Provides: %{name} = %{version}
%description -n %{libname}
The LibBytesize is a C library that facilitates work with sizes in
@ -97,7 +99,7 @@ the library from Python 3 easier and more convenient.
%install
%make_install
find %{buildroot} -name '*.la' -type f -delete -print
%find_lang %{name}
%find_lang %{name} %{?no_lang_C}
# If python2 bindings are switched off this directory appears.
# A feature request has been upstreamed for python 2 switch (gh#storaged-project/libbytesize#45).