libnsl2-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Name: libnsl2
  2. Version: 1.2.0
  3. Release: 1%{?_dist_release}
  4. Summary: Public client interface library for NIS(YP) and NIS+
  5. Vendor: Project Vine
  6. Distribution: Vine Linux
  7. License: BSD and LGPLv2+
  8. Group: System Environment/Libraries
  9. URL: https://github.com/thkukuk/libnsl
  10. Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{version}.tar.gz
  11. Patch1: 0001-Don-t-include-ltmain.sh-since-this-would-require-the.patch
  12. Patch2: 0002-Remove-outdated-download-url-issue-4.patch
  13. Patch3: 0003-Detect-recursive-lock-between-yp_all-and-do_ypcall.patch
  14. Patch4: 0004-Detect-recursive-NIS-calls.patch
  15. Patch100: libnsl2-1.0.5-include_stdint.patch
  16. BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
  17. %description
  18. This package contains the libnsl library. This library contains
  19. the public client interface for NIS(YP) and NIS+.
  20. This code was formerly part of glibc, but is now standalone to
  21. be able to link against TI-RPC for IPv6 support.
  22. %package devel
  23. Summary: Development files for libnsl
  24. Group: Development/Libraries
  25. Requires: %{name}%{?_isa} = %{version}-%{release}
  26. Requires: glibc-devel >= 2.28
  27. %description devel
  28. Development files for libnsl2
  29. %prep
  30. %autosetup -n libnsl-%{version} -p1
  31. %build
  32. export CFLAGS="%{optflags}"
  33. autoreconf -fiv
  34. %configure\
  35. --libdir=%{_libdir}\
  36. --includedir=%{_includedir}
  37. %make_build
  38. %install
  39. rm -rf %{buildroot}
  40. %make_install
  41. rm %{buildroot}/%{_libdir}/libnsl.a
  42. rm %{buildroot}/%{_libdir}/libnsl.la
  43. %files
  44. %license COPYING
  45. %{_libdir}/libnsl.so.2
  46. %{_libdir}/libnsl.so.2.0.0
  47. %files devel
  48. %{_libdir}/libnsl.so
  49. %{_includedir}/*
  50. %{_libdir}/pkgconfig/libnsl.pc
  51. %changelog
  52. * Fri Jan 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1
  53. - initial build for Vine Linux.