libnsl2/libnsl2.spec

95 lines
2.3 KiB
RPMSpec
Raw Normal View History

2021-12-28 18:46:57 +08:00
# Uncomment on initial build for soname bump.
2022-04-15 11:27:08 +08:00
%global bump_soname 0
2021-12-28 18:46:57 +08:00
%global sover 3
%if 0%{?bump_soname}
%global relsuffix ~sonamebump
%global old_sover %(echo $((%{sover}-1)))
%endif
2019-09-30 10:57:25 -04:00
Name: libnsl2
2021-12-28 18:46:57 +08:00
Version: 2.0.0
Release: 5
2019-09-30 10:57:25 -04:00
Summary: Public client interface library for NIS(YP) and NIS+
License: BSD and LGPLv2+
URL: https://github.com/thkukuk/libnsl
Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz
2019-09-30 10:57:25 -04:00
BuildRequires: automake, autoconf, libtirpc-devel, gettext-devel, libtool
2021-12-28 18:46:57 +08:00
%if 0%{?bump_soname}
BuildRequires: libnsl2
%endif
2019-09-30 10:57:25 -04:00
%description
This package contains the libnsl library. This library contains
the public client interface for NIS(YP) and NIS+.
This code was formerly part of glibc, but is now standalone to
be able to link against TI-RPC for IPv6 support.
The NIS(YP) functions are still maintained, the NIS+ part is
deprecated and should not be used anymore
%package devel
Summary: The development for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The package contains lib and header files for developing application
that use %{name}
%prep
2020-07-27 11:15:11 +08:00
%setup -q -n libnsl-%{version}
2019-09-30 10:57:25 -04:00
%build
autoreconf -fiv
%configure\
--libdir=%{_exec_prefix}/%{_lib}\
--includedir=%{_prefix}/include
2021-12-28 18:46:57 +08:00
%make_build
2019-09-30 10:57:25 -04:00
%install
2021-12-28 18:46:57 +08:00
%make_install
rm %{buildroot}/%{_libdir}/libnsl.{a,la}
2019-09-30 10:57:25 -04:00
2021-12-28 18:46:57 +08:00
%if 0%{?bump_soname}
cp -p %{_libdir}/libnsl.so.%{old_sover}* %{buildroot}/%{_libdir}
%endif
2019-09-30 10:57:25 -04:00
%files
%license COPYING
2021-12-28 18:46:57 +08:00
%{_libdir}/libnsl.so.%{sover}*
%if 0%{?bump_soname}
%{_libdir}/libnsl.so.%{old_sover}*
%endif
2019-09-30 10:57:25 -04:00
%files devel
%{_exec_prefix}/%{_lib}/libnsl.so
%{_exec_prefix}/%{_lib}/pkgconfig/libnsl.pc
%{_prefix}/include/*
%changelog
* Thu Nov 17 2022 yixiangzhike<yixiangzhike007@163.com> - 2.0.0-5
- fix source url
* Thu Jul 28 2022 fuanan <fuanan3@h-partners.com> - 2.0.0-4
- Type:requirements
- ID:NA
- SUG:NA
- DESC:Bump release in order to upgrade from openEuler 22.03
2022-04-15 11:27:08 +08:00
* Fri Apr 15 2022 Hugel<gengqihu1@h-partners.com> - 2.0.0-2
- delete old so files
2021-12-28 18:46:57 +08:00
* Tue Dec 28 2021 fuanan <fuanan3@huawei.com> - 2.0.0-1
- update version to 2.0.0
2021-04-23 14:16:14 +08:00
* Fri Apr 23 2021 yang_zhuang_zhuang<yangzhuangzhuang1@huawei.com> - 1.3.0-2
- Delete so file of the old version
2020-07-27 11:15:11 +08:00
* Mon Jul 27 2020 yang_zhuang_zhuang<yangzhuangzhuang1@huawei.com> - 1.3.0-1
- update version to 1.3.0
2019-09-30 10:57:25 -04:00
* Thu Sep 5 2019 caomeng<caomeng5@huawei.com> - 2.10.0-4
- Package init