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