1 Summary: Hesiod libraries and sample programs
2 Summary(pl.UTF-8): Biblioteki i programy przykładowe do hesiod
8 #Source0Download: https://github.com/achernya/hesiod/releases
9 #TODO: Source0: https://github.com/achernya/hesiod/archive/%{name}-%{version}.tar.gz
10 Source0: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/%{name}-%{version}.tar.gz
11 # Source0-md5: d8fe6d7d081c9c14d5d3d8a466998eeb
12 URL: https://github.com/achernya/hesiod
13 BuildRequires: libidn-devel
14 BuildRequires: sed >= 4.0
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}
37 Requires: libidn-devel
40 This package contains the header files required for building programs
41 which use Hesiod and some devolopment documentation.
43 %description devel -l pl.UTF-8
44 Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów
45 używających Hesiod oraz dokumentację programisty.
48 Summary: Hesiod static library
49 Summary(pl.UTF-8): Biblioteka statyczna Hesiod
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 This package contains static version of Hesiod library.
56 %description static -l pl.UTF-8
57 Ten pakiet zawiera statyczną wersję biblioteki Hesiod.
62 grep -l '^\.so man3/' man/*.3 | xargs %{__sed} -i -e '1s,man3/,,;2,$d'
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT
74 # obsoleted by pkg-config
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhesiod.la
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc COPYING NEWS README
86 %attr(755,root,root) %{_bindir}/hesinfo
87 %attr(755,root,root) %{_libdir}/libhesiod.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libhesiod.so.0
89 %{_mandir}/man1/hesinfo.1*
90 %{_mandir}/man5/hesiod.conf.5*
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libhesiod.so
95 %{_includedir}/hesiod.h
96 %{_pkgconfigdir}/hesiod.pc
97 %{_mandir}/man3/hesiod*.3*
100 %defattr(644,root,root,755)
101 %{_libdir}/libhesiod.a