libasyncns-vl.spec 3.0 KB

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