2012-08-20 18:42:24 +02:00
|
|
|
#
|
|
|
|
# spec file for package libbsd
|
|
|
|
#
|
2022-04-19 14:07:52 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-08-20 18:42:24 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-25 15:43:38 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-08-20 18:42:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-09-07 08:52:19 +02:00
|
|
|
%define lname libbsd0
|
2015-05-08 10:51:16 +02:00
|
|
|
Name: libbsd
|
2022-04-19 14:07:52 +02:00
|
|
|
Version: 0.11.6
|
2011-08-03 00:30:03 +02:00
|
|
|
Release: 0
|
2021-06-14 10:56:54 +02:00
|
|
|
Summary: Library with functions commonly found on BSD systems
|
2012-08-20 18:42:24 +02:00
|
|
|
License: BSD-3-Clause
|
2021-06-14 10:56:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-20 15:43:04 +01:00
|
|
|
URL: https://libbsd.freedesktop.org/
|
2022-04-19 14:07:52 +02:00
|
|
|
Source0: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
|
|
|
|
Source1: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz.asc
|
2015-12-09 19:58:56 +01:00
|
|
|
Source2: %{name}.keyring
|
2015-05-08 10:51:16 +02:00
|
|
|
BuildRequires: fdupes
|
2022-04-19 14:07:52 +02:00
|
|
|
BuildRequires: libmd-devel
|
2016-05-18 06:21:11 +02:00
|
|
|
BuildRequires: openssl-devel
|
2017-10-19 23:36:02 +02:00
|
|
|
BuildRequires: pkgconfig
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%description
|
2021-06-14 10:56:54 +02:00
|
|
|
This library provides functions commonly found on BSD systems, and
|
2015-12-27 10:25:01 +01:00
|
|
|
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.
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2015-05-08 10:51:16 +02:00
|
|
|
%package -n %{lname}
|
2021-06-14 10:56:54 +02:00
|
|
|
Summary: Library with functions commonly found on BSD systems
|
2015-12-09 17:20:07 +01:00
|
|
|
Group: System/Libraries
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2015-05-08 10:51:16 +02:00
|
|
|
%description -n %{lname}
|
2021-06-14 10:56:54 +02:00
|
|
|
This library provides functions commonly found on BSD systems, and
|
2015-12-27 10:25:01 +01:00
|
|
|
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.
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%package devel
|
2011-08-03 00:30:03 +02:00
|
|
|
Summary: Development headers and files for libbsd
|
2021-06-14 10:56:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-08 10:51:16 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2011-08-03 00:30:03 +02:00
|
|
|
Requires: glibc-devel
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%description devel
|
2021-06-14 10:56:54 +02:00
|
|
|
This library provides functions commonly found on BSD systems, and
|
2015-12-27 10:25:01 +01:00
|
|
|
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.
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2015-12-28 15:13:51 +01:00
|
|
|
%package ctor-static
|
2016-05-18 06:21:11 +02:00
|
|
|
Summary: Development headers and files for libbsd
|
2021-06-14 10:56:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-18 06:21:11 +02:00
|
|
|
Requires: %{lname} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
2015-12-28 15:13:51 +01:00
|
|
|
|
|
|
|
%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".
|
|
|
|
|
2009-01-04 21:53:34 +01:00
|
|
|
%prep
|
2021-06-14 10:56:54 +02:00
|
|
|
%autosetup
|
2012-09-07 08:52:19 +02:00
|
|
|
|
2009-01-04 21:53:34 +01:00
|
|
|
%build
|
2022-04-19 14:07:52 +02:00
|
|
|
export CFLAGS="%{optflags} -ffat-lto-objects"
|
2021-06-14 10:56:54 +02:00
|
|
|
%configure --disable-static
|
2019-12-20 15:43:04 +01:00
|
|
|
%make_build
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%install
|
2017-10-19 23:36:02 +02:00
|
|
|
%make_install
|
2016-05-18 06:21:11 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-05-08 10:51:16 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2016-05-18 06:21:11 +02:00
|
|
|
%check
|
2021-06-14 10:56:54 +02:00
|
|
|
%make_build check
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2016-05-18 06:21:11 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2015-05-08 10:51:16 +02:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2009-01-04 21:53:34 +01:00
|
|
|
|
2015-05-08 10:51:16 +02:00
|
|
|
%files -n %{lname}
|
2018-06-27 13:24:26 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog
|
2012-02-17 01:32:42 +01:00
|
|
|
%{_libdir}/libbsd.so.0*
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%files devel
|
2012-09-07 08:52:19 +02:00
|
|
|
%{_includedir}/bsd
|
2009-01-04 21:53:34 +01:00
|
|
|
%{_libdir}/libbsd.so
|
|
|
|
%{_mandir}/man3/*
|
2017-10-19 23:36:02 +02:00
|
|
|
%{_mandir}/man7/*
|
2015-12-28 15:13:51 +01:00
|
|
|
%{_libdir}/pkgconfig/libbsd.pc
|
|
|
|
%{_libdir}/pkgconfig/libbsd-overlay.pc
|
|
|
|
|
|
|
|
%files ctor-static
|
2015-12-28 15:15:01 +01:00
|
|
|
%{_libdir}/libbsd-ctor.a
|
|
|
|
%{_libdir}/pkgconfig/libbsd-ctor.pc
|
2009-01-04 21:53:34 +01:00
|
|
|
|
|
|
|
%changelog
|