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