diff --git a/libnsl-2.0.0.tar.gz b/libnsl-2.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..545e443f2f7d6e294791b69c7072f389dfed525a Binary files /dev/null and b/libnsl-2.0.0.tar.gz differ diff --git a/libnsl-fbad7b36acaa89a54023930af70805649f962999.tar.gz b/libnsl-fbad7b36acaa89a54023930af70805649f962999.tar.gz deleted file mode 100644 index c36d4436471194faca1ab97e7ca62d1182b3884f..0000000000000000000000000000000000000000 Binary files a/libnsl-fbad7b36acaa89a54023930af70805649f962999.tar.gz and /dev/null differ diff --git a/libnsl2.spec b/libnsl2.spec index 4dbbe4b683453d4277a5d79bbb16dcd6d4abaa8f..b547ba3a043db550250b47309ba4fc2c64ff18be 100644 --- a/libnsl2.spec +++ b/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 -Version: 1.3.0 -Release: 2 +Version: 2.0.0 +Release: 1 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/%{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 +%if 0%{?bump_soname} +BuildRequires: libnsl2 +%endif %description This package contains the libnsl library. This library contains @@ -30,35 +40,28 @@ that use %{name} %setup -q -n libnsl-%{version} %build - -export CFLAGS="%{optflags}" - autoreconf -fiv %configure\ --libdir=%{_exec_prefix}/%{_lib}\ --includedir=%{_prefix}/include -make %{?_smp_mflags} +%make_build %install +%make_install +rm %{buildroot}/%{_libdir}/libnsl.{a,la} -make install DESTDIR=%{buildroot} - -rm -f %{buildroot}/%{_libdir}/libnsl.a || : -rm -f %{buildroot}/%{_libdir}/libnsl.la || : - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig +%if 0%{?bump_soname} +cp -p %{_libdir}/libnsl.so.%{old_sover}* %{buildroot}/%{_libdir} +%endif %files -%{_exec_prefix}/%{_lib}/libnsl.so.2 -%{_exec_prefix}/%{_lib}/libnsl.so.2.0.1 - %license COPYING +%{_libdir}/libnsl.so.%{sover}* +%if 0%{?bump_soname} +%{_libdir}/libnsl.so.%{old_sover}* +%endif %files devel %{_exec_prefix}/%{_lib}/libnsl.so @@ -66,6 +69,9 @@ rm -f %{buildroot}/%{_libdir}/libnsl.la || : %{_prefix}/include/* %changelog +* Tue Dec 28 2021 fuanan - 2.0.0-1 +- update version to 2.0.0 + * Fri Apr 23 2021 yang_zhuang_zhuang - 1.3.0-2 - Delete so file of the old version