]> git.pld-linux.org Git - packages/hesiod.git/blob - hesiod.spec
3255d018f6081fecb6fc0a29b648b0c893fca32d
[packages/hesiod.git] / hesiod.spec
1 Summary:        Hesiod libraries and sample programs
2 Summary(pl.UTF-8):      Biblioteki i programy przykładowe do hesiod
3 Name:           hesiod
4 Version:        3.0.2
5 Release:        15
6 License:        MIT
7 Group:          Libraries
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)
16
17 %description
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.
23
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
30 komputerami.
31
32 %package devel
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
38 %description devel
39 This package contains the header files required for building programs
40 which use Hesiod and some devolopment documentation.
41
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.
45
46 %package static
47 Summary:        Hesiod static library
48 Summary(pl.UTF-8):      Biblioteka statyczna Hesiod
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 This package contains static version of Hesiod library.
54
55 %description static -l pl.UTF-8
56 Ten pakiet zawiera statyczną wersję biblioteki Hesiod.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61 %patch1 -p1
62 %patch2 -p1
63 %patch3 -p1
64
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
74         fi
75 done
76
77 %build
78 %{__autoconf}
79 %configure
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 %makeinstall
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc README NEWS
95 %attr(755,root,root) %{_bindir}/hesinfo
96 %attr(755,root,root) %{_libdir}/libhesiod.so.*
97 %{_mandir}/man1/*
98 %{_mandir}/man5/*
99
100 %files devel
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libhesiod.so
103 %{_includedir}/hesiod.h
104 %{_mandir}/man3/*
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libhesiod.a
This page took 0.051114 seconds and 2 git commands to generate.