]>
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 |
b361bea9 | 10 | Version: 0.63 |
825ffcfc | 11 | Release: 3 |
b72e9819 | 12 | License: LGPL v2+ |
b87eaa43 | 13 | Group: Base |
b361bea9 JR |
14 | Source0: https://pagure.io/libuser/archive/libuser-%{version}/libuser-%{name}-%{version}.tar.gz |
15 | # Source0-md5: 3ab610afe9ab2431cdeed46b0c629bd1 | |
31e911c8 | 16 | URL: https://pagure.io/libuser |
682bdb7a JB |
17 | BuildRequires: autoconf >= 2.63b |
18 | BuildRequires: automake | |
19 | BuildRequires: bison | |
b72e9819 | 20 | BuildRequires: cyrus-sasl-devel |
682bdb7a | 21 | BuildRequires: gettext-tools >= 0.18.2 |
5690bc96 | 22 | BuildRequires: glib2-devel >= 2.0 |
682bdb7a | 23 | BuildRequires: gtk-doc |
b72e9819 | 24 | BuildRequires: libselinux-devel |
682bdb7a | 25 | BuildRequires: libtool >= 2:2 |
b72e9819 PZ |
26 | BuildRequires: openldap-devel |
27 | BuildRequires: pam-devel | |
5690bc96 | 28 | BuildRequires: pkgconfig |
b72e9819 PZ |
29 | BuildRequires: popt-devel |
30 | BuildRequires: python-devel | |
682bdb7a | 31 | BuildRequires: rpm-build >= 4.6 |
e098d029 | 32 | BuildRequires: sgml-tools |
b87eaa43 ER |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
35 | %if %{with tests} | |
36 | BuildRequires: openldap | |
37 | BuildRequires: openldap-servers | |
38 | %endif | |
b72e9819 PZ |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | The libuser library implements a standardized interface for | |
43 | manipulating and administering user and group accounts. The library | |
44 | uses pluggable back-ends to interface to its data sources. | |
45 | ||
46 | Sample applications modeled after those included with the shadow | |
47 | password suite are included. | |
48 | ||
55535c0e JB |
49 | %description -l pl.UTF-8 |
50 | Biblioteka libuser implementuje ustandaryzowany interfejs do | |
51 | manipulowania i administrowania kontami użytkowników i grup. | |
52 | Wykorzystuje system wtyczek backendów współpracujących ze źródłami | |
53 | danych. | |
54 | ||
55 | Do pakietu dołączone są przykładowe aplikacje korzystające z | |
56 | biblioteki, opracowane na podstawie odpowiedników z pakietu shadow. | |
57 | ||
b72e9819 PZ |
58 | %package devel |
59 | Summary: Files needed for developing applications which use libuser | |
55535c0e | 60 | Summary(pl.UTF-8): Pliki do tworzenia aplikacji wykorzystujących libuser |
b72e9819 PZ |
61 | Group: Development/Libraries |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: glib2-devel | |
64 | ||
65 | %description devel | |
55535c0e JB |
66 | The libuser-devel package contains header and other files useful for |
67 | developing applications with libuser. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Ten pakiet zawiera pliki nagłówkowe i inne przydatne do tworzenia | |
71 | aplikacji wykorzystujących bibliotekę libuser. | |
b72e9819 | 72 | |
31e911c8 JB |
73 | %package apidocs |
74 | Summary: API documentation for libuser library | |
75 | Summary(pl.UTF-8): Dokumentacja API biblioteki libuser | |
76 | Group: Documentation | |
31e911c8 | 77 | BuildArch: noarch |
31e911c8 JB |
78 | |
79 | %description apidocs | |
80 | API documentation for libuser library. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API biblioteki libuser. | |
84 | ||
b72e9819 PZ |
85 | %package -n python-libuser |
86 | Summary: Python bindings for the libuser library | |
55535c0e JB |
87 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libuser |
88 | Group: Libraries/Python | |
02c8ea6a | 89 | Requires: %{name} = %{version}-%{release} |
b72e9819 PZ |
90 | |
91 | %description -n python-libuser | |
55535c0e JB |
92 | This package contains the Python bindings for the libuser library, |
93 | which provides a Python API for manipulating and administering user | |
94 | and group accounts. | |
95 | ||
96 | %description -n python-libuser -l pl.UTF-8 | |
97 | Ten pakiet zawiera wiązania Pythona do biblioteki libuser. Udostępnia | |
98 | pythonowe API do manipulowania i administrowania kontami użytkowników | |
99 | i grup. | |
b72e9819 PZ |
100 | |
101 | %prep | |
b361bea9 | 102 | %setup -q -n %{name}-%{name}-%{version} |
b72e9819 | 103 | |
682bdb7a JB |
104 | %{__sed} -i -e '/AC_CONFIG_FILES/ s, po/Makefile\.in,,' configure.ac |
105 | ||
b72e9819 | 106 | %build |
b361bea9 JR |
107 | mkdir -p m4 |
108 | %{__gtkdocize} --docdir docs/reference | |
682bdb7a | 109 | %{__gettextize} |
b361bea9 | 110 | %{__libtoolize} |
b361bea9 JR |
111 | %{__aclocal} -I m4 |
112 | %{__autoconf} | |
113 | %{__autoheader} | |
114 | %{__automake} | |
b72e9819 | 115 | %configure \ |
abeefcee | 116 | NSCD=/usr/sbin/nscd \ |
b361bea9 | 117 | --enable-gtk-doc \ |
31e911c8 | 118 | --with-html-dir=%{_gtkdocdir} \ |
b72e9819 | 119 | --with-ldap \ |
31e911c8 | 120 | --with-selinux |
b72e9819 PZ |
121 | %{__make} |
122 | ||
b87eaa43 ER |
123 | %{?with_tests:%{__make} check} |
124 | ||
b72e9819 PZ |
125 | %install |
126 | rm -rf $RPM_BUILD_ROOT | |
31e911c8 | 127 | |
b72e9819 PZ |
128 | %{__make} install \ |
129 | DESTDIR=$RPM_BUILD_ROOT | |
130 | ||
31e911c8 | 131 | # loadable modules |
b87eaa43 ER |
132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
133 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
31e911c8 JB |
134 | # obsoleted by pkg-config |
135 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libuser.la | |
55535c0e | 136 | |
b72e9819 PZ |
137 | %find_lang %{name} |
138 | ||
55535c0e | 139 | %clean |
4dd0f62e | 140 | rm -rf $RPM_BUILD_ROOT |
b72e9819 | 141 | |
55535c0e | 142 | %post -p /sbin/ldconfig |
b72e9819 PZ |
143 | %postun -p /sbin/ldconfig |
144 | ||
145 | %files -f %{name}.lang | |
146 | %defattr(644,root,root,755) | |
4ff8312f JB |
147 | %doc AUTHORS ChangeLog NEWS README TODO docs/*.txt |
148 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libuser.conf | |
5690bc96 JB |
149 | %attr(755,root,root) %{_bindir}/lchfn |
150 | %attr(755,root,root) %{_bindir}/lchsh | |
151 | %attr(755,root,root) %{_libdir}/libuser.so.*.*.* | |
152 | %attr(755,root,root) %ghost %{_libdir}/libuser.so.1 | |
b72e9819 | 153 | %dir %{_libdir}/%{name} |
abeefcee JB |
154 | %attr(755,root,root) %{_libdir}/%{name}/libuser_files.so |
155 | %attr(755,root,root) %{_libdir}/%{name}/libuser_ldap.so | |
156 | %attr(755,root,root) %{_libdir}/%{name}/libuser_shadow.so | |
5690bc96 JB |
157 | %attr(755,root,root) %{_sbindir}/lchage |
158 | %attr(755,root,root) %{_sbindir}/lgroupadd | |
159 | %attr(755,root,root) %{_sbindir}/lgroupdel | |
160 | %attr(755,root,root) %{_sbindir}/lgroupmod | |
161 | %attr(755,root,root) %{_sbindir}/lid | |
162 | %attr(755,root,root) %{_sbindir}/lnewusers | |
163 | %attr(755,root,root) %{_sbindir}/lpasswd | |
164 | %attr(755,root,root) %{_sbindir}/luseradd | |
165 | %attr(755,root,root) %{_sbindir}/luserdel | |
166 | %attr(755,root,root) %{_sbindir}/lusermod | |
167 | %{_mandir}/man1/lchage.1* | |
168 | %{_mandir}/man1/lchfn.1* | |
169 | %{_mandir}/man1/lchsh.1* | |
170 | %{_mandir}/man1/lgroupadd.1* | |
171 | %{_mandir}/man1/lgroupdel.1* | |
172 | %{_mandir}/man1/lgroupmod.1* | |
173 | %{_mandir}/man1/lid.1* | |
174 | %{_mandir}/man1/lnewusers.1* | |
175 | %{_mandir}/man1/lpasswd.1* | |
176 | %{_mandir}/man1/luseradd.1* | |
177 | %{_mandir}/man1/luserdel.1* | |
178 | %{_mandir}/man1/lusermod.1* | |
179 | %{_mandir}/man5/libuser.conf.5* | |
b72e9819 PZ |
180 | |
181 | %files devel | |
182 | %defattr(644,root,root,755) | |
5690bc96 | 183 | %attr(755,root,root) %{_libdir}/libuser.so |
55535c0e | 184 | %{_includedir}/libuser |
5690bc96 | 185 | %{_pkgconfigdir}/libuser.pc |
31e911c8 JB |
186 | |
187 | %files apidocs | |
188 | %defattr(644,root,root,755) | |
5690bc96 | 189 | %{_gtkdocdir}/libuser |
55535c0e JB |
190 | |
191 | %files -n python-libuser | |
192 | %defattr(644,root,root,755) | |
193 | %doc python/modules.txt | |
6b5c19ab | 194 | %attr(755,root,root) %{py_sitedir}/libuser.so |