Clean spec file for Yocto compatibility 26/26326/1 accepted/tizen/ivi/20140913.110054 submit/tizen_ivi/20140912.150940
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 20 Aug 2014 14:32:41 +0000 (16:32 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 20 Aug 2014 14:34:22 +0000 (16:34 +0200)
* Set a valid license tag.
* Use "%__make" macro.

Bug-Tizen: BTY-30
Change-Id: I5a81db968361a1707ee28f7054eeaafb73d835a9
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/libwebsockets.spec

index fbfbe26..db9c42e 100644 (file)
@@ -1,17 +1,17 @@
 Name:       libwebsockets
 Summary:    WebSocket Library
 Version:    1.2
-Release:    1
+Release:    0
 Group:      System/Libraries
-License:    LGPLv2.1
+License:    LGPL-2.1
 URL:        http://git.warmcat.com/cgi-bin/cgit/libwebsockets/
 Source0:    %{name}-%{version}.tar.bz2
-Requires(post): /sbin/ldconfig
+Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
-BuildRequires: zlib-devel
-BuildRequires: openssl-devel
-BuildRequires: cmake
-BuildRequires: pkgconfig(libsystemd-daemon)
+BuildRequires:    zlib-devel
+BuildRequires:    openssl-devel
+BuildRequires:    cmake
+BuildRequires:    pkgconfig(libsystemd-daemon)
 
 %description
 C Websockets Server Library
@@ -31,7 +31,7 @@ Development files needed for building websocket clients and servers
 
 %cmake -DWITH_SSL=On -DWITH_SD_DAEMON=ON
 
-make %{?jobs:-j%jobs}
+%__make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
@@ -52,4 +52,3 @@ rm -rf %{buildroot}
 %{_includedir}/libwebsockets.h
 %{_libdir}/libwebsockets.so
 %{_libdir}/pkgconfig/*
-