]> git.pld-linux.org Git - packages/shishi.git/blob - shishi.spec
- release 2 (by relup.sh)
[packages/shishi.git] / shishi.spec
1 Summary:        Shishi - an implementation of RFC 1510(bis) (Kerberos V5 authentication)
2 Summary(pl.UTF-8):      Shishi - implementacja RFC 1510(bis) (uwierzytelniania Kerberos V5)
3 Name:           shishi
4 Version:        1.0.2
5 Release:        2
6 Epoch:          0
7 License:        GPL v3+
8 Group:          Libraries
9 Source0:        http://ftp.gnu.org/gnu/shishi/%{name}-%{version}.tar.gz
10 # Source0-md5:  4dace6fdc67dec508ed75b852d316e64
11 Source1:        %{name}-shishid.init
12 Source2:        %{name}-shishid.sysconfig
13 Patch0:         %{name}-info.patch
14 URL:            http://josefsson.org/shishi/
15 BuildRequires:  autoconf >= 2.61
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  gettext-devel >= 0.18.1
18 BuildRequires:  gnutls-devel >= 1.2.5
19 BuildRequires:  gtk-doc >= 1.1
20 BuildRequires:  libgcrypt-devel >= 1.1.43
21 BuildRequires:  libidn-devel >= 0.1.0
22 BuildRequires:  libtasn1-devel >= 2.11
23 BuildRequires:  libtool >= 2:1.5
24 BuildRequires:  pam-devel
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpmbuild(macros) >= 1.268
27 BuildRequires:  texinfo
28 Requires(post,postun):  /sbin/ldconfig
29 Requires:       libtasn1 >= 2.11
30 Provides:       group(shishi)
31 Provides:       user(shishi)
32 # should be moved to shishi-enabled inetutils-* if such packages would exist
33 Obsoletes:      shishi-telnet
34 Obsoletes:      shishi-telnetd
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         _libexecdir     %{_sbindir}
38 %define         _localstatedir  %{_var}/lib
39
40 %description
41 Shishi is a (still incomplete) implementation of the RFC 1510(bis)
42 network authentication system (known as Kerberos V5). Shishi can be
43 used to authenticate users in distributed systems.
44
45 Shishi contains a library ('libshishi') that can be used by
46 application developers to add support for RFC 1510 and a command line
47 utility ('shishi') that is used by users to interface with the
48 library, to acquire and manage tickets (and more). Included are also a
49 TELNET client and server (based on GNU InetUtils) for remote network
50 login, and a PAM module for host security. A rudimentary key
51 distribution center (KDC) daemon is included.
52
53 %description -l pl.UTF-8
54 Shishi to (nadal niekompletna) implementacja sieciowego systemu
55 uwierzytelniania RFC 1510(bis) (znanego jako Kerberos V5). Shishi może
56 być używane do uwierzytelniania użytkowników w systemach
57 rozproszonych.
58
59 Shishi zawiera bibliotekę (libshishi), którą programiści mogą
60 wykorzystywać do dodawania obsługi RFC 1510 oraz narzędzie działające
61 z linii poleceń (shishi), którym użytkownicy mogą komunikować się z
62 biblioteką, uzyskiwać i zarządzać biletami itp. Dołączone są także
63 klient i serwer TELNET (oparte na GNU InetUtils) do zdalnego logowania
64 oraz moduł PAM do lokalnego modelu bezpieczeństwa. Demon podstawowego
65 centrum dystrybucji kluczy (KDC) także jest załączony.
66
67 %package devel
68 Summary:        Header files for Shishi library
69 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Shishi
70 Group:          Development/Libraries
71 Requires:       %{name} = %{epoch}:%{version}-%{release}
72 Requires:       gnutls-devel >= 1.2.5
73 Requires:       gtk-doc-common
74 Requires:       libgcrypt-devel >= 1.1.43
75 Requires:       libidn-devel >= 0.1.0
76 Requires:       libtasn1-devel >= 2.11
77
78 %description devel
79 Header files for Shishi library.
80
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki Shishi.
83
84 %package static
85 Summary:        Static Shishi library
86 Summary(pl.UTF-8):      Statyczna biblioteka Shishi
87 Group:          Development/Libraries
88 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
89
90 %description static
91 Static Shishi library.
92
93 %description static -l pl.UTF-8
94 Statyczna biblioteka Shishi.
95
96 %package shishid
97 Summary:        shishid - Kerberos 5 server
98 Summary(pl.UTF-8):      shishid - serwer Kerberosa 5
99 Group:          Networking/Daemons
100 Requires(post,postun):  /sbin/chkconfig
101 Requires(post,preun):   rc-scripts
102 Requires(postun):       /usr/sbin/groupdel
103 Requires(postun):       /usr/sbin/userdel
104 Requires(pre):  /bin/id
105 Requires(pre):  /usr/bin/getgid
106 Requires(pre):  /usr/sbin/groupadd
107 Requires(pre):  /usr/sbin/useradd
108 Requires:       %{name} = %{epoch}:%{version}-%{release}
109
110 %description shishid
111 shishid is a network daemon for issuing Kerberos 5 tickets.
112
113 %description shishid -l pl.UTF-8
114 shishid to sieciowy demon służący do wydawania biletów Kerberosa 5.
115
116 %package -n pam-pam_shishi
117 Summary:        PAM module for RFC 1510 (Kerberos V5) authentication
118 Summary(pl.UTF-8):      Moduł PAM do uwierzytelniania RFC 1510 (Kerberos V5)
119 Group:          Libraries
120 Requires:       %{name} = %{epoch}:%{version}-%{release}
121 Obsoletes:      pam_shishi
122
123 %description -n pam-pam_shishi
124 PAM module for RFC 1510 (Kerberos V5) authentication.
125
126 %description -n pam-pam_shishi -l pl.UTF-8
127 Moduł PAM do uwierzytelniania RFC 1510 (Kerberos V5).
128
129 %prep
130 %setup -q
131 %patch0 -p1
132
133 # doesn't build on sparc (too few B* constants) and wasn't packaged anyway
134 %{__perl} -pi -e 's/^(SUBDIRS.*) rsh-redone/$1/' extra/Makefile.am
135
136 %build
137 %{__libtoolize}
138 %{__aclocal} -I gl/m4 -I src/gl/m4 -I db/gl/m4 -I m4
139 %{__autoconf}
140 %{__autoheader}
141 %{__automake}
142 %configure \
143         --disable-silent-rules \
144         --with-libgcrypt \
145         --with-pam-dir=/%{_lib}/security
146
147 %{__make}
148 %{__make} extra
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
153
154 %{__make} install \
155         DESTDIR=$RPM_BUILD_ROOT
156
157 %{__make} -C extra install \
158         DESTDIR=$RPM_BUILD_ROOT
159
160 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_shishi.la
161
162 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/shishid
163 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/shishid
164 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
165
166 %find_lang %{name}
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %post
172 /sbin/ldconfig
173 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
174
175 %postun
176 /sbin/ldconfig
177 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
178
179 %pre shishid
180 %groupadd -P %{name}-shishid -g 125 shishi
181 %useradd -P %{name}-shishid -u 125 -d /usr/share/empty -s /bin/false -c "shishi user" -g shishi shishi
182
183 %post shishid
184 /sbin/chkconfig --add shishid
185 %service shishid restart "shishid daemon"
186
187 %preun shishid
188 if [ "$1" = "0" ]; then
189         %service shishid stop
190         /sbin/chkconfig --del shishid
191 fi
192
193 %postun shishid
194 if [ "$1" = "0" ]; then
195         %userremove shishi
196         %groupremove shishi
197 fi
198
199 %files -f %{name}.lang
200 %defattr(644,root,root,755)
201 %doc AUTHORS ChangeLog NEWS README* THANKS
202 %attr(755,root,root) %{_bindir}/ccache2shishi
203 %attr(755,root,root) %{_bindir}/shisa
204 %attr(755,root,root) %{_bindir}/shishi
205 %attr(755,root,root) %{_sbindir}/keytab2shishi
206 %attr(755,root,root) %{_libdir}/libshisa.so.*.*.*
207 %attr(755,root,root) %ghost %{_libdir}/libshisa.so.0
208 %attr(755,root,root) %{_libdir}/libshishi.so.*.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libshishi.so.0
210 %dir %{_sysconfdir}/shishi
211 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shisa.conf
212 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.conf
213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.keys
214 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.skel
215 %attr(700,root,root) %dir %{_localstatedir}/%{name}
216 %{_mandir}/man1/ccache2shishi.1*
217 %{_mandir}/man1/keytab2shishi.1*
218 %{_mandir}/man1/shisa.1*
219 %{_mandir}/man1/shishi.1*
220 %{_infodir}/shishi.info*
221
222 %files devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libshisa.so
225 %attr(755,root,root) %{_libdir}/libshishi.so
226 %{_libdir}/libshisa.la
227 %{_libdir}/libshishi.la
228 %{_includedir}/shisa.h
229 %{_includedir}/shishi*.h
230 %{_pkgconfigdir}/shishi.pc
231 %{_mandir}/man3/shisa*.3*
232 %{_mandir}/man3/shishi*.3*
233
234 %files static
235 %defattr(644,root,root,755)
236 %{_libdir}/libshisa.a
237 %{_libdir}/libshishi.a
238
239 %files shishid
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_sbindir}/shishid
242 %attr(754,root,root) /etc/rc.d/init.d/shishid
243 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/shishid
244 %{_mandir}/man1/shishid.1*
245
246 %files -n pam-pam_shishi
247 %defattr(644,root,root,755)
248 %attr(755,root,root) /%{_lib}/security/pam_shishi.so
This page took 0.075823 seconds and 3 git commands to generate.