packaging: support smack manifest and cleanup 66/26666/1 sandbox/pcoval/tizen
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 27 Aug 2014 13:21:59 +0000 (15:21 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 27 Aug 2014 13:21:59 +0000 (15:21 +0200)
Change-Id: I2f64f8710995c54f528e8df705ef127e289a01a2
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/libwebsockets.manifest [new file with mode: 0644]
packaging/libwebsockets.spec

diff --git a/packaging/libwebsockets.manifest b/packaging/libwebsockets.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
index fbfbe26..006e6a7 100644 (file)
@@ -1,11 +1,12 @@
 Name:       libwebsockets
 Summary:    WebSocket Library
 Version:    1.2
-Release:    1
+Release:    0
 Group:      System/Libraries
 License:    LGPLv2.1
 URL:        http://git.warmcat.com/cgi-bin/cgit/libwebsockets/
 Source0:    %{name}-%{version}.tar.bz2
+Source1001: %{name}.manifest
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 BuildRequires: zlib-devel
@@ -26,12 +27,15 @@ Development files needed for building websocket clients and servers
 
 %prep
 %setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
 
 %build
 
 %cmake -DWITH_SSL=On -DWITH_SD_DAEMON=ON
 
-make %{?jobs:-j%jobs}
+%__make %{?_smp_mflags}
+
 
 %install
 rm -rf %{buildroot}
@@ -43,12 +47,14 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
+%manifest %{name}.manifest
 %{_bindir}/libwebsockets*
 %{_libdir}/libwebsockets*.so.*
 %{_datadir}/libwebsockets-test-server/*
 
 %files devel
 %defattr(-,root,root,-)
+%manifest %{name}.manifest
 %{_includedir}/libwebsockets.h
 %{_libdir}/libwebsockets.so
 %{_libdir}/pkgconfig/*