libnsl2-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. %global compat_version 1.3.0
  2. Summary: Public client interface library for NIS(YP) and NIS+
  3. Name: libnsl2
  4. Version: 2.0.1
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: BSD and LGPLv2+
  10. URL: https://github.com/thkukuk/libnsl
  11. Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{version}.tar.gz
  12. Source1: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{compat_version}.tar.gz
  13. Patch100: libnsl2-1.0.5-include_stdint.patch
  14. BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
  15. %description
  16. This package contains the libnsl library. This library contains
  17. the public client interface for NIS(YP) and NIS+.
  18. This code was formerly part of glibc, but is now standalone to
  19. be able to link against TI-RPC for IPv6 support.
  20. %package devel
  21. Summary: Development files for libnsl
  22. Group: programming
  23. Requires: %{name}%{?_isa} = %{version}-%{release}
  24. Requires: glibc-devel >= 2.28
  25. %description devel
  26. Development files for libnsl2
  27. %debug_package
  28. %prep
  29. %setup -n libnsl-%{version} -a 1
  30. pushd libnsl-%{compat_version}
  31. %patch100 -p1
  32. popd
  33. %build
  34. export CFLAGS="%{optflags}"
  35. autoreconf -fiv
  36. %configure \
  37. --libdir=%{_libdir} \
  38. --includedir=%{_includedir}
  39. %make_build
  40. pushd libnsl-%{compat_version}
  41. autoreconf -fiv
  42. %configure\
  43. --libdir=%{_libdir}\
  44. --includedir=%{_includedir}
  45. %make_build
  46. popd
  47. %install
  48. rm -rf %{buildroot}
  49. pushd libnsl-%{compat_version}
  50. %make_install
  51. rm -rf %{buildroot}%{_includedir}/*
  52. rm -f %{buildroot}%{_libdir}/libnsl.{a,la,so}
  53. rm -f %{buildroot}%{_libdir}/pkgconfig/libnsl.pc
  54. popd
  55. %make_install
  56. rm %{buildroot}/%{_libdir}/libnsl.a
  57. rm %{buildroot}/%{_libdir}/libnsl.la
  58. %files
  59. %license COPYING
  60. %{_libdir}/libnsl.so.*
  61. %files devel
  62. %{_libdir}/libnsl.so
  63. %{_includedir}/*
  64. %{_libdir}/pkgconfig/libnsl.pc
  65. %changelog
  66. * Mon Oct 16 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.1-1
  67. * Sat Sep 23 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.0-2
  68. - rebuilt with current toolchain.
  69. * Wed Nov 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.0-1
  70. - new upstream release.
  71. * Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-2
  72. - rebuilt with current toolchain.
  73. * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
  74. - new upstream release.
  75. - dropped Patch1-4.
  76. * Sat Mar 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-2
  77. - rebuilt with current environment.
  78. * Fri Jan 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1
  79. - initial build for Vine Linux.