diff options
author | Kim Kibum <kb0929.kim@samsung.com> | 2012-04-09 12:12:28 +0900 |
---|---|---|
committer | Kim Kibum <kb0929.kim@samsung.com> | 2012-04-09 12:12:28 +0900 |
commit | d940e900bc3832bc9408a0947ff488ecfcc9a8e6 (patch) | |
tree | 20e5a09fbe71ea36026653c9af69025dc2d6a7d4 /packaging | |
parent | 2cba587e166f439be6a3e4e607d949b98475dde9 (diff) | |
download | libug-setting-theme-efl-d940e900bc3832bc9408a0947ff488ecfcc9a8e6.tar.gz libug-setting-theme-efl-d940e900bc3832bc9408a0947ff488ecfcc9a8e6.tar.bz2 libug-setting-theme-efl-d940e900bc3832bc9408a0947ff488ecfcc9a8e6.zip |
Tizen release 1.0
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/libug-setting-theme-efl.spec | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/packaging/libug-setting-theme-efl.spec b/packaging/libug-setting-theme-efl.spec new file mode 100644 index 0000000..d0a3eba --- /dev/null +++ b/packaging/libug-setting-theme-efl.spec @@ -0,0 +1,101 @@ +%define PREFIX /opt/ug + +Name: libug-setting-theme-efl +Summary: ug theme setting efl library +Version: 0.1.0 +Release: 2 +Group: TBD +License: Samsung +Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(ui-gadget) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(vconf) +BuildRequires: pkgconfig(aul) +BuildRequires: pkgconfig(efreet-mime) +BuildRequires: pkgconfig(eina) +BuildRequires: cmake +BuildRequires: gettext-tools +BuildRequires: edje-tools +Requires(post): /sbin/ldconfig +Requires(post): /usr/bin/vconftool +requires(postun): /sbin/ldconfig +%description +ug theme setting efl library. + + +%prep +%setup -q + +%build +LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed";export LDFLAGS +cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} +make %{?jobs:-j%jobs} + +%install +%make_install + + +%find_lang ug-setting-theme-efl + +%post +/sbin/ldconfig + +GOPTION="-g 6514" +WIDGET_THEME="" +SELECTED_THEME="" +EDJ_SEPARATOR=":" +THEME_PATH="/usr/share/elementary/themes/" +GREY_HD="grey-hd" +BLACK_HD="tizen-black-hd" +WHITE_HD="tizen-hd" +EDJ_EXT=".edj" +EDJ_GREY_HD=$THEME_PATH$GREY_HD$EDJ_EXT +EDJ_BLACK_HD=$THEME_PATH$BLACK_HD$EDJ_EXT +EDJ_WHITE_HD=$THEME_PATH$WHITE_HD$EDJ_EXT + +if [ -e $EDJ_GREY_HD ] +then + WIDGET_THEME=$EDJ_GREY_HD + SELECTED_THEME=$GREY_HD +fi + +if [ -e $EDJ_BLACK_HD ] +then + if [ $WIDGET_THEME ] + then + WIDGET_THEME=$WIDGET_THEME$EDJ_SEPARATOR$EDJ_BLACK_HD + else + WIDGET_THEME=$EDJ_BLACK_HD + SELECTED_THEME=$BLACK_HD + fi +fi + +if [ -e $EDJ_WHITE_HD ] +then + if [ $WIDGET_THEME ] + then + WIDGET_THEME=$WIDGET_THEME$EDJ_SEPARATOR$EDJ_WHITE_HD + else + WIDGET_THEME=$EDJ_WHITE_HD + SELECTED_THEME=$WHITE_HD + fi +fi + +if [ $WIDGET_THEME ] +then + vconftool $GOPTION set -t string db/setting/widget_theme $WIDGET_THEME + vconftool $GOPTION set -t string db/setting/selected_theme $SELECTED_THEME +fi + +vconftool $GOPTION set -t string db/setting/theme "default" + + +%postun -p /sbin/ldconfig + +%files -f ug-setting-theme-efl.lang +/opt/ug/lib/libug-setting-theme-efl.so +/opt/ug/lib/libug-setting-theme-efl.so.0.1.0 +/opt/ug/res/edje/ug-setting-theme-efl/setting-theme-efl.edj +/opt/ug/res/images/ug-setting-theme-efl/tizen-black.png +/opt/ug/res/images/ug-setting-theme-efl/tizen.png |