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