libbsd/libbsd.spec

92 lines
2.3 KiB
RPMSpec
Raw Normal View History

2022-08-15 12:01:54 +08:00
Name: libbsd
Version: 0.10.0
2025-05-13 15:04:12 +08:00
Release: 3
2022-08-15 12:01:54 +08:00
Summary: Library providing BSD-compatible functions for portability
URL: http://libbsd.freedesktop.org/
License: BSD and ISC and Copyright only and Public Domain
Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
# Use symver attribute for symbol versioning
Patch1: %{name}-symver.patch
2024-10-31 20:32:32 +08:00
Patch2: 0001-add-loongarch64-support-for-libbsd.patch
2025-05-13 15:04:12 +08:00
Patch3: 0002-add-sw_64-support.patch
2022-08-15 12:01:54 +08:00
BuildRequires: gcc
BuildRequires: autoconf automake libtool
BuildRequires: make
%description
libbsd provides useful 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 files for libbsd
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for the libbsd library.
%package ctor-static
Summary: Development files for libbsd
Requires: %{name}%{?_isa} = %{version}-%{release}
%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
%setup -q
%patch1 -p1 -b .symver
2024-10-31 20:32:32 +08:00
%patch2 -p1
2025-05-13 15:04:12 +08:00
%patch3 -p1
2022-08-15 12:01:54 +08:00
%build
autoreconf -fiv
%configure
%make_build V=1
%check
%make_build check V=1
%install
%make_install V=1
rm %{buildroot}%{_libdir}/%{name}.a
rm %{buildroot}%{_libdir}/%{name}.la
rm %{buildroot}%{_mandir}/man3/explicit_bzero.3bsd
%ldconfig_scriptlets
%files
%license COPYING
%doc README TODO ChangeLog
%{_libdir}/%{name}.so.*
%files devel
%{_mandir}/man3/*.3bsd.*
%{_mandir}/man7/%{name}.7.*
%{_includedir}/bsd
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-overlay.pc
%files ctor-static
%{_libdir}/%{name}-ctor.a
%{_libdir}/pkgconfig/%{name}-ctor.pc
%changelog
2025-05-13 15:04:12 +08:00
* Tue May 13 2025 mahailiang <mahailiang@uniontech.com> - 0.10.0-3
- add sw_64 support
2024-10-31 20:32:32 +08:00
* Thu Oct 31 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 0.10.0-2
- add loongarch64 support for libbsd
2022-08-15 12:01:54 +08:00
* Fri Jul 15 2022 misaka00251 <misaka00251@misakanet.cn> - 0.10.0-1
- Init package (Thanks to fedora team)