BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
-%define upgrade_script_path /usr/share/upgrade/scripts
-
%description
Recently used application library
%install
%make_install
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/503.rua_upgrade.sh %{buildroot}%{upgrade_script_path}
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr(-,root,root,-)
%{_libdir}/librua.so.*
%license LICENSE
-%{upgrade_script_path}/503.rua_upgrade.sh
%files devel
%manifest %{name}.manifest
+++ /dev/null
-#!/bin/sh
-
-#------------------------------------------#
-# rua upgrade (2.4 -> 3.0) #
-#------------------------------------------#
-
-# Macro
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-DB_DIR=/opt/dbspace
-DB_RUA=$DB_DIR/.rua.db
-DB_RUA_STAT=$DB_DIR/.rua_stat.db
-
-USR_DB_DIR=/opt/usr/home/owner/.applications/dbspace
-UPGRADE_DB_RUA_STAT=$USR_DB_DIR/.rua_stat.db
-
-# Delete DB & DB journal
-rm -rf $DB_RUA
-rm -rf $DB_RUA-journal
-
-# Copy stat DB & DB journal
-cp -rf $DB_RUA_STAT $USR_DB_DIR
-cp -rf $DB_RUA_STAT-journal $USR_DB_DIR
-
-rm -rf $DB_RUA_STAT
-rm -rf $DB_RUA_STAT-journal
-
-chmod 644 $UPGRADE_DB_RUA_STAT
-chmod 644 $UPGRADE_DB_RUA_STAT-journal
-
-chsmack -a User::Home $UPGRADE_DB_RUA_STAT
-chsmack -a User::Home $UPGRADE_DB_RUA_STAT-journal
-
-chown app_fw:app_fw $UPGRADE_DB_RUA_STAT
-chown app_fw:app_fw $UPGRADE_DB_RUA_STAT-journal
\ No newline at end of file