1 Summary: Hesiod libraries and sample programs
2 Summary(pl.UTF-8): Biblioteki i programy przykładowe do hesiod
8 Source0: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/%{name}-%{version}.tar.gz
9 # Source0-md5: 0362311e80fb1e029a1588cbbd09ad57
10 Patch0: %{name}-3.0.2-shlib.patch
11 Patch1: %{name}-3.0.2-env.patch
12 Patch2: %{name}-3.0.2-str.patch
13 Patch3: %{name}-ac.patch
14 BuildRequires: autoconf
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Hesiod is a system which uses existing DNS functionality to provide
19 access to databases of information that changes infrequently. It is
20 often used to distribute information kept in the /etc/passwd,
21 /etc/group, and /etc/printcap files over a network, eliminating the
22 need to ensure synchronize the files among multiple hosts.
24 %description -l pl.UTF-8
25 Hesiod jest systemem używającym istniejącej funkcjonalności DNS do
26 zapewniania dostępu do baz informacji zmieniających się niezbyt
27 często. Jest przeważnie używany do rozprowadzania informacji
28 trzymanych w /etc/passwd, /etc/group, /etc/printcap i podobnych po
29 sieci, eliminując potrzebę synchronizacji plików między wieloma
33 Summary: Headers and development documentation for Hesiod
34 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do hesiod
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 This package contains the header files required for building programs
40 which use Hesiod and some devolopment documentation.
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów
44 używających Hesiod oraz dokumentację programisty.
47 Summary: Hesiod static library
48 Summary(pl.UTF-8): Biblioteka statyczna Hesiod
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 This package contains static version of Hesiod library.
55 %description static -l pl.UTF-8
56 Ten pakiet zawiera statyczną wersję biblioteki Hesiod.
65 for manpage in *.3; do
66 if grep -q '^\.so man3/hesiod.3' $manpage ; then
67 echo .so hesiod.3 > $manpage
68 elif grep -q '^\.so man3/hesiod_getmailhost.3' $manpage ; then
69 echo .so hesiod_getmailhost.3 > $manpage
70 elif grep -q '^\.so man3/hesiod_getpwnam.3' $manpage ; then
71 echo .so hesiod_getpwnam.3 > $manpage
72 elif grep -q '^\.so man3/hesiod_getservbyname.3' $manpage ; then
73 echo .so hesiod_getservbyname.3 > $manpage
83 rm -rf $RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/hesinfo
96 %attr(755,root,root) %{_libdir}/libhesiod.so.*
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libhesiod.so
103 %{_includedir}/hesiod.h
107 %defattr(644,root,root,755)
108 %{_libdir}/libhesiod.a