diff --git a/compat-libuv010.spec b/compat-libuv010.spec index 9f0cbe9..07b6ced 100644 --- a/compat-libuv010.spec +++ b/compat-libuv010.spec @@ -5,7 +5,7 @@ Name: compat-libuv010 Epoch: 1 Version: 0.10.33 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Platform layer for node.js - compatibility library for nodejs 0.10.x Group: System Environment/Libraries @@ -50,8 +50,12 @@ mv out out-static %install # Copy the shared lib into the libdir -mkdir -p %{buildroot}/%{_libdir}/ +mkdir -p %{buildroot}/%{_libdir}/%{name} cp out-shared/Release/obj.target/libuv.so %{buildroot}/%{_libdir}/libuv.so.%{sover} +pushd %{buildroot}%{_libdir}/%{name} +ln -sf ../libuv.so.0.10 libuv.so.%{sover} +ln -sf ../libuv.so.0.10 libuv.so +popd # Copy the headers into the include path mkdir -p %{buildroot}/%{_includedir}/%{name}/uv-private @@ -71,7 +75,7 @@ mkdir -p %{buildroot}/%{_libdir}/pkgconfig sed -e "s#@prefix@#%{_prefix}#g" \ -e "s#@exec_prefix@#%{_exec_prefix}#g" \ - -e "s#@libdir@#%{_libdir}#g" \ + -e "s#@libdir@#%{_libdir}/%{name}#g" \ -e "s#@includedir@#%{_includedir}/%{name}#g" \ -e "s#@version@#%{version}#g" \ %SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc @@ -88,12 +92,16 @@ sed -e "s#@prefix@#%{_prefix}#g" \ %files %doc README.md AUTHORS LICENSE %{_libdir}/libuv.so.%{sover} +%{_libdir}/%{name} %files devel %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/%{name} %changelog +* Sat Feb 21 2015 T.C. Hollingsworth - 1:0.10.33-4 +- add compat symlinks in seperate directory + * Thu Feb 19 2015 T.C. Hollingsworth - 1:0.10.33-3 - fix issues with pkgconfig file and Group tag reported by Michael Schwendt diff --git a/libuv.pc.in b/libuv.pc.in index d16544f..3c204dc 100644 --- a/libuv.pc.in +++ b/libuv.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: libuv Description: Development libraries for libuv Version: @version@ -Libs: -L${libdir} -l:libuv.so.0.10 -lrt -ldl +Libs: -L${libdir} -luv -lrt -ldl Cflags: -I{includedir} URL: http://libuv.org/ \ No newline at end of file