]>
Commit | Line | Data |
---|---|---|
3560865f | 1 | Summary: FireDNS - library for handling asynchronous DNS requests |
beee4c52 | 2 | Summary(pl.UTF-8): FireDNS - biblioteka do obsługi asynchronicznych zapytań DNS |
3560865f JB |
3 | Name: firedns |
4 | Version: 0.1.30 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Libraries | |
8 | Source0: http://messagewall.org/download/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 0e18e14615036555183ee01b43fffd3c | |
10 | URL: http://messagewall.org/firedns.html | |
11 | BuildRequires: firestring-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | libfiredns is a library for handling asynchronous DNS requests. It | |
16 | provides a very simple interface for sending requests and parsing | |
17 | reponses, as well as low-timeout blocking functions. It can also be | |
18 | compiled to override the BIND/LIBC functions with its alternative | |
19 | implementations. libfiredns functions have much lower timeouts than | |
20 | the stock functions and tend to be faster because they send requests | |
21 | to all configured system nameservers at the same time. | |
22 | ||
80e18cee JR |
23 | %description -l pl.UTF-8 |
24 | libfiredns to biblioteka do obsługi asynchronicznych zapytań DNS. | |
25 | Dostarcza bardzo prosty interfejs do wysyłania zapytań oraz | |
26 | przetwarzania odpowiedzi, a także funkcje blokujące z małym timeoutem. | |
27 | Może być także skompilowana tak, aby przykrywać funkcje BIND/LIBC | |
28 | własnymi, alternatywnymi implementacjami. Funkcje libfiredns mają dużo | |
29 | mniejsze timeouty niż standardowe funkcje i powinny być szybsze, | |
30 | ponieważ wysyłają zapytania do wszystkich skonfigurowanych serwerów | |
31 | nazw jednocześnie. | |
3560865f JB |
32 | |
33 | %package devel | |
34 | Summary: Header files for firedns library | |
beee4c52 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki firedns |
3560865f | 36 | Group: Development/Libraries |
989047f4 | 37 | Requires: %{name} = %{version}-%{release} |
3560865f JB |
38 | |
39 | %description devel | |
40 | Header files for firedns library. | |
41 | ||
80e18cee JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki firedns. | |
3560865f JB |
44 | |
45 | %package static | |
46 | Summary: Static firedns library | |
beee4c52 | 47 | Summary(pl.UTF-8): Statyczna biblioteka firedns |
3560865f | 48 | Group: Development/Libraries |
989047f4 | 49 | Requires: %{name}-devel = %{version}-%{release} |
3560865f JB |
50 | |
51 | %description static | |
52 | Static firedns library. | |
53 | ||
80e18cee | 54 | %description static -l pl.UTF-8 |
3560865f JB |
55 | Statyczna biblioteka firedns. |
56 | ||
57 | %package utils | |
58 | Summary: FireDNS utilities | |
beee4c52 | 59 | Summary(pl.UTF-8): Narzędzia FireDNS |
3560865f | 60 | Group: Networking/Utilities |
989047f4 | 61 | Requires: %{name} = %{version}-%{release} |
3560865f JB |
62 | |
63 | %description utils | |
64 | FireDNS utilities: fdnsip, fdnsname, fdnstxt. | |
65 | ||
80e18cee JR |
66 | %description utils -l pl.UTF-8 |
67 | Narzędzia FireDNS: fdnsip, fdnsname, fdnstxt. | |
3560865f JB |
68 | |
69 | %prep | |
70 | %setup -q -n %{name} | |
71 | ||
72 | %build | |
73 | # it's FireMake, not autoconf-generated configure | |
74 | export CC="%{__cc}" | |
75 | export CFLAGS="%{rpmcflags}" | |
76 | ./configure | |
77 | ||
78 | %{__make} \ | |
79 | SHAREDFLAGS="-shared -Wl,-soname=libfiredns.so" | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
86 | MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
87 | INSTALL_USER="`id -u`" \ | |
88 | INSTALL_GROUP="`id -g`" | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc CREDITS README | |
99 | %attr(755,root,root) %{_libdir}/libfiredns.so | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %{_includedir}/firedns.h | |
104 | %{_mandir}/man3/* | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libfiredns.a | |
109 | ||
110 | %files utils | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_bindir}/fdns* |