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