]>
Commit | Line | Data |
---|---|---|
d1d31fb6 | 1 | Summary: libhome - a configurable getpwnam(3) emulator |
960ff5e8 | 2 | Summary(pl.UTF-8): libhome - konfigurowalny emulator funkcji getpwnam(3) |
588a4932 | 3 | Name: libhome |
b383f9e0 | 4 | Version: 0.10.1 |
57973a2c | 5 | Release: 9 |
75147e84 | 6 | License: LGPL v2+ |
588a4932 | 7 | Group: Libraries |
d1d31fb6 | 8 | Source0: http://dl.sourceforge.net/pll/%{name}-%{version}.tar.gz |
b383f9e0 | 9 | # Source0-md5: fe0b4e581c62bc64eb13295eb7f2b0e5 |
75147e84 | 10 | Patch0: %{name}-DESTDIR.patch |
588a4932 | 11 | URL: http://pll.sourceforge.net/ |
588a4932 | 12 | BuildRequires: automake |
41a132ea | 13 | BuildRequires: groff |
b383f9e0 | 14 | BuildRequires: db-devel |
07a03d1b | 15 | BuildRequires: mysql-devel |
677bec79 | 16 | BuildRequires: openldap-devel >= 2.4.6 |
b383f9e0 AM |
17 | BuildRequires: pam-devel |
18 | BuildRequires: postgresql-devel | |
588a4932 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | It supports MySQL, Open LDAP or system /etc/passwd frontend. | |
23 | ||
24 | It's intended to replace getpwnam within system daemons who need user | |
25 | authentification or identification when the users are listed on | |
26 | foreign servers. | |
27 | ||
ac67ebbb JR |
28 | %description -l pl.UTF-8 |
29 | Biblioteka obsługuje MySQL, Open LDAP lub plik /etc/passwd. | |
588a4932 | 30 | |
ac67ebbb JR |
31 | Jej zadaniem jest zamiana wywołania getpwnam w demonach systemowych, |
32 | które potrzebują uwierzytelnienia lub identyfikacji użytkownika w | |
33 | oparciu o dane z obcych serwerów. | |
588a4932 | 34 | |
75147e84 JB |
35 | %package devel |
36 | Summary: Header files for libhome library | |
960ff5e8 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libhome |
75147e84 JB |
38 | Group: Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
07a03d1b JB |
40 | Requires: db-devel |
41 | Requires: mysql-devel | |
677bec79 | 42 | Requires: openldap-devel >= 2.4.6 |
07a03d1b JB |
43 | Requires: pam-devel |
44 | Requires: postgresql-devel | |
75147e84 JB |
45 | |
46 | %description devel | |
47 | Header files for libhome library. | |
48 | ||
ac67ebbb JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki libhome. | |
75147e84 JB |
51 | |
52 | %package static | |
53 | Summary: Static libhome library | |
960ff5e8 | 54 | Summary(pl.UTF-8): Statyczna biblioteka libhome |
75147e84 JB |
55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libhome library. | |
60 | ||
ac67ebbb | 61 | %description static -l pl.UTF-8 |
75147e84 JB |
62 | Statyczna biblioteka libhome. |
63 | ||
588a4932 | 64 | %prep |
65 | %setup -q | |
75147e84 | 66 | %patch0 -p1 -b .orig |
588a4932 | 67 | |
68 | %build | |
75147e84 | 69 | cp -f /usr/share/automake/config.* . |
588a4932 | 70 | %configure \ |
b383f9e0 | 71 | --with-db4=%{_includedir} \ |
588a4932 | 72 | --with-ldap \ |
b383f9e0 AM |
73 | --with-mysql \ |
74 | --with-pgsql \ | |
75 | --with-pam | |
588a4932 | 76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
d1d31fb6 | 80 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
588a4932 | 81 | |
75147e84 | 82 | %{__make} install \ |
b383f9e0 AM |
83 | DESTDIR=$RPM_BUILD_ROOT \ |
84 | bindir=%{_bindir} \ | |
85 | libdir=%{_libdir} \ | |
86 | includedir=%{_includedir} \ | |
87 | mandir=%{_mandir} | |
75147e84 | 88 | |
d1d31fb6 | 89 | install home.conf $RPM_BUILD_ROOT%{_sysconfdir} |
588a4932 | 90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
75147e84 | 99 | %doc NEWS README |
b383f9e0 AM |
100 | %attr(755,root,root) %{_bindir}/home_* |
101 | %attr(755,root,root) %{_sbindir}/home_* | |
75147e84 | 102 | %attr(755,root,root) %{_bindir}/libhome.sh |
07a03d1b | 103 | %attr(755,root,root) %{_libdir}/lib*home*.so.*.*.* |
7efae194 | 104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/home.conf |
75147e84 | 105 | %{_mandir}/man5/home.conf.5* |
b383f9e0 | 106 | %{_mandir}/man8/home_proxy.8* |
75147e84 JB |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
b383f9e0 AM |
110 | %attr(755,root,root) %{_libdir}/lib*home*.so |
111 | %{_libdir}/lib*home*.la | |
75147e84 JB |
112 | %{_includedir}/home |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
b383f9e0 | 116 | %{_libdir}/lib*home*.a |