Add rpm packages for capi library 92/239492/7
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 27 Jul 2020 06:02:35 +0000 (15:02 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Fri, 31 Jul 2020 05:23:53 +0000 (14:23 +0900)
Change-Id: Ie4c25ca22706651badb47632dcc129ec0d945963
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
packaging/tizen-theme-manager.spec
src/api/CMakeLists.txt
src/api/capi-appfw-tizen-theme.pc.in [new file with mode: 0644]

index f71964e..a0d9f26 100644 (file)
@@ -28,6 +28,21 @@ BuildRequires:  zip
 %description
 Tizen Theme Manager
 
+%package -n capi-appfw-tizen-theme
+Summary:  Tizen Theme Manager API
+Requires: %{name} = %{version}
+
+%description -n capi-appfw-tizen-theme
+The Tizen Theme Manager API provides functions to load theme info or
+set current theme.
+
+%package -n capi-appfw-tizen-theme-devel
+Summary:  Tizen Theme Manager API (Development package)
+Requires: %{name} = %{version}
+
+%description -n capi-appfw-tizen-theme-devel
+The Tizen Theme Manager API provides functions to load theme info or
+set current theme.
 
 %prep
 %setup -q
@@ -93,15 +108,23 @@ systemctl disable %{name}
 %manifest %{name}.manifest
 %license LICENSE
 %{_bindir}/*
-%{_libdir}/libcapi-appfw-tizen-theme.so*
 %{_libdir}/libtizen-theme.so
 %{_libdir}/libtizen-theme-provider.so
-%{_includedir}/tizen-theme/*.h
 %{_sysconfdir}/package-manager/parserlib/metadata/libtizen-theme-plugin.so
 %{_datarootdir}/parser-plugins/tizen-theme-plugin.info
 %{_unitdir}/%{name}.service
 %{_sysconfdir}/dbus-1/system.d/%{name}.conf
 
+%files -n capi-appfw-tizen-theme
+%manifest %{name}.manifest
+%{_libdir}/libcapi-appfw-tizen-theme.so.*
+
+%files -n capi-appfw-tizen-theme-devel
+%manifest %{name}.manifest
+%{_libdir}/libcapi-appfw-tizen-theme.so
+%{_includedir}/tizen-theme/*.h
+%{_libdir}/pkgconfig/capi-appfw-tizen-theme.pc
+
 #################################################
 # tizen-theme-manager-gcov
 #################################################
index c24b3a6..aa7a69f 100644 (file)
@@ -14,6 +14,8 @@ APPLY_PKG_CONFIG(${TARGET_TIZEN_THEME_API} PUBLIC
   DLOG_DEPS
 )
 
+CONFIGURE_FILE(capi-appfw-tizen-theme.pc.in capi-appfw-tizen-theme.pc @ONLY)
+INSTALL(FILES capi-appfw-tizen-theme.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 INSTALL(TARGETS ${TARGET_TIZEN_THEME_API} DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/tizen-theme/
         FILES_MATCHING PATTERN "*.h")
diff --git a/src/api/capi-appfw-tizen-theme.pc.in b/src/api/capi-appfw-tizen-theme.pc.in
new file mode 100644 (file)
index 0000000..c6e9b6a
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=@PREFIX@
+libdir=@LIBDIR@
+includedir=@INCLUDEDIR@
+
+Name: capi-appfw-tizen-theme
+Description: Tizen theme manager library
+Version: @FULLVER@
+Requires: capi-base-common
+Libs: -L${libdir} -lcapi-appfw-tizen-theme
+Cflags: -I${includedir}/tizen-theme/