ship .pc file, move library back to libdir (#808399)
Resolves: rhbz#808399
This commit is contained in:
parent
1aae02c2dc
commit
12a1f9703b
19
expat.spec
19
expat.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: An XML parser library
|
Summary: An XML parser library
|
||||||
Name: expat
|
Name: expat
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz
|
||||||
URL: http://www.libexpat.org/
|
URL: http://www.libexpat.org/
|
||||||
@ -33,7 +33,7 @@ to develop XML applications with expat.
|
|||||||
rm -rf autom4te*.cache
|
rm -rf autom4te*.cache
|
||||||
libtoolize --copy --force --automake && aclocal && autoheader && autoconf
|
libtoolize --copy --force --automake && aclocal && autoheader && autoconf
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
%configure --libdir=/%{_lib} --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -44,14 +44,7 @@ chmod 644 README COPYING Changes doc/* examples/*
|
|||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
mv $RPM_BUILD_ROOT/%{_lib}/libexpat.so $RPM_BUILD_ROOT%{_libdir}
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la \
|
|
||||||
$RPM_BUILD_ROOT/%{_lib}/pkgconfig/*.pc
|
|
||||||
|
|
||||||
lib=`echo $RPM_BUILD_ROOT/%{_lib}/libexpat.so.*.*`
|
|
||||||
ln -sf ../../%{_lib}/`basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/libexpat.so
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -66,16 +59,20 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README COPYING
|
%doc README COPYING
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
/%{_lib}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc Changes doc examples
|
%doc Changes doc examples
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
|
||||||
|
- ship .pc file, move library back to libdir (#808399)
|
||||||
|
|
||||||
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
|
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 2.1.0-1
|
||||||
- update to 2.1.0 (#806602)
|
- update to 2.1.0 (#806602)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user