From 2ecf3151e0f8ea0a2f74dc0fec9d63ad02b29a696f14a843133376a4acf36294 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 14 Jun 2021 08:56:54 +0000 Subject: [PATCH] Accepting request 898078 from home:jengelh:pic - Drop --with-pic (no effect with --disable-static). OBS-URL: https://build.opensuse.org/request/show/898078 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbsd?expand=0&rev=34 --- libbsd.changes | 6 ++++++ libbsd.spec | 26 ++++++++++++-------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/libbsd.changes b/libbsd.changes index 3b4fef8..0077867 100644 --- a/libbsd.changes +++ b/libbsd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 7 12:12:37 UTC 2021 - Jan Engelhardt + +- 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 diff --git a/libbsd.spec b/libbsd.spec index ad4a1d6..9958220 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -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