|
@@ -1,7 +1,9 @@
|
|
|
+%global compat_version 1.3.0
|
|
|
+
|
|
|
Summary: Public client interface library for NIS(YP) and NIS+
|
|
|
Name: libnsl2
|
|
|
-Version: 1.3.0
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 2.0.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -9,6 +11,7 @@ Distribution: Vine Linux
|
|
|
License: BSD and LGPLv2+
|
|
|
URL: https://github.com/thkukuk/libnsl
|
|
|
Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{version}.tar.gz
|
|
|
+Source1: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{compat_version}.tar.gz
|
|
|
|
|
|
Patch100: libnsl2-1.0.5-include_stdint.patch
|
|
|
|
|
@@ -22,7 +25,7 @@ be able to link against TI-RPC for IPv6 support.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development files for libnsl
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
Requires: glibc-devel >= 2.28
|
|
|
|
|
@@ -34,21 +37,40 @@ Development files for libnsl2
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%autosetup -n libnsl-%{version} -p1
|
|
|
+%setup -n libnsl-%{version} -a 1
|
|
|
+pushd libnsl-%{compat_version}
|
|
|
+%patch100 -p1
|
|
|
+popd
|
|
|
|
|
|
|
|
|
%build
|
|
|
export CFLAGS="%{optflags}"
|
|
|
+
|
|
|
+autoreconf -fiv
|
|
|
+%configure \
|
|
|
+ --libdir=%{_libdir} \
|
|
|
+ --includedir=%{_includedir}
|
|
|
+%make_build
|
|
|
+
|
|
|
+pushd libnsl-%{compat_version}
|
|
|
autoreconf -fiv
|
|
|
%configure\
|
|
|
--libdir=%{_libdir}\
|
|
|
--includedir=%{_includedir}
|
|
|
|
|
|
%make_build
|
|
|
+popd
|
|
|
|
|
|
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
+pushd libnsl-%{compat_version}
|
|
|
+%make_install
|
|
|
+rm -rf %{buildroot}%{_includedir}/*
|
|
|
+rm -f %{buildroot}%{_libdir}/libnsl.{a,la,so}
|
|
|
+rm -f %{buildroot}%{_libdir}/pkgconfig/libnsl.pc
|
|
|
+popd
|
|
|
+
|
|
|
%make_install
|
|
|
|
|
|
rm %{buildroot}/%{_libdir}/libnsl.a
|
|
@@ -66,6 +88,9 @@ rm %{buildroot}/%{_libdir}/libnsl.la
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Nov 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-2
|
|
|
- rebuilt with current toolchain.
|
|
|
|