View | Details | Raw Unified | Return to bug 5096
Collapse All | Expand All

(-)openpam.spec.orig (-11 / +14 lines)
Lines 1-6 Link Here
1
Name: openpam
1
Name: openpam
2
Version: 20040210
2
Version: 20040210
3
Release: alt1
3
Release: alt2
4
4
5
Summary: Pluggable Authentication Modules Library
5
Summary: Pluggable Authentication Modules Library
6
License: BSD
6
License: BSD
Lines 97-105 Link Here
97
%endif
97
%endif
98
sh -ex ./autogen.sh
98
sh -ex ./autogen.sh
99
%configure \
99
%configure \
100
	--libdir=/lib \
100
	--libdir=/%_lib \
101
	%{subst_enable static} \
101
	%{subst_enable static} \
102
	--with-modules-dir=/lib/security \
102
	--with-modules-dir=/%_lib/security \
103
	--disable-unversioned-modules \
103
	--disable-unversioned-modules \
104
	#
104
	#
105
%make_build
105
%make_build
Lines 115-131 Link Here
115
115
116
# Relocate development libraries from /lib/ to %_libdir/.
116
# Relocate development libraries from /lib/ to %_libdir/.
117
%__mkdir_p $RPM_BUILD_ROOT%_libdir
117
%__mkdir_p $RPM_BUILD_ROOT%_libdir
118
%__mv $RPM_BUILD_ROOT/lib/*.*a $RPM_BUILD_ROOT%_libdir/
118
%__mv $RPM_BUILD_ROOT/%_lib/*.*a $RPM_BUILD_ROOT%_libdir/
119
119
120
for f in $RPM_BUILD_ROOT/lib/libpam*.so; do
120
for f in $RPM_BUILD_ROOT/%_lib/libpam*.so; do
121
	t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
121
	t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
122
	[ -n "$t" ]
122
	[ -n "$t" ]
123
	%__ln_s ../../lib/"$t" "$RPM_BUILD_ROOT%_libdir/${f##*/}"
123
	%__ln_s ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/${f##*/}"
124
	%__rm -f "$f"
124
	%__rm -f "$f"
125
done
125
done
126
126
127
%__chmod a-x $RPM_BUILD_ROOT/lib{,/security}/*.so.*
127
%__chmod a-x $RPM_BUILD_ROOT/%_lib{,/security}/*.so.*
128
%add_findprov_lib_path /lib/security
128
%add_findprov_lib_path /%_lib/security
129
129
130
# OpenPAM-specific rpm macros.
130
# OpenPAM-specific rpm macros.
131
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rpm/macros.d/pam
131
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rpm/macros.d/pam
Lines 148-156 Link Here
148
148
149
%files -n %libpam
149
%files -n %libpam
150
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam
150
%config %_sysconfdir/buildreqs/packages/substitute.d/%libpam
151
/lib/lib*.so.*
151
/%_lib/lib*.so.*
152
/lib/security/pam_deny.so.*
152
/%_lib/security/pam_deny.so.*
153
/lib/security/pam_permit.so.*
153
/%_lib/security/pam_permit.so.*
154
%docdir
154
%docdir
155
155
156
%files -n %libpam-devel
156
%files -n %libpam-devel
Lines 167-172 Link Here
167
%endif # enabled static
167
%endif # enabled static
168
168
169
%changelog
169
%changelog
170
* Mon Aug 30 2004 Anton D. Kachalov <mouse@altlinux.org> 20040210-alt2
171
- Added multilib support
172
170
* Thu Apr 29 2004 Dmitry V. Levin <ldv@altlinux.org> 20040210-alt1
173
* Thu Apr 29 2004 Dmitry V. Levin <ldv@altlinux.org> 20040210-alt1
171
- Updated to 20040210.
174
- Updated to 20040210.
172
- New patches:
175
- New patches:

Return to bug 5096