forked from pool/expat
This commit is contained in:
parent
55ba9610f8
commit
899581d98b
@ -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
|
Thu Jun 7 16:46:32 CEST 2007 - prusnak@suse.cz
|
||||||
|
|
||||||
|
23
expat.spec
23
expat.spec
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: expat
|
Name: expat
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 1
|
Release: 10
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
License: X11/MIT
|
License: X11/MIT
|
||||||
URL: http://expat.sourceforge.net/
|
URL: http://expat.sourceforge.net/
|
||||||
@ -124,22 +124,30 @@ cp %{S:1} .
|
|||||||
rm -f examples/*.dsp
|
rm -f examples/*.dsp
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure \
|
||||||
|
--libdir=/%{_lib}
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm doc/xmlwf.1
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -n libexpat1
|
%post -n libexpat1
|
||||||
%run_ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libexpat1
|
%postun -n libexpat1
|
||||||
%run_ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -150,7 +158,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files -n libexpat1
|
%files -n libexpat1
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libexpat.so.*
|
/%{_lib}/libexpat.so.*
|
||||||
|
|
||||||
%files -n libexpat-devel
|
%files -n libexpat-devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -159,6 +167,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/libexpat.so
|
%{_libdir}/libexpat.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jun 07 2007 - prusnak@suse.cz
|
||||||
- update to 2.0.1:
|
- update to 2.0.1:
|
||||||
( from Changes )
|
( from Changes )
|
||||||
|
Loading…
Reference in New Issue
Block a user