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