]> git.pld-linux.org Git - packages/libhome.git/blob - libhome.spec
- rel 5
[packages/libhome.git] / libhome.spec
1 Summary:        libhome - a configurable getpwnam(3) emulator
2 Summary(pl.UTF-8):      libhome - konfigurowalny emulator funkcji getpwnam(3)
3 Name:           libhome
4 Version:        0.10.1
5 Release:        5
6 License:        LGPL v2+
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/pll/%{name}-%{version}.tar.gz
9 # Source0-md5:  fe0b4e581c62bc64eb13295eb7f2b0e5
10 Patch0:         %{name}-DESTDIR.patch
11 URL:            http://pll.sourceforge.net/
12 BuildRequires:  automake
13 BuildRequires:  groff
14 BuildRequires:  db-devel
15 BuildRequires:  mysql-devel
16 BuildRequires:  openldap-devel >= 2.4.6
17 BuildRequires:  pam-devel
18 BuildRequires:  postgresql-devel
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
28 %description -l pl.UTF-8
29 Biblioteka obsługuje MySQL, Open LDAP lub plik /etc/passwd.
30
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.
34
35 %package devel
36 Summary:        Header files for libhome library
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhome
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       db-devel
41 Requires:       mysql-devel
42 Requires:       openldap-devel >= 2.4.6
43 Requires:       pam-devel
44 Requires:       postgresql-devel
45
46 %description devel
47 Header files for libhome library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libhome.
51
52 %package static
53 Summary:        Static libhome library
54 Summary(pl.UTF-8):      Statyczna biblioteka libhome
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static libhome library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libhome.
63
64 %prep
65 %setup -q
66 %patch0 -p1 -b .orig
67
68 %build
69 cp -f /usr/share/automake/config.* .
70 %configure \
71         --with-db4=%{_includedir} \
72         --with-ldap \
73         --with-mysql \
74         --with-pgsql \
75         --with-pam
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_sysconfdir}
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT \
84         bindir=%{_bindir} \
85         libdir=%{_libdir} \
86         includedir=%{_includedir} \
87         mandir=%{_mandir}
88
89 install home.conf $RPM_BUILD_ROOT%{_sysconfdir}
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)
99 %doc NEWS README
100 %attr(755,root,root) %{_bindir}/home_*
101 %attr(755,root,root) %{_sbindir}/home_*
102 %attr(755,root,root) %{_bindir}/libhome.sh
103 %attr(755,root,root) %{_libdir}/lib*home*.so.*.*.*
104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/home.conf
105 %{_mandir}/man5/home.conf.5*
106 %{_mandir}/man8/home_proxy.8*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*home*.so
111 %{_libdir}/lib*home*.la
112 %{_includedir}/home
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/lib*home*.a
This page took 0.110831 seconds and 3 git commands to generate.