diff --git a/.gitignore b/.gitignore index e69de29..dd78be9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,6 @@ +/libnsl-libnsl-1.0.4.tar.gz +/libnsl-libnsl-1.0.5.tar.gz +/libnsl-libnsl-1.1.0.tar.gz +/libnsl-1.2.0.tar.gz +/libnsl-4a062cf4180d99371198951e4ea5b4550efd58a3.tar.gz +/v1.3.0.tar.gz diff --git a/libnsl2-1.0.5-include_stdint.patch b/libnsl2-1.0.5-include_stdint.patch new file mode 100644 index 0000000..77abefa --- /dev/null +++ b/libnsl2-1.0.5-include_stdint.patch @@ -0,0 +1,10 @@ +--- libnsl-libnsl-1.0.5/src/nisplus/nis_call.c.include_stdint 2017-06-12 16:05:36.864341686 +0200 ++++ libnsl-libnsl-1.0.5/src/nisplus/nis_call.c 2017-06-12 16:05:56.745337017 +0200 +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #include "libc-lock.h" + #include "nis_intern.h" diff --git a/libnsl2.spec b/libnsl2.spec new file mode 100644 index 0000000..913c79b --- /dev/null +++ b/libnsl2.spec @@ -0,0 +1,122 @@ +%global commit0 4a062cf4180d99371198951e4ea5b4550efd58a3 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + + +Name: libnsl2 +Version: 1.3.0 +Release: 1%{?dist} +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 + +Patch0: libnsl2-1.0.5-include_stdint.patch + +BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel + +%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. + +%package devel +Summary: Development files for libnsl +Requires: %{name}%{?_isa} = %{version}-%{release} +Conflicts: glibc-devel < 2.26.9000-40 + +%description devel +Development files for libnsl2 + + +%prep +%setup -q -n libnsl-%{version} + +%patch0 -p1 -b .include_stdint + +%build + +export CFLAGS="%{optflags}" + +autoreconf -fiv + +%configure\ + --libdir=%{_libdir}\ + --includedir=%{_includedir} + +%make_build + + +%install + +%make_install + +rm %{buildroot}/%{_libdir}/libnsl.a +rm %{buildroot}/%{_libdir}/libnsl.la + +%files +%{_libdir}/libnsl.so.* + +%license COPYING + +%files devel +%{_libdir}/libnsl.so +%{_includedir}/* +%{_libdir}/pkgconfig/libnsl.pc + +%changelog +* Fri Sep 18 2020 Filip Janus - 1.3.0-1 +- Upstreal released new version 1.3.0 + +* Sat Aug 01 2020 Fedora Release Engineering - 1.2.0-8.20180605git4a062cf +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2.0-7.20180605git4a062cf +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.2.0-6.20180605git4a062cf +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.2.0-5.20180605git4a062cf +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.2.0-4.20180605git4a062cf +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Oct 29 2018 James Antill +- Remove ldconfig scriptlet, now done via. transfiletrigger in glibc (#1644073). + +* Fri Jul 13 2018 Fedora Release Engineering - 1.2.0-3.20180605git4a062cf +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 05 2018 Matej Mužila - 1.2.0-2.20181605git4a062cf +- Update to 1.2.0-2.20181605git4a062cf + Resolves: rhbz#1573895 + +* Fri Feb 09 2018 Matej Mužila - 1.2.0-1 +- Update to version 1.2.0 +- Change libdir and includedir + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Oct 04 2017 Matej Mužila 1.1.0-1 +- Update to version 1.1.0 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 12 2017 Matej Mužila 1.0.5-1 +- Update to version 1.0.5 +- Fix missing stdint.h + +* Mon Apr 10 2017 Matej Mužila 1.0.4-4 +- Initial version for 1.0.4 + diff --git a/sources b/sources new file mode 100644 index 0000000..245f795 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v1.3.0.tar.gz) = ce75ee9e54f1bdd2b31886e8157ff5f654511c3da017e0d9f8d0da6a2a9f9a78ff2e5f72cfb7ce3a23065f57337db51e3c8842a7e990350a62612018f4960342