libbsd/libbsd.spec
Dirk Mueller 77baea6136 Accepting request 1008765 from home:dirkmueller:Factory
- update to 0.11.7:
  * man: Discourage using the library in non-overlay mode
  * include: Adjust reallocarray() per glibc adoption
  * include: Adjust arc4random() per glibc adoption
  * include: explicit_bzero() requires _DEFAULT_SOURCE
  * include: Simplify glibc version dependent macro handling
  * doc: Switch references from pkg-config to pkgconf
  * doc: Add missing empty line to separate README sections
  * doc: Refer to the main git repository as primary
  * test: Fix explicit_bzero() test on the Hurd
  * fgetwln: Add comment about lack of getwline(3) for recommendation
  * setmode: Dot not use saveset after free
  * man: Rewrite gerprogname(3bsd) from scratch
  * man: Lowercase man page title
  * man: Document that some arc4random(3) functions are now in glibc 2.36
  * Sync arc4random(3) implementation from OpenBSD
  * Fix ELF support for big endian SH
  * man: Use -compact also for alternative functions in libbsd(7)
  * getentropy: Fix function cast for getauxval()

OBS-URL: https://build.opensuse.org/request/show/1008765
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbsd?expand=0&rev=39
2022-10-12 10:51:52 +00:00

112 lines
3.4 KiB
RPMSpec

#
# spec file for package libbsd
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lname libbsd0
Name: libbsd
Version: 0.11.7
Release: 0
Summary: Library with functions commonly found on BSD systems
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://libbsd.freedesktop.org/
Source0: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
Source1: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: fdupes
BuildRequires: libmd-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
%description
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: Library with functions commonly found on BSD systems
Group: System/Libraries
%description -n %{lname}
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/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: glibc-devel
Requires: libmd-devel
%description devel
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/Libraries/C and C++
Requires: %{lname} = %{version}-%{release}
Requires: pkgconfig
%description ctor-static
The libbsd-ctor static library is required if setproctitle() is to be used
when libbsd is loaded via dlopen() from a threaded program. This can be
configured using "pkg-config --libs libbsd-ctor".
%prep
%autosetup
%build
export CFLAGS="%{optflags} -ffat-lto-objects"
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}
%check
%make_build check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license COPYING
%doc ChangeLog
%{_libdir}/libbsd.so.0*
%files devel
%{_includedir}/bsd
%{_libdir}/libbsd.so
%{_mandir}/man3/*
%{_mandir}/man7/*
%{_libdir}/pkgconfig/libbsd.pc
%{_libdir}/pkgconfig/libbsd-overlay.pc
%files ctor-static
%{_libdir}/libbsd-ctor.a
%{_libdir}/pkgconfig/libbsd-ctor.pc
%changelog