]> git.pld-linux.org Git - packages/libhome.git/blame - libhome.spec
- release 2 (by relup.sh)
[packages/libhome.git] / libhome.spec
CommitLineData
d1d31fb6 1Summary: libhome - a configurable getpwnam(3) emulator
960ff5e8 2Summary(pl.UTF-8): libhome - konfigurowalny emulator funkcji getpwnam(3)
588a4932 3Name: libhome
078c1374 4Version: 0.10.2
3077ea6f 5Release: 2
75147e84 6License: LGPL v2+
588a4932 7Group: Libraries
078c1374
ŁK
8Source0: http://downloads.sourceforge.net/pll/%{name}-%{version}.tar.gz
9# Source0-md5: f7129ae34d3c44d38ac785e7a1f7d509
75147e84 10Patch0: %{name}-DESTDIR.patch
078c1374 11Patch1: %{name}-db53.patch
588a4932 12URL: http://pll.sourceforge.net/
078c1374 13BuildRequires: autoconf
588a4932 14BuildRequires: automake
b383f9e0 15BuildRequires: db-devel
078c1374
ŁK
16BuildRequires: groff
17BuildRequires: libtool
07a03d1b 18BuildRequires: mysql-devel
677bec79 19BuildRequires: openldap-devel >= 2.4.6
b383f9e0
AM
20BuildRequires: pam-devel
21BuildRequires: postgresql-devel
588a4932 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25It supports MySQL, Open LDAP or system /etc/passwd frontend.
26
27It's intended to replace getpwnam within system daemons who need user
28authentification or identification when the users are listed on
29foreign servers.
30
ac67ebbb
JR
31%description -l pl.UTF-8
32Biblioteka obsługuje MySQL, Open LDAP lub plik /etc/passwd.
588a4932 33
ac67ebbb
JR
34Jej zadaniem jest zamiana wywołania getpwnam w demonach systemowych,
35które potrzebują uwierzytelnienia lub identyfikacji użytkownika w
36oparciu o dane z obcych serwerów.
588a4932 37
75147e84
JB
38%package devel
39Summary: Header files for libhome library
960ff5e8 40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libhome
75147e84
JB
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
07a03d1b
JB
43Requires: db-devel
44Requires: mysql-devel
677bec79 45Requires: openldap-devel >= 2.4.6
07a03d1b
JB
46Requires: pam-devel
47Requires: postgresql-devel
75147e84
JB
48
49%description devel
50Header files for libhome library.
51
ac67ebbb
JR
52%description devel -l pl.UTF-8
53Pliki nagłówkowe biblioteki libhome.
75147e84
JB
54
55%package static
56Summary: Static libhome library
960ff5e8 57Summary(pl.UTF-8): Statyczna biblioteka libhome
75147e84
JB
58Group: Development/Libraries
59Requires: %{name}-devel = %{version}-%{release}
60
61%description static
62Static libhome library.
63
ac67ebbb 64%description static -l pl.UTF-8
75147e84
JB
65Statyczna 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
88rm -rf $RPM_BUILD_ROOT
d1d31fb6 89install -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 98install home.conf $RPM_BUILD_ROOT%{_sysconfdir}
588a4932 99
100%clean
101rm -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
This page took 0.074726 seconds and 4 git commands to generate.