Lines 1-6
Link Here
|
1 |
Name: libpopt |
1 |
Name: libpopt |
2 |
Version: 1.7 |
2 |
Version: 1.7 |
3 |
Release: alt12 |
3 |
Release: alt13 |
4 |
Serial: 1 |
4 |
Serial: 1 |
5 |
%define srcname popt-20020315 |
5 |
%define srcname popt-20020315 |
6 |
|
6 |
|
Lines 88-105
Link Here
|
88 |
%{?_with_apidocs:make doxygen} |
88 |
%{?_with_apidocs:make doxygen} |
89 |
|
89 |
|
90 |
%install |
90 |
%install |
91 |
%__mkdir_p $RPM_BUILD_ROOT/lib |
91 |
%__mkdir_p $RPM_BUILD_ROOT/%_lib |
92 |
%make_install install DESTDIR="$RPM_BUILD_ROOT" |
92 |
%make_install install DESTDIR="$RPM_BUILD_ROOT" |
93 |
|
93 |
|
94 |
%{?_with_apidocs:%__install -p -m644 doxygen/man/man3/popt.h.3 $RPM_BUILD_ROOT%_man3dir/} |
94 |
%{?_with_apidocs:%__install -p -m644 doxygen/man/man3/popt.h.3 $RPM_BUILD_ROOT%_man3dir/} |
95 |
|
95 |
|
96 |
# Relocate shared libraries from %_libdir/ to /lib/. |
96 |
# Relocate shared libraries from %_libdir/ to /%_lib/. |
97 |
for f in $RPM_BUILD_ROOT%_libdir/*.so; do |
97 |
for f in $RPM_BUILD_ROOT%_libdir/*.so; do |
98 |
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'` |
98 |
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'` |
99 |
[ -n "$t" ] |
99 |
[ -n "$t" ] |
100 |
%__ln_s -nf ../../lib/"$t" "$f" |
100 |
%__ln_s -nf ../../%_lib/"$t" "$f" |
101 |
done |
101 |
done |
102 |
%__mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/lib/ |
102 |
%__mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/%_lib/ |
103 |
|
103 |
|
104 |
bzip2 -9 *.ps ||: |
104 |
bzip2 -9 *.ps ||: |
105 |
|
105 |
|
Lines 109-115
Link Here
|
109 |
%postun -p %postun_ldconfig |
109 |
%postun -p %postun_ldconfig |
110 |
|
110 |
|
111 |
%files -f popt.lang |
111 |
%files -f popt.lang |
112 |
/lib/*.so.* |
112 |
/%_lib/*.so.* |
113 |
|
113 |
|
114 |
%files devel |
114 |
%files devel |
115 |
%_libdir/*.so |
115 |
%_libdir/*.so |
Lines 121-126
Link Here
|
121 |
%_libdir/*.a |
121 |
%_libdir/*.a |
122 |
|
122 |
|
123 |
%changelog |
123 |
%changelog |
|
|
124 |
* Mon Jul 26 2004 Kachalov Anton <mouse@altlinux.ru> 1:1.7-alt13 |
125 |
- Change /lib to /%_lib to make compile on x86_64 |
126 |
|
124 |
* Fri May 21 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt12 |
127 |
* Fri May 21 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.7-alt12 |
125 |
- Changed poptBadOption() to return more appropriate value |
128 |
- Changed poptBadOption() to return more appropriate value |
126 |
in case of execCommand() failure (#1928). |
129 |
in case of execCommand() failure (#1928). |