Accepting request 899907 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/899907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libbsd?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2021-06-16 18:33:26 +00:00 committed by Git OBS Bridge
commit c5d86c1097
2 changed files with 18 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 7 12:12:37 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop --with-pic (no effect with --disable-static).
- Make description neutral; adhere to noun phrasing.
-------------------------------------------------------------------
Mon Dec 16 09:18:45 UTC 2019 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package libbsd
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,9 +20,9 @@
Name: libbsd
Version: 0.10.0
Release: 0
Summary: Provides useful functions commonly found on BSD systems
Summary: Library with functions commonly found on BSD systems
License: BSD-3-Clause
Group: Development/Languages/C and C++
Group: Development/Libraries/C and C++
URL: https://libbsd.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/git/libbsd
#Git-Web: http://cgit.freedesktop.org/libbsd/
@ -34,36 +34,36 @@ BuildRequires: openssl-devel
BuildRequires: pkgconfig
%description
This library provides useful functions commonly found on BSD systems, and
This library provides functions commonly found on BSD systems, and
lacking on others like GNU systems, thus making it easier to port projects
with strong BSD origins, without needing to embed the same code over and
over again on each project.
%package -n %{lname}
Summary: Provides useful functions commonly found on BSD systems
Summary: Library with functions commonly found on BSD systems
Group: System/Libraries
%description -n %{lname}
This library provides useful functions commonly found on BSD systems, and
This library provides functions commonly found on BSD systems, and
lacking on others like GNU systems, thus making it easier to port projects
with strong BSD origins, without needing to embed the same code over and
over again on each project.
%package devel
Summary: Development headers and files for libbsd
Group: Development/Languages/C and C++
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: glibc-devel
%description devel
This library provides useful functions commonly found on BSD systems, and
This library provides functions commonly found on BSD systems, and
lacking on others like GNU systems, thus making it easier to port projects
with strong BSD origins, without needing to embed the same code over and
over again on each project.
%package ctor-static
Summary: Development headers and files for libbsd
Group: Development/Languages/C and C++
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}-%{release}
Requires: pkgconfig
@ -73,13 +73,11 @@ when libbsd is loaded via dlopen() from a threaded program. This can be
configured using "pkg-config --libs libbsd-ctor".
%prep
%setup -q
%autosetup
%build
%define _lto_cflags %{nil}
%configure \
--disable-static \
--with-pic
%configure --disable-static
%make_build
%install
@ -88,7 +86,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}
%check
make %{?_smp_mflags} check
%make_build check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig