Lines 1-6
Link Here
|
1 |
Name: pam_userpass |
1 |
Name: pam_userpass |
2 |
Version: 0.9.1 |
2 |
Version: 0.9.1 |
3 |
Release: alt1 |
3 |
Release: alt2 |
4 |
|
4 |
|
5 |
Summary: Pluggable authentication module for USER/PASS-style protocols |
5 |
Summary: Pluggable authentication module for USER/PASS-style protocols |
6 |
License: LGPL |
6 |
License: LGPL |
Lines 69-78
Link Here
|
69 |
%patch -p1 |
69 |
%patch -p1 |
70 |
|
70 |
|
71 |
%build |
71 |
%build |
72 |
%make_build CFLAGS="$RPM_OPT_FLAGS -Iinclude -fPIC -Werror" LDFLAGS= |
72 |
%make_build CFLAGS="$RPM_OPT_FLAGS -Iinclude -fPIC -Werror" SECUREDIR=/%_lib/security LIBDIR=%_libdir LDFLAGS= |
73 |
|
73 |
|
74 |
%install |
74 |
%install |
75 |
%make_install install DESTDIR=$RPM_BUILD_ROOT |
75 |
%make_install install DESTDIR=$RPM_BUILD_ROOT SECUREDIR=/%_lib/security LIBDIR=%_libdir |
76 |
|
76 |
|
77 |
%define docdir %_docdir/%name-%version |
77 |
%define docdir %_docdir/%name-%version |
78 |
|
78 |
|
Lines 84-98
Link Here
|
84 |
%__install -p -m644 conf/example_userpass \ |
84 |
%__install -p -m644 conf/example_userpass \ |
85 |
$RPM_BUILD_ROOT%docdir/example/example_userpass.pamd |
85 |
$RPM_BUILD_ROOT%docdir/example/example_userpass.pamd |
86 |
|
86 |
|
87 |
%__chmod a-x $RPM_BUILD_ROOT/lib/security/*.so* |
87 |
%__chmod a-x $RPM_BUILD_ROOT/%_lib/security/*.so* |
88 |
%add_findprov_lib_path /lib/security |
88 |
%add_findprov_lib_path /%_lib/security |
89 |
|
89 |
|
90 |
%post -n %pam_name -p %post_ldconfig |
90 |
%post -n %pam_name -p %post_ldconfig |
91 |
%postun -n %pam_name -p %postun_ldconfig |
91 |
%postun -n %pam_name -p %postun_ldconfig |
92 |
|
92 |
|
93 |
%files -n %pam_name |
93 |
%files -n %pam_name |
94 |
%_libdir/*.so.* |
94 |
%_libdir/*.so.* |
95 |
/lib/security/* |
95 |
/%_lib/security/* |
96 |
%dir %docdir |
96 |
%dir %docdir |
97 |
%docdir/[A-Z]* |
97 |
%docdir/[A-Z]* |
98 |
|
98 |
|
Lines 106-111
Link Here
|
106 |
%_libdir/*.a |
106 |
%_libdir/*.a |
107 |
|
107 |
|
108 |
%changelog |
108 |
%changelog |
|
|
109 |
* Fri Jul 23 2004 Kachalov Anton <mouse@altlinux.org> 0.9.1-alt2 |
110 |
- Change /lib to /%_lib. Added SECUREDIR and LIBDIR options to make |
111 |
|
109 |
* Sat Jan 03 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.1-alt1 |
112 |
* Sat Jan 03 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.1-alt1 |
110 |
- Updated to 0.9.1 |
113 |
- Updated to 0.9.1 |
111 |
- Deal with compilation warnings generated by new gcc compiler. |
114 |
- Deal with compilation warnings generated by new gcc compiler. |