]> git.pld-linux.org Git - SPECS.git/blob - hesiod.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.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.2.1
5 Release:        3
6 License:        BSD
7 Group:          Libraries
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)
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 Requires:       libidn-devel
38
39 %description devel
40 This package contains the header files required for building programs
41 which use Hesiod and some devolopment documentation.
42
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.
46
47 %package static
48 Summary:        Hesiod static library
49 Summary(pl.UTF-8):      Biblioteka statyczna Hesiod
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 This package contains static version of Hesiod library.
55
56 %description static -l pl.UTF-8
57 Ten pakiet zawiera statyczną wersję biblioteki Hesiod.
58
59 %prep
60 %setup -q
61
62 grep -l '^\.so man3/' man/*.3 | xargs %{__sed} -i -e '1s,man3/,,;2,$d'
63
64 %build
65 %configure
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 # obsoleted by pkg-config
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhesiod.la
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
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*
91
92 %files devel
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*
98
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/libhesiod.a
This page took 0.631989 seconds and 3 git commands to generate.