SHA256
1
0
forked from pool/expat
OBS User unknown 2007-07-27 13:34:45 +00:00 committed by Git OBS Bridge
parent 55ba9610f8
commit 899581d98b
2 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 25 11:29:59 CEST 2007 - prusnak@suse.cz
- move libraries from /usr/lib to /lib [#285472]
- replace deprecated %run_ldconfig with /sbin/ldconfig
-------------------------------------------------------------------
Thu Jun 7 16:46:32 CEST 2007 - prusnak@suse.cz

View File

@ -12,7 +12,7 @@
Name: expat
Version: 2.0.1
Release: 1
Release: 10
Group: Development/Libraries/C and C++
License: X11/MIT
URL: http://expat.sourceforge.net/
@ -124,22 +124,30 @@ cp %{S:1} .
rm -f examples/*.dsp
%build
%configure
%configure \
--libdir=/%{_lib}
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm doc/xmlwf.1
rm -f $RPM_BUILD_ROOT/%{_libdir}/libexpat.la
mkdir -p $RPM_BUILD_ROOT%{_libdir}
# move .a file to /usr
mv $RPM_BUILD_ROOT/%{_lib}/libexpat.a $RPM_BUILD_ROOT%{_libdir}/libexpat.a
# move .so symlink to /usr
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.so
ln -sf /%{_lib}/libexpat.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libexpat.so
# remove .la file
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libexpat1
%run_ldconfig
/sbin/ldconfig
%postun -n libexpat1
%run_ldconfig
/sbin/ldconfig
%files
%defattr(-, root, root)
@ -150,7 +158,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n libexpat1
%defattr(-, root, root)
%{_libdir}/libexpat.so.*
/%{_lib}/libexpat.so.*
%files -n libexpat-devel
%defattr(-, root, root)
@ -159,6 +167,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libexpat.so
%changelog
* Wed Jul 25 2007 - prusnak@suse.cz
- move libraries from /usr/lib to /lib [#285472]
- replace deprecated %%run_ldconfig with /sbin/ldconfig
* Thu Jun 07 2007 - prusnak@suse.cz
- update to 2.0.1:
( from Changes )