summaryrefslogtreecommitdiff
path: root/packaging/media-server.spec
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 22:32:09 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 22:32:09 +0900
commit1e44221f291c9143ebb854771b6c4f1cf2b08484 (patch)
treea8ed813549138be44d87faf963ed24995bd2ee56 /packaging/media-server.spec
parentac1a42680c361e54efd365bdd104521e6bf7d35d (diff)
downloadmedia-server-1e44221f291c9143ebb854771b6c4f1cf2b08484.tar.gz
media-server-1e44221f291c9143ebb854771b6c4f1cf2b08484.tar.bz2
media-server-1e44221f291c9143ebb854771b6c4f1cf2b08484.zip
Diffstat (limited to 'packaging/media-server.spec')
-rwxr-xr-x[-rw-r--r--]packaging/media-server.spec88
1 files changed, 53 insertions, 35 deletions
diff --git a/packaging/media-server.spec b/packaging/media-server.spec
index e27e717..dced0a0 100644..100755
--- a/packaging/media-server.spec
+++ b/packaging/media-server.spec
@@ -1,29 +1,34 @@
Name: media-server
Summary: File manager service server.
-Version: 0.1.90
+Version: 0.2.89
Release: 1
Group: utils
-License: Samsung
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: media-server.service.wearable
+Source2: media-scanner.service.wearable
+Source3: media-server.service.mobile
Requires(post): /usr/bin/vconftool
+Requires: deviced
+
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(drm-client)
-BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(pmapi)
-BuildRequires: pkgconfig(heynoti)
BuildRequires: pkgconfig(dbus-glib-1)
+BuildRequires: pkgconfig(sqlite3)
+BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(deviced)
+BuildRequires: pkgconfig(security-server)
+BuildRequires: pkgconfig(notification)
+
%description
Description: File manager service server
-
%package -n libmedia-utils
Summary: media server runtime library.
Group: TO_BE/FILLED_IN
-Requires: %{name} = %{version}-%{release}
%description -n libmedia-utils
Description : media server runtime library.
@@ -42,31 +47,62 @@ Description: media server development library.
%build
+export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
+export CFLAGS+=" ${GC_SECTIONS_FLAGS}"
+export CXXFLAGS+=" ${GC_SECTIONS_FLAGS}"
+
+%if 0%{?sec_build_binary_debug_enable}
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
+export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+%endif
+
%autogen
+
%configure --prefix=%{_prefix} --disable-static
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
-%post
-vconftool set -t int db/filemanager/dbupdate "1"
-vconftool set -t int memory/filemanager/Mmc "0" -i
+mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
+install -m 644 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/media-server.service
+ln -s ../media-server.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/media-server.service
-vconftool set -t string db/private/mediaserver/mmc_info ""
+install -m 644 %{SOURCE2} %{buildroot}/usr/lib/systemd/system/media-scanner.service
+#ln -s ../media-scanner.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/media-scanner.service
+mkdir -p %{buildroot}/usr/etc
+cp -rf %{_builddir}/%{name}-%{version}/media-server-plugin %{buildroot}/usr/etc/media-server-plugin
+
+#License
+mkdir -p %{buildroot}/%{_datadir}/license
+cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
+cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/libmedia-utils
+
+%post
+vconftool set -t int db/filemanager/dbupdate "1" -f -s system::vconf_inhouse
+vconftool set -t int memory/filemanager/Mmc "0" -i -f -s system::vconf_inhouse
+vconftool set -t string db/private/mediaserver/mmc_info "" -f -s media-server::vconf
%files
+%manifest media-server.manifest
%defattr(-,root,root,-)
%{_bindir}/media-server
-%attr(755,-,-) %{_sysconfdir}/rc.d/init.d/mediasvr
-/etc/rc.d/rc3.d/S99mediasvr
-/etc/rc.d/rc5.d/S99mediasvr
-/usr/local/bin/reset_mediadb.sh
+%{_bindir}/media-scanner
+%{_bindir}/mediadb-update
+/usr/lib/systemd/system/media-server.service
+/usr/lib/systemd/system/multi-user.target.wants/media-server.service
+/usr/lib/systemd/system/media-scanner.service
+#/usr/lib/systemd/system/multi-user.target.wants/media-scanner.service
+/usr/etc/media-server-plugin
+#License
+%{_datadir}/license/%{name}
+%{_datadir}/license/libmedia-utils
%files -n libmedia-utils
+%manifest libmedia-utils.manifest
%defattr(-,root,root,-)
%{_libdir}/libmedia-utils.so
%{_libdir}/libmedia-utils.so.0
@@ -77,21 +113,3 @@ vconftool set -t string db/private/mediaserver/mmc_info ""
%{_libdir}/pkgconfig/libmedia-utils.pc
%{_includedir}/media-utils/*.h
-%changelog
-* Mon Aug 06 2012 Yong Yeon Kim <yy9875.kim@samsnug.com> - 0.1.86
-- add notification subscribe function for application
-- fix bug : once validity checking time, call insert_item_batch two times.
-- add MS_SAFE_FREE Macro, modify check value after using snprintf by secure coding guide
-- change macro name MS_PHONE_ROOT_PATH, MS_MMC_ROOT_PATH
-- make reference directory list by each thread
-
-* Tue Jul 03 2012 Yong Yeon Kim <yy9875.kim@samsnug.com> - 0.1.80
-- manage db handle by plug-in
-
-* Wed Jun 27 2012 Yong Yeon Kim <yy9875.kim@samsnug.com> - 0.1.79
-- If item exists in media db, return directly
-
-* Tue Jun 26 2012 Yong Yeon Kim <yy9875.kim@samsnug.com> - 0.1.78
-- change modified file updating routine (delete & insert -> refresh)
-- modify return error type of media_file_register
-