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