]> git.pld-linux.org Git - packages/libhome.git/blob - libhome.spec
b12dcb4fc1d1f95657cdd414fc4cfea084d6e066
[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.2
5 Release:        1
6 License:        LGPL v2+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/pll/%{name}-%{version}.tar.gz
9 # Source0-md5:  f7129ae34d3c44d38ac785e7a1f7d509
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-db53.patch
12 URL:            http://pll.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  db-devel
16 BuildRequires:  groff
17 BuildRequires:  libtool
18 BuildRequires:  mysql-devel
19 BuildRequires:  openldap-devel >= 2.4.6
20 BuildRequires:  pam-devel
21 BuildRequires:  postgresql-devel
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
31 %description -l pl.UTF-8
32 Biblioteka obsługuje MySQL, Open LDAP lub plik /etc/passwd.
33
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.
37
38 %package devel
39 Summary:        Header files for libhome library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhome
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       db-devel
44 Requires:       mysql-devel
45 Requires:       openldap-devel >= 2.4.6
46 Requires:       pam-devel
47 Requires:       postgresql-devel
48
49 %description devel
50 Header files for libhome library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki libhome.
54
55 %package static
56 Summary:        Static libhome library
57 Summary(pl.UTF-8):      Statyczna biblioteka libhome
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static libhome library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libhome.
66
67 %prep
68 %setup -q
69 %patch0 -p1 -b .orig
70 %patch1 -p1
71
72 %build
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__autoheader}
77 # no automake call needed, automake is not in use here
78 %configure \
79         --with-db4=%{_includedir} \
80         --with-ldap \
81         --with-mysql \
82         --with-pgsql \
83         --with-pam \
84         --with-proxy
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_sysconfdir}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT \
93         bindir=%{_bindir} \
94         libdir=%{_libdir} \
95         includedir=%{_includedir} \
96         mandir=%{_mandir}
97
98 install home.conf $RPM_BUILD_ROOT%{_sysconfdir}
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)
108 %doc NEWS README
109 %attr(755,root,root) %{_bindir}/home_finger
110 %attr(755,root,root) %{_bindir}/home_su
111 %attr(755,root,root) %{_bindir}/libhome.sh
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
117 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/home.conf
118 %{_mandir}/man5/home.conf.5*
119 %{_mandir}/man8/home_proxy.8*
120
121 %files devel
122 %defattr(644,root,root,755)
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
127 %{_includedir}/home
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libhome.a
132 %{_libdir}/libnss_home_proxy.a
This page took 0.057402 seconds and 2 git commands to generate.