Compare commits
10 Commits
fbc866688b
...
9a8b85c3bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a8b85c3bb | ||
|
|
6e4050327d | ||
|
|
2e6627e1f1 | ||
|
|
fa110a788a | ||
|
|
845362f606 | ||
|
|
7ea443a67a | ||
|
|
b4a51be189 | ||
|
|
e0781b2ec9 | ||
|
|
c3f019f8ec | ||
|
|
84e0ec1c63 |
Binary file not shown.
63
libnsl2.spec
63
libnsl2.spec
@ -1,14 +1,24 @@
|
|||||||
%global commit0 fbad7b36acaa89a54023930af70805649f962999
|
# Uncomment on initial build for soname bump.
|
||||||
|
%global bump_soname 0
|
||||||
|
%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.1
|
||||||
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/v%{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,24 @@ rm -f %{buildroot}/%{_libdir}/libnsl.la || :
|
|||||||
%{_prefix}/include/*
|
%{_prefix}/include/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 15 2023 fuanan <fuanan3@h-partners.com> - 2.0.1-1
|
||||||
|
- update version to 2.0.1
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Fri Apr 15 2022 Hugel<gengqihu1@h-partners.com> - 2.0.0-2
|
||||||
|
- delete old so files
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
|||||||
BIN
v2.0.1.tar.gz
Normal file
BIN
v2.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user