2018-06-19 06:36:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package libite
|
|
|
|
#
|
2023-04-27 22:27:11 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2023-09-20 12:22:11 +00:00
|
|
|
# Copyright (c) 2018-2023, Martin Hauke <mardnh@gmx.de>
|
2018-06-19 06:36:18 +00: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-08-27 10:55:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-19 06:36:18 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define sover 5
|
|
|
|
Name: libite
|
2023-11-12 19:22:13 +00:00
|
|
|
Version: 2.6.1
|
2018-06-19 06:36:18 +00:00
|
|
|
Release: 0
|
2018-07-29 11:05:40 +00:00
|
|
|
Summary: BSD function library
|
2018-06-19 06:36:18 +00:00
|
|
|
License: MIT AND X11
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
URL: https://github.com/troglobit/libite/
|
|
|
|
Source: https://github.com/troglobit/libite/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
2018-07-29 11:05:40 +00:00
|
|
|
A library that extends the GNU libc with some functions and macros from BSD,
|
|
|
|
most notably the string functions strlcpy(3), strlcat(3) and the *BSD
|
|
|
|
sys/queue.h and sys/tree.h APIs.
|
2018-06-19 06:36:18 +00:00
|
|
|
|
2018-07-29 11:05:40 +00:00
|
|
|
glibc is not offering the _SAFE macros from the BSD sys/queue.h API —
|
|
|
|
recommended when traversing lists to delete/free nodes.
|
2018-06-19 06:36:18 +00:00
|
|
|
|
|
|
|
%package -n libite%{sover}
|
2018-07-29 11:05:40 +00:00
|
|
|
Summary: BSD function library
|
2018-06-19 06:36:18 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libite%{sover}
|
2018-07-29 11:05:40 +00:00
|
|
|
A library that extends the GNU libc with some functions and macros from BSD,
|
|
|
|
most notably the string functions strlcpy(3), strlcat(3) and the *BSD
|
|
|
|
sys/queue.h and sys/tree.h APIs.
|
|
|
|
|
|
|
|
glibc is not offering the _SAFE macros from the BSD sys/queue.h API —
|
|
|
|
recommended when traversing lists to delete/free nodes.
|
2018-06-19 06:36:18 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for libite
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libite%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development and header files for libite.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--disable-static
|
2022-12-03 09:51:49 +00:00
|
|
|
%make_build
|
2018-06-19 06:36:18 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
rm -rf %{buildroot}/%{_datadir}/doc
|
|
|
|
|
|
|
|
%post -n libite%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libite%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libite%{sover}
|
2021-10-29 13:00:52 +00:00
|
|
|
%doc ChangeLog.md README.md
|
2018-06-19 06:36:18 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libite.so.%{sover}*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/lite
|
2021-12-02 23:00:37 +00:00
|
|
|
%{_includedir}/libite
|
2018-06-19 06:36:18 +00:00
|
|
|
%{_libdir}/libite.so
|
|
|
|
%{_libdir}/pkgconfig/libite.pc
|
|
|
|
|
|
|
|
%changelog
|