Group :: System/Libraries
RPM: libbsd
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: libbsd
Version: 0.11.3
Release: alt2
Summary: Library providing BSD-compatible functions for portability
License: BSD and ISC and Copyright only and Public Domain
Group: System/Libraries
Url: http://libbsd.freedesktop.org/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://libbsd.freedesktop.org/releases/%name-%version.tar
Patch: libbsd-0.9.1-alt-e2k.patch
# patches from Fedora
Patch3: %name-symver.patch
# LoongArch support (from upstream)
Patch3500: libbsd-loongarch.patch
BuildRequires: libmd-devel
%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
Group: Development/Other
Requires: %name = %EVR
Requires: pkg-config
%description devel
Development files for the libbsd library.
%prep
%setup
%ifarch %e2k
%patch -p1
%else
# this patch breaks Elbrus build
%patch3 -p1
%patch3500 -p1
%endif
%build
%configure --disable-static
%make_build
%install
%makeinstall_std
# don't want static library
rm %buildroot%_libdir/%name-ctor.a
rm %buildroot%_man3dir/strlcpy*
rm %buildroot%_man3dir/strlcat*
# conflicts with setproctitle-devel
rm %buildroot/%_man3dir/setproctitle*
%files
%doc COPYING README TODO ChangeLog
%_libdir/%name.so.*
%files devel
%_man7dir/*
%_man3dir/*.3bsd.*
%_includedir/bsd/
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%_pkgconfigdir/%name-ctor.pc
%_pkgconfigdir/%name-overlay.pc
%changelog
…
Full changelog you can see here
Version: 0.11.3
Release: alt2
Summary: Library providing BSD-compatible functions for portability
License: BSD and ISC and Copyright only and Public Domain
Group: System/Libraries
Url: http://libbsd.freedesktop.org/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://libbsd.freedesktop.org/releases/%name-%version.tar
Patch: libbsd-0.9.1-alt-e2k.patch
# patches from Fedora
Patch3: %name-symver.patch
# LoongArch support (from upstream)
Patch3500: libbsd-loongarch.patch
BuildRequires: libmd-devel
%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
Group: Development/Other
Requires: %name = %EVR
Requires: pkg-config
%description devel
Development files for the libbsd library.
%prep
%setup
%ifarch %e2k
%patch -p1
%else
# this patch breaks Elbrus build
%patch3 -p1
%patch3500 -p1
%endif
%build
%configure --disable-static
%make_build
%install
%makeinstall_std
# don't want static library
rm %buildroot%_libdir/%name-ctor.a
rm %buildroot%_man3dir/strlcpy*
rm %buildroot%_man3dir/strlcat*
# conflicts with setproctitle-devel
rm %buildroot/%_man3dir/setproctitle*
%files
%doc COPYING README TODO ChangeLog
%_libdir/%name.so.*
%files devel
%_man7dir/*
%_man3dir/*.3bsd.*
%_includedir/bsd/
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%_pkgconfigdir/%name-ctor.pc
%_pkgconfigdir/%name-overlay.pc
%changelog
…
Full changelog you can see here