Dropped .la files

epel9
Erik van Pienbroek 13 years ago
parent 5103b975c1
commit 73a99a9498

@ -4,7 +4,7 @@
Name: mingw-libxml2
Version: 2.7.8
Release: 5%{?dist}
Release: 6%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
@ -93,9 +93,6 @@ make -C build_shared DESTDIR=$RPM_BUILD_ROOT install
make -C build_static DESTDIR=$RPM_BUILD_ROOT/build_static install
mv $RPM_BUILD_ROOT/build_static%{mingw32_libdir}/*.a $RPM_BUILD_ROOT%{mingw32_libdir}
# Manually merge the libtool files
sed -i s/"old_library=''"/"old_library='libxml2.a'"/ $RPM_BUILD_ROOT%{mingw32_libdir}/libxml2.la
# Drop the folder which was temporary used for installing the static bits
rm -rf $RPM_BUILD_ROOT/build_static
@ -104,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
rm -rf $RPM_BUILD_ROOT%{mingw32_docdir}
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc/
# Drop all .la files
find $RPM_BUILD_ROOT -name "*.la" -delete
%files -n mingw32-libxml2
%{mingw32_bindir}/libxml2-2.dll
@ -111,7 +111,6 @@ rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc/
%{mingw32_bindir}/xmlcatalog.exe
%{mingw32_bindir}/xmllint.exe
%{mingw32_libdir}/libxml2.dll.a
%{mingw32_libdir}/libxml2.la
%{mingw32_libdir}/pkgconfig/libxml-2.0.pc
%{mingw32_libdir}/xml2Conf.sh
%{mingw32_includedir}/libxml2
@ -123,6 +122,9 @@ rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc/
%changelog
* Fri Mar 09 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.7.8-6
- Dropped .la files
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 2.7.8-5
- Renamed the source package to mingw-libxml2 (#800440)
- Modernize the spec file

Loading…
Cancel
Save