libasyncns-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Asynchronous Name Service Library
  3. Summary(ja): 非同期ネームサービスライブラリ
  4. Name: libasyncns
  5. Version: 0.8
  6. Release: 3%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz
  9. License: LGPLv2+
  10. Url: http://0pointer.de/lennart/projects/libasyncns/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. A small and lightweight library that implements easy to use asynchronous
  16. wrappers around the libc NSS functions getaddrinfo(), res_query() and related.
  17. %package devel
  18. Summary: Development Files for libasyncns Client Development
  19. Summary(ja): %{name} クライアント用の開発ファイル
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: pkgconfig
  23. %description devel
  24. Development Files for libasyncns Client Development
  25. # compat32
  26. %package -n compat32-%{name}
  27. Summary: Asynchronous Name Service Library
  28. Summary(ja): 非同期ネームサービスライブラリ
  29. Group: System Environment/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. %description -n compat32-%{name}
  32. A small and lightweight library that implements easy to use asynchronous
  33. wrappers around the libc NSS functions getaddrinfo(), res_query() and related.
  34. %package -n compat32-%{name}-devel
  35. Summary: Development Files for libasyncns Client Development
  36. Summary(ja): %{name} クライアント用の開発ファイル
  37. Group: Development/Libraries
  38. Requires: compat32-%{name} = %{version}-%{release}
  39. Requires: %{name}-devel = %{version}-%{release}
  40. %description -n compat32-%{name}-devel
  41. Development Files for libasyncns Client Development
  42. %post -p /sbin/ldconfig
  43. %postun -p /sbin/ldconfig
  44. %post -n compat32-%{name} -p /sbin/ldconfig
  45. %postun -n compat32-%{name} -p /sbin/ldconfig
  46. %prep
  47. %setup -q
  48. %build
  49. %configure --disable-static
  50. make
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make DESTDIR=$RPM_BUILD_ROOT install
  54. find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \;
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %files
  58. %defattr(-,root,root)
  59. %license LICENSE
  60. %doc README
  61. %{_libdir}/libasyncns.so.*
  62. %{_docdir}/%{name}/README*
  63. %{_docdir}/%{name}/style.css
  64. %files devel
  65. %defattr(-,root,root)
  66. %{_includedir}/asyncns.h
  67. %{_libdir}/libasyncns.so
  68. %{_libdir}/pkgconfig/libasyncns.pc
  69. # compat32
  70. %if %{build_compat32}
  71. %files -n compat32-%{name}
  72. %defattr(-,root,root,-)
  73. %{_libdir}/libasyncns.so.*
  74. %files -n compat32-%{name}-devel
  75. %defattr(-,root,root)
  76. %{_libdir}/libasyncns.so
  77. %{_libdir}/pkgconfig/libasyncns.pc
  78. %endif
  79. %changelog
  80. * Sat Mar 21 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8-3
  81. - rebuilt with current environment.
  82. * Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8-2
  83. - rebuild with VineSeed environment
  84. * Wed Dec 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8-1
  85. - new upstream release
  86. - create compat32-libasyncns sub package
  87. - remove unrecognized configure options "--disable-rpath"
  88. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4-2
  89. - rebuild with rpm-4.8.1 for pkg-config file
  90. * Tue Sep 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-1
  91. - initial build for Vine Linux
  92. * Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
  93. - Initial packaging