libasyncns-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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: 2%{?_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. %doc README LICENSE
  60. %{_libdir}/libasyncns.so.*
  61. %{_docdir}/%{name}/README*
  62. %{_docdir}/%{name}/style.css
  63. %files devel
  64. %defattr(-,root,root)
  65. %{_includedir}/asyncns.h
  66. %{_libdir}/libasyncns.so
  67. %{_libdir}/pkgconfig/libasyncns.pc
  68. # compat32
  69. %if %{build_compat32}
  70. %files -n compat32-%{name}
  71. %defattr(-,root,root,-)
  72. %{_libdir}/libasyncns.so.*
  73. %files -n compat32-%{name}-devel
  74. %defattr(-,root,root)
  75. %{_libdir}/libasyncns.so
  76. %{_libdir}/pkgconfig/libasyncns.pc
  77. %endif
  78. %changelog
  79. * Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8-2
  80. - rebuild with VineSeed environment
  81. * Wed Dec 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8-1
  82. - new upstream release
  83. - create compat32-libasyncns sub package
  84. - remove unrecognized configure options "--disable-rpath"
  85. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4-2
  86. - rebuild with rpm-4.8.1 for pkg-config file
  87. * Tue Sep 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-1
  88. - initial build for Vine Linux
  89. * Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
  90. - Initial packaging