Clean up files. 46/19346/2
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 11 Apr 2014 02:43:23 +0000 (11:43 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Sat, 12 Apr 2014 03:25:31 +0000 (12:25 +0900)
Invalid file permissions are corrected.
spec file is corrected. (remove complains of RPMLINT)
Make the data directory for labeling of SMACK.

 * Path for MULTIUSER (TZ_XXX) is not applied yet.

Change-Id: Idfed46778bfae3f2bda284db92b310db3ea9de46

CMakeLists.txt
LICENSE.Flora [changed mode: 0755->0644]
include/image-viewer.h [changed mode: 0755->0644]
org.tizen.image-viewer.rule [changed mode: 0755->0644]
org.tizen.image-viewer.xml [changed mode: 0755->0644]
packaging/org.tizen.image-viewer.spec [changed mode: 0755->0644]
res/appicon/org.tizen.image-viewer.png [changed mode: 0755->0644]
res/layout/iv-main.edc [changed mode: 0755->0644]
src/image-viewer.c [changed mode: 0755->0644]

index 004bb9c..c4bad31 100755 (executable)
@@ -1,7 +1,7 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(image-viewer C)
 
-SET(PKG_NAME org.tizen.image-viewer)
+SET(PKG_NAME org.tizen.${PROJECT_NAME})
 
 SET(SRCS
        src/image-viewer.c
@@ -37,7 +37,6 @@ ADD_DEFINITIONS("-DSLP_DEBUG")
 
 # install desktop file & icon
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-
 SET(BINDIR "${PREFIX}/bin")
 SET(RESDIR "${PREFIX}/res")
 SET(DATADIR "${PREFIX}/data")
@@ -45,9 +44,12 @@ SET(LOCALEDIR "${RESDIR}/locale")
 SET(ICONDIR "/usr/share/icons/default/small")
 SET(EDJDIR "${RESDIR}/edje")
 
+FILE(MAKE_DIRECTORY data)
+
 INSTALL(FILES ${PKG_NAME}.xml DESTINATION /usr/share/packages)
 INSTALL(FILES ${PKG_NAME}.rule DESTINATION /opt/etc/smack/accesses.d)
 INSTALL(DIRECTORY DESTINATION ${DATADIR})
+INSTALL(DIRECTORY "data" DESTINATION /opt/usr/apps/${PKG_NAME})
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/appicon/${PKG_NAME}.png DESTINATION ${ICONDIR})
 
 ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
@@ -73,7 +75,6 @@ BUILD_EDJ(iv-main.edc                         iv-main.edj                     res/layout              images)
 
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-
 INSTALL(FILES LICENSE.Flora DESTINATION /usr/share/license RENAME ${PKG_NAME})
 
-
+# Create data directory
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 14c938b..49d698e
@@ -1,62 +1,54 @@
-Name:       org.tizen.image-viewer
-Summary:    Image Viewer Application v1.0
-Version:    1.0.83
-Release:    1
-Group:      misc
-License:    Flora Software License
-
-Source0:    %{name}-%{version}.tar.gz
-Source1001:    org.tizen.image-viewer.manifest
+Name: org.tizen.image-viewer
+Summary: Image Viewer
+Version: 1.0.83
+Release: 1
+Group: Applications/Photo
+License: Flora
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(edje)
+BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(ecore-x)
+BuildRequires: pkgconfig(ecore-input)
+BuildRequires: pkgconfig(bundle)
+BuildRequires: pkgconfig(sensor)
+BuildRequires: pkgconfig(ui-gadget-1)
+BuildRequires: pkgconfig(utilX)
+BuildRequires: pkgconfig(appsvc)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: cmake
+BuildRequires: edje-bin
+BuildRequires: embryo-bin
 Requires: pkgmgr
-BuildRequires:  pkgconfig(appcore-efl)
-BuildRequires:  pkgconfig(elementary)
-BuildRequires:  pkgconfig(edje)
-BuildRequires:  pkgconfig(evas)
-BuildRequires:  pkgconfig(ecore)
-BuildRequires:  pkgconfig(ecore-x)
-BuildRequires:  pkgconfig(ecore-input)
-BuildRequires:  pkgconfig(bundle)
-BuildRequires:  pkgconfig(sensor)
-BuildRequires:  pkgconfig(ui-gadget-1)
-BuildRequires:  pkgconfig(utilX)
-BuildRequires:  pkgconfig(appsvc)
-BuildRequires:  pkgconfig(vconf)
-BuildRequires:  pkgconfig(dlog)
-BuildRequires:  pkgconfig(capi-appfw-application)
-
-BuildRequires:  cmake
-BuildRequires:  edje-bin
-BuildRequires:  embryo-bin
 
 %description
-Image Viewer Application v1.0.
-
-
+Tizen 2.x Reference Application.
+Various kinds of image files are supported.
 
 %prep
 %setup -q -n %{name}-%{version}
 cp %{SOURCE1001} .
 
-
 %build
-
-cmake . -DCMAKE_INSTALL_PREFIX="/usr/apps/org.tizen.image-viewer" -DRESDIR="/usr/apps/org.tizen.image-viewer/res" -DDATADIR="/opt/usr/apps/org.tizen.image-viewer/data"
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}/apps/%{name}/
 make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
 %make_install
-mkdir -p %{buildroot}/usr/share/license
-
+mkdir -p %{buildroot}/%{_datarootdir}/license
 
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
-%manifest org.tizen.image-viewer.manifest
-/opt/etc/smack/accesses.d/org.tizen.image-viewer.rule
-/usr/apps/org.tizen.image-viewer/*
-/usr/share/icons/default/small/org.tizen.image-viewer.png
-/usr/share/packages/org.tizen.image-viewer.xml
-
-/usr/share/license/%{name}
-
+/opt/etc/smack/accesses.d/%{name}.rule
+/opt/usr/apps/%{name}/*
+%{_prefix}/apps/%{name}/*
+%{_datarootdir}/icons/default/small/%{name}.png
+%{_datarootdir}/packages/%{name}.xml
+%{_datarootdir}/license/%{name}
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)