]> git.pld-linux.org Git - packages/libuv.git/commitdiff
cleanups, update license, soname handled correctly by upstream auto/th/libuv-0.10.13-1
authorElan Ruusamäe <glen@delfi.ee>
Thu, 1 Aug 2013 13:40:39 +0000 (16:40 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 1 Aug 2013 13:41:01 +0000 (16:41 +0300)
libuv.spec

index c31a2762bb62eea366c4df20e2d3f1030a532862..cc1be2626e4628ac70c6e27136c1e40c51a8824a 100644 (file)
@@ -2,13 +2,12 @@
 # Conditional build:
 %bcond_with    tests           # build with tests (require network access)
 
-# git log -1 --pretty=format:%h v0.10.13
-%define git_snapshot 381312e
 Summary:       Platform layer for node.js
 Name:          libuv
 Version:       0.10.13
 Release:       1
-License:       MIT
+# the licensing breakdown is described in detail in the LICENSE file
+License:       MIT and BSD and ISC
 Group:         Development/Tools
 URL:           http://nodejs.org/
 Source0:       http://libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
@@ -34,7 +33,7 @@ Group:                Development/Tools
 Requires:      %{name} = %{version}-%{release}
 
 %description devel
-Development libraries for libuv
+Development libraries for libuv.
 
 %prep
 %setup -q -n %{name}-v%{version}
@@ -49,9 +48,6 @@ CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
        -Dcomponent=shared_library \
        -Dlibrary=shared_library
 
-# Modify the build so it produces a versioned shared library
-sed -i -e "s/libuv.so/libuv.so.%{sover}/g" out/{libuv,run-benchmarks,run-tests}.target.mk
-
 %{__make} V=1 -C out \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
@@ -69,7 +65,7 @@ sed -i -e "s/libuv.so/libuv.so.%{sover}/g" out/{libuv,run-benchmarks,run-tests}.
 rm -rf $RPM_BUILD_ROOT
 # Copy the shared lib into the libdir
 install -d $RPM_BUILD_ROOT%{_libdir}
-cp -p out/Release/obj.target/libuv.so.%{sover} $RPM_BUILD_ROOT%{_libdir}/libuv.so.%{version}
+cp -p out/Release/obj.target/libuv.so $RPM_BUILD_ROOT%{_libdir}/libuv.so.%{version}
 lib=$(basename $RPM_BUILD_ROOT%{_libdir}/libuv.so.*.*.*)
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libuv.so.%{sover}
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libuv.so
@@ -90,7 +86,7 @@ sed -e "s#@prefix@#%{_prefix}#g" \
     -e "s#@exec_prefix@#%{_exec_prefix}#g" \
     -e "s#@libdir@#%{_libdir}#g" \
     -e "s#@includedir@#%{_includedir}#g" \
-    -e "s#@version@#%{version}.git%{git_snapshot}#g" \
+    -e "s#@version@#%{version}#g" \
     %{SOURCE2} > $RPM_BUILD_ROOT%{_pkgconfigdir}/libuv.pc
 
 %clean
@@ -107,7 +103,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc README.md AUTHORS LICENSE
 %{_libdir}/libuv.so
 %{_pkgconfigdir}/libuv.pc
 %{_includedir}/uv.h
This page took 0.165304 seconds and 4 git commands to generate.