This commit is contained in:
parent
64c6778747
commit
d6ccf925d0
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 19 04:55:08 CET 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- remove static libraries, shouldnt be needed anymore.
|
||||||
|
- run make check
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de
|
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de
|
||||||
|
|
||||||
|
30
expat.spec
30
expat.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package expat (Version 2.0.1)
|
# spec file for package expat (Version 2.0.1)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: expat
|
Name: expat
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 88
|
Release: 89
|
||||||
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/
|
||||||
@ -106,7 +106,7 @@ Authors:
|
|||||||
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
|
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
|
||||||
Summary: XML Parser Toolkit
|
Summary: XML Parser Toolkit
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libexpat1 = %{version}
|
Requires: libexpat1 = %{version} glibc-devel
|
||||||
|
|
||||||
%description -n libexpat-devel
|
%description -n libexpat-devel
|
||||||
Expat is an XML 1.0 parser written in C. It aims to be fully
|
Expat is an XML 1.0 parser written in C. It aims to be fully
|
||||||
@ -143,30 +143,28 @@ cp %{S:1} .
|
|||||||
rm -f examples/*.dsp
|
rm -f examples/*.dsp
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure --disable-static --with-pic --libdir=/%{_lib}
|
||||||
--libdir=/%{_lib}
|
%{__make} %{?jobs:-j%jobs}
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm doc/xmlwf.1
|
rm doc/xmlwf.1
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
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
|
# move .so symlink to /usr
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.so
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so
|
||||||
ln -sf /%{_lib}/libexpat.so.1 $RPM_BUILD_ROOT%{_libdir}/libexpat.so
|
%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.so
|
||||||
# remove .la file
|
# remove .la file
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -n libexpat1
|
%post -n libexpat1 -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -n libexpat1
|
%postun -n libexpat1 -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -182,10 +180,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files -n libexpat-devel
|
%files -n libexpat-devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libexpat.a
|
|
||||||
%{_libdir}/libexpat.so
|
%{_libdir}/libexpat.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 19 2009 crrodriguez@suse.de
|
||||||
|
- remove static libraries, shouldnt be needed anymore.
|
||||||
|
- run make check
|
||||||
* Wed Dec 10 2008 olh@suse.de
|
* Wed Dec 10 2008 olh@suse.de
|
||||||
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
|
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
|
||||||
(bnc#437293)
|
(bnc#437293)
|
||||||
|
Loading…
Reference in New Issue
Block a user