]>
Commit | Line | Data |
---|---|---|
d8005fc0 | 1 | Summary: Hesiod libraries and sample programs |
8c09da95 | 2 | Summary(pl.UTF-8): Biblioteki i programy przykładowe do hesiod |
d8005fc0 | 3 | Name: hesiod |
ecd1c769 JB |
4 | Version: 3.2.1 |
5 | Release: 1 | |
6 | License: BSD | |
96f57b5c | 7 | Group: Libraries |
d8005fc0 | 8 | Source0: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/%{name}-%{version}.tar.gz |
ecd1c769 JB |
9 | # Source0-md5: d8fe6d7d081c9c14d5d3d8a466998eeb |
10 | BuildRequires: libidn-devel | |
11 | BuildRequires: sed >= 4.0 | |
af5faa84 | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57e4b13d | 13 | |
14 | %description | |
d8005fc0 JB |
15 | Hesiod is a system which uses existing DNS functionality to provide |
16 | access to databases of information that changes infrequently. It is | |
17 | often used to distribute information kept in the /etc/passwd, | |
18 | /etc/group, and /etc/printcap files over a network, eliminating the | |
19 | need to ensure synchronize the files among multiple hosts. | |
20 | ||
f28e5399 JR |
21 | %description -l pl.UTF-8 |
22 | Hesiod jest systemem używającym istniejącej funkcjonalności DNS do | |
23 | zapewniania dostępu do baz informacji zmieniających się niezbyt | |
24 | często. Jest przeważnie używany do rozprowadzania informacji | |
d8005fc0 | 25 | trzymanych w /etc/passwd, /etc/group, /etc/printcap i podobnych po |
f28e5399 | 26 | sieci, eliminując potrzebę synchronizacji plików między wieloma |
d8005fc0 | 27 | komputerami. |
57e4b13d | 28 | |
29 | %package devel | |
d8005fc0 | 30 | Summary: Headers and development documentation for Hesiod |
8c09da95 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do hesiod |
d8005fc0 | 32 | Group: Development/Libraries |
d8005fc0 | 33 | Requires: %{name} = %{version}-%{release} |
ecd1c769 | 34 | Requires: libidn-devel |
57e4b13d | 35 | |
36 | %description devel | |
d8005fc0 JB |
37 | This package contains the header files required for building programs |
38 | which use Hesiod and some devolopment documentation. | |
39 | ||
f28e5399 JR |
40 | %description devel -l pl.UTF-8 |
41 | Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów | |
42 | używających Hesiod oraz dokumentację programisty. | |
d8005fc0 JB |
43 | |
44 | %package static | |
45 | Summary: Hesiod static library | |
8c09da95 | 46 | Summary(pl.UTF-8): Biblioteka statyczna Hesiod |
d8005fc0 | 47 | Group: Development/Libraries |
d8005fc0 JB |
48 | Requires: %{name}-devel = %{version}-%{release} |
49 | ||
50 | %description static | |
51 | This package contains static version of Hesiod library. | |
52 | ||
f28e5399 JR |
53 | %description static -l pl.UTF-8 |
54 | Ten pakiet zawiera statyczną wersję biblioteki Hesiod. | |
57e4b13d | 55 | |
56 | %prep | |
57 | %setup -q | |
ecd1c769 JB |
58 | |
59 | grep -l '^\.so man3/' man/*.3 | xargs %{__sed} -i -e '1s,man3/,,;2,$d' | |
57e4b13d | 60 | |
61 | %build | |
96f57b5c | 62 | %configure |
d8005fc0 | 63 | %{__make} |
57e4b13d | 64 | |
65 | %install | |
d8005fc0 | 66 | rm -rf $RPM_BUILD_ROOT |
ecd1c769 JB |
67 | |
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | # obsoleted by pkg-config | |
72 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhesiod.la | |
57e4b13d | 73 | |
d8005fc0 JB |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
57e4b13d | 80 | %files |
d8005fc0 | 81 | %defattr(644,root,root,755) |
ecd1c769 | 82 | %doc COPYING NEWS README |
d8005fc0 | 83 | %attr(755,root,root) %{_bindir}/hesinfo |
ecd1c769 JB |
84 | %attr(755,root,root) %{_libdir}/libhesiod.so.*.*.* |
85 | %attr(755,root,root) %ghost %{_libdir}/libhesiod.so.0 | |
86 | %{_mandir}/man1/hesinfo.1* | |
87 | %{_mandir}/man5/hesiod.conf.5* | |
57e4b13d | 88 | |
89 | %files devel | |
d8005fc0 | 90 | %defattr(644,root,root,755) |
146df0ef | 91 | %attr(755,root,root) %{_libdir}/libhesiod.so |
57e4b13d | 92 | %{_includedir}/hesiod.h |
ecd1c769 JB |
93 | %{_pkgconfigdir}/hesiod.pc |
94 | %{_mandir}/man3/hesiod*.3* | |
d8005fc0 JB |
95 | |
96 | %files static | |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libhesiod.a |