Apply tizen patches 76/230276/3 submit/tizen/20200410.030609
authorHyunil <hyunil46.park@samsung.com>
Thu, 9 Apr 2020 05:54:46 +0000 (14:54 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 9 Apr 2020 06:00:33 +0000 (15:00 +0900)
- Install crypto_types.h to devel package for gstwebrtc-demo app

Change-Id: Ie0e36aab7117f64f7d00081b489e7d2b61e93fae
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
CMakeLists.txt
packaging/libsrtp.manifest [new file with mode: 0644]
packaging/libsrtp.spec [new file with mode: 0644]

index 5ce9f56..6a3505a 100644 (file)
@@ -188,6 +188,7 @@ install(TARGETS srtp2 DESTINATION lib)
 install(FILES include/srtp.h crypto/include/auth.h
   crypto/include/cipher.h
   crypto/include/cipher_types.h
+  crypto/include/crypto_types.h
   DESTINATION include/srtp2)
 
 if(TEST_APPS)
@@ -204,3 +205,22 @@ endif()
   target_link_libraries(srtp_driver srtp2)
   add_test(srtp_driver srtp_driver -v)
 endif()
+
+# PC
+set(fw_name "libsrtp2")
+set(prefix /usr)
+set(exec_prefix /usr)
+set(libdir ${LIB_INSTALL_DIR})
+set(includedir /usr/include)
+set(PC_NAME ${fw_name})
+set(VERSION ${FULLVER})
+set(PC_LDFLAGS -l${fw_name})
+set(PC_CFLAGS -I${includedir})
+
+configure_file(
+        libsrtp2.pc.in
+        ${CMAKE_CURRENT_SOURCE_DIR}/libsrtp2.pc
+        @ONLY
+)
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libsrtp2.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+
diff --git a/packaging/libsrtp.manifest b/packaging/libsrtp.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libsrtp.spec b/packaging/libsrtp.spec
new file mode 100644 (file)
index 0000000..5c84a90
--- /dev/null
@@ -0,0 +1,53 @@
+Name:       libsrtp
+Summary:    This package provides an implementation of the Secure Real-time Transport Protocol (SRTP)
+Version:    2.3.0
+Release:    1
+Group:      Multimedia/Libraries
+License:    BSD-3-Clause
+Source0:    %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(glib-2.0)
+
+%description
+This package provides an implementation of the Secure Real-time Transport Protocol
+
+%package devel
+Summary:    libsrtp headers and libraries for development.
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+libsrtp headers and libraries for development.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%cmake . -DFULLVER=%{version}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_bindir}
+
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%{_libdir}/*.so
+%exclude %{_libdir}/debug
+
+%files devel
+%manifest %{name}.manifest
+%{_includedir}/srtp2/*
+%{_libdir}/pkgconfig/*.pc
+