]>
Commit | Line | Data |
---|---|---|
b72e9819 | 1 | Summary: A user and group account administration library |
55535c0e | 2 | Summary(pl.UTF-8): Biblioteka do administrowania kontami użytkowników i grup |
b72e9819 PZ |
3 | Name: libuser |
4 | Version: 0.56.6 | |
5cd7b904 | 5 | Release: 5 |
b72e9819 | 6 | License: LGPL v2+ |
55535c0e | 7 | Group: Applications/System |
b72e9819 PZ |
8 | Source0: %{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 74bd4ad52d81ccf67a8f6cd110add809 | |
c5f16fef | 10 | Patch0: %{name}-selinux.patch |
b72e9819 | 11 | BuildRequires: cyrus-sasl-devel |
5690bc96 | 12 | BuildRequires: glib2-devel >= 2.0 |
b72e9819 PZ |
13 | BuildRequires: libselinux-devel |
14 | BuildRequires: openldap-devel | |
15 | BuildRequires: pam-devel | |
5690bc96 | 16 | BuildRequires: pkgconfig |
b72e9819 PZ |
17 | BuildRequires: popt-devel |
18 | BuildRequires: python-devel | |
e098d029 | 19 | BuildRequires: sgml-tools |
b72e9819 PZ |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | The libuser library implements a standardized interface for | |
24 | manipulating and administering user and group accounts. The library | |
25 | uses pluggable back-ends to interface to its data sources. | |
26 | ||
27 | Sample applications modeled after those included with the shadow | |
28 | password suite are included. | |
29 | ||
55535c0e JB |
30 | %description -l pl.UTF-8 |
31 | Biblioteka libuser implementuje ustandaryzowany interfejs do | |
32 | manipulowania i administrowania kontami użytkowników i grup. | |
33 | Wykorzystuje system wtyczek backendów współpracujących ze źródłami | |
34 | danych. | |
35 | ||
36 | Do pakietu dołączone są przykładowe aplikacje korzystające z | |
37 | biblioteki, opracowane na podstawie odpowiedników z pakietu shadow. | |
38 | ||
b72e9819 PZ |
39 | %package devel |
40 | Summary: Files needed for developing applications which use libuser | |
55535c0e | 41 | Summary(pl.UTF-8): Pliki do tworzenia aplikacji wykorzystujących libuser |
b72e9819 PZ |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: glib2-devel | |
45 | ||
46 | %description devel | |
55535c0e JB |
47 | The libuser-devel package contains header and other files useful for |
48 | developing applications with libuser. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Ten pakiet zawiera pliki nagłówkowe i inne przydatne do tworzenia | |
52 | aplikacji wykorzystujących bibliotekę libuser. | |
b72e9819 PZ |
53 | |
54 | %package -n python-libuser | |
55 | Summary: Python bindings for the libuser library | |
55535c0e JB |
56 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libuser |
57 | Group: Libraries/Python | |
02c8ea6a | 58 | Requires: %{name} = %{version}-%{release} |
b72e9819 PZ |
59 | |
60 | %description -n python-libuser | |
55535c0e JB |
61 | This package contains the Python bindings for the libuser library, |
62 | which provides a Python API for manipulating and administering user | |
63 | and group accounts. | |
64 | ||
65 | %description -n python-libuser -l pl.UTF-8 | |
66 | Ten pakiet zawiera wiązania Pythona do biblioteki libuser. Udostępnia | |
67 | pythonowe API do manipulowania i administrowania kontami użytkowników | |
68 | i grup. | |
b72e9819 PZ |
69 | |
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p0 | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | --with-selinux \ | |
77 | --with-ldap \ | |
55535c0e | 78 | --with-html-dir=%{_gtkdocdir} |
b72e9819 PZ |
79 | %{__make} |
80 | ||
b72e9819 PZ |
81 | %install |
82 | rm -rf $RPM_BUILD_ROOT | |
55535c0e | 83 | |
b72e9819 PZ |
84 | %{__make} install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
55535c0e JB |
87 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
88 | rm $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
89 | ||
b72e9819 PZ |
90 | %find_lang %{name} |
91 | ||
55535c0e JB |
92 | %clean |
93 | rm -fr $RPM_BUILD_ROOT | |
b72e9819 | 94 | |
55535c0e | 95 | %post -p /sbin/ldconfig |
b72e9819 PZ |
96 | %postun -p /sbin/ldconfig |
97 | ||
98 | %files -f %{name}.lang | |
99 | %defattr(644,root,root,755) | |
4ff8312f JB |
100 | %doc AUTHORS ChangeLog NEWS README TODO docs/*.txt |
101 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libuser.conf | |
5690bc96 JB |
102 | %attr(755,root,root) %{_bindir}/lchfn |
103 | %attr(755,root,root) %{_bindir}/lchsh | |
104 | %attr(755,root,root) %{_libdir}/libuser.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libuser.so.1 | |
b72e9819 | 106 | %dir %{_libdir}/%{name} |
5690bc96 JB |
107 | %{_libdir}/%{name}/libuser_files.so |
108 | %{_libdir}/%{name}/libuser_ldap.so | |
109 | %{_libdir}/%{name}/libuser_shadow.so | |
110 | %attr(755,root,root) %{_sbindir}/lchage | |
111 | %attr(755,root,root) %{_sbindir}/lgroupadd | |
112 | %attr(755,root,root) %{_sbindir}/lgroupdel | |
113 | %attr(755,root,root) %{_sbindir}/lgroupmod | |
114 | %attr(755,root,root) %{_sbindir}/lid | |
115 | %attr(755,root,root) %{_sbindir}/lnewusers | |
116 | %attr(755,root,root) %{_sbindir}/lpasswd | |
117 | %attr(755,root,root) %{_sbindir}/luseradd | |
118 | %attr(755,root,root) %{_sbindir}/luserdel | |
119 | %attr(755,root,root) %{_sbindir}/lusermod | |
120 | %{_mandir}/man1/lchage.1* | |
121 | %{_mandir}/man1/lchfn.1* | |
122 | %{_mandir}/man1/lchsh.1* | |
123 | %{_mandir}/man1/lgroupadd.1* | |
124 | %{_mandir}/man1/lgroupdel.1* | |
125 | %{_mandir}/man1/lgroupmod.1* | |
126 | %{_mandir}/man1/lid.1* | |
127 | %{_mandir}/man1/lnewusers.1* | |
128 | %{_mandir}/man1/lpasswd.1* | |
129 | %{_mandir}/man1/luseradd.1* | |
130 | %{_mandir}/man1/luserdel.1* | |
131 | %{_mandir}/man1/lusermod.1* | |
132 | %{_mandir}/man5/libuser.conf.5* | |
b72e9819 PZ |
133 | |
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
5690bc96 JB |
136 | %attr(755,root,root) %{_libdir}/libuser.so |
137 | %{_libdir}/libuser.la | |
55535c0e | 138 | %{_includedir}/libuser |
5690bc96 JB |
139 | %{_pkgconfigdir}/libuser.pc |
140 | %{_gtkdocdir}/libuser | |
55535c0e JB |
141 | |
142 | %files -n python-libuser | |
143 | %defattr(644,root,root,755) | |
144 | %doc python/modules.txt | |
5690bc96 | 145 | %attr(755,root,root) %{py_sitedir}/libusermodule.so |