commit
c3f019f8ec
BIN
libnsl-2.0.0.tar.gz
Normal file
BIN
libnsl-2.0.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
48
libnsl2.spec
48
libnsl2.spec
@ -1,14 +1,24 @@
|
|||||||
%global commit0 fbad7b36acaa89a54023930af70805649f962999
|
# Uncomment on initial build for soname bump.
|
||||||
|
%global bump_soname 1
|
||||||
|
%global sover 3
|
||||||
|
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
%global relsuffix ~sonamebump
|
||||||
|
%global old_sover %(echo $((%{sover}-1)))
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: libnsl2
|
Name: libnsl2
|
||||||
Version: 1.3.0
|
Version: 2.0.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Public client interface library for NIS(YP) and NIS+
|
Summary: Public client interface library for NIS(YP) and NIS+
|
||||||
License: BSD and LGPLv2+
|
License: BSD and LGPLv2+
|
||||||
URL: https://github.com/thkukuk/libnsl
|
URL: https://github.com/thkukuk/libnsl
|
||||||
Source0: https://github.com/thkukuk/libnsl/archive/%{commit0}.tar.gz#/libnsl-%{commit0}.tar.gz
|
Source0: https://github.com/thkukuk/libnsl/archive/libnsl-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: automake, autoconf, libtirpc-devel, gettext-devel, libtool
|
BuildRequires: automake, autoconf, libtirpc-devel, gettext-devel, libtool
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
BuildRequires: libnsl2
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the libnsl library. This library contains
|
This package contains the libnsl library. This library contains
|
||||||
@ -30,35 +40,28 @@ that use %{name}
|
|||||||
%setup -q -n libnsl-%{version}
|
%setup -q -n libnsl-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
|
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
|
||||||
%configure\
|
%configure\
|
||||||
--libdir=%{_exec_prefix}/%{_lib}\
|
--libdir=%{_exec_prefix}/%{_lib}\
|
||||||
--includedir=%{_prefix}/include
|
--includedir=%{_prefix}/include
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%make_install
|
||||||
|
rm %{buildroot}/%{_libdir}/libnsl.{a,la}
|
||||||
|
|
||||||
make install DESTDIR=%{buildroot}
|
%if 0%{?bump_soname}
|
||||||
|
cp -p %{_libdir}/libnsl.so.%{old_sover}* %{buildroot}/%{_libdir}
|
||||||
rm -f %{buildroot}/%{_libdir}/libnsl.a || :
|
%endif
|
||||||
rm -f %{buildroot}/%{_libdir}/libnsl.la || :
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_exec_prefix}/%{_lib}/libnsl.so.2
|
|
||||||
%{_exec_prefix}/%{_lib}/libnsl.so.2.0.1
|
|
||||||
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%{_libdir}/libnsl.so.%{sover}*
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
%{_libdir}/libnsl.so.%{old_sover}*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_exec_prefix}/%{_lib}/libnsl.so
|
%{_exec_prefix}/%{_lib}/libnsl.so
|
||||||
@ -66,6 +69,9 @@ rm -f %{buildroot}/%{_libdir}/libnsl.la || :
|
|||||||
%{_prefix}/include/*
|
%{_prefix}/include/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 28 2021 fuanan <fuanan3@huawei.com> - 2.0.0-1
|
||||||
|
- update version to 2.0.0
|
||||||
|
|
||||||
* Fri Apr 23 2021 yang_zhuang_zhuang<yangzhuangzhuang1@huawei.com> - 1.3.0-2
|
* Fri Apr 23 2021 yang_zhuang_zhuang<yangzhuangzhuang1@huawei.com> - 1.3.0-2
|
||||||
- Delete so file of the old version
|
- Delete so file of the old version
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user