| The Following User Says Thank You to Schturman For This Useful Post: | ||
Name: sailfishquickim
Version: 0.1
Release: 1
Summary: Traditional Chinese input
Group: System/Tools
Vendor: Arthur Artoria
Distribution: SailfisfOS
Packager: Arthur Artoria <arthurartoria@gmail.com>
URL: www.mysite.com
License: GPL
%description
Chinese Traditional Quick Input Method For Sailfish.
%files
%defattr(-,nemo,nemo,-)
/home/nemo/.local/share/maliit-server/QML/OfflineStorage/Databases/*
%defattr(644,root,root,-)
/usr/share/maliit/plugins/com/jolla/layouts/*
%post
if [ $1 = 1 ]; then
#Do stuff specific for first install
echo "It's first time install"
killall maliit-server
killall jolla-messages
killall jolla-email
killall jolla-notes
killall jolla-clock
else
if [ $1 = 2 ]; then
#Do stuff specific to upgrades
killall maliit-server
fi
fi
%postun
if [ $1 = 0 ]; then
#Do stuff specific to uninstalls
rm -rf /usr/share/maliit/plugins/com/jolla/layouts/quickZH
killall maliit-server
else
if [ $1 = 1 ]; then
#Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi
%changelog
* Wed Jan 25 2014 Builder <builder@...> 0.1
- First build.
| The Following User Says Thank You to Schturman For This Useful Post: | ||

mkdir -p /root/rpmbuild/{BUILD,BUILDROOT,RPMS/armv7hl,SPECS}
/bin/cp -rf /root/rpmbuild/BUILD/sailfishquickim-0.3-1.arm /root/rpmbuild/BUILDROOT cd /root/rpmbuild rpmbuild -bb SPECS/sailfishquickim.spec
/bin/cp -f /root/rpmbuild/RPMS/armv7hl/sailfishquickim-0.3-1.armv7hl.rpm /home/nemo/Downloads
pkcon install-local -y /home/nemo/Downloads/sailfishquickim-0.3-1.armv7hl.rpm
pkcon remove sailfishquickim
Name: sailfishquickim Version: 0.3 Release: 1
Name: sailfishquickim Version: 0.4 Release: 1
Name: sailfishquickim Version: 0.3 Release: 2

| The Following 5 Users Say Thank You to Schturman For This Useful Post: | ||
rpmbuild -bb SPECS/myfirstpackage.spec
[nemo@Jolla rpmbuild]$ rpmbuild -bb SPECS/myfirstpackage.spec Processing files: myfirstpackage-0.1-1.armv7hl error: File must begin with "/"
| The Following User Says Thank You to Markkyboy For This Useful Post: | ||
rpmbuild -bb SPECS/myfirstpackage.spec
[nemo@Jolla rpmbuild]$ rpmbuild -bb SPECS/myfirstpackage.spec Processing files: myfirstpackage-0.1-1.armv7hl error: File must begin with "/"
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/share/ambience/myfirstpackage/images/myfirstpackage.jpg
/usr/share/ambience/myfirstpackage/myfirstpackage.ambience
/usr/share/ambience/myfirstpackage/sounds.index
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_Calendar.mp3
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_Clock.mp3
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_Email.mp3
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_IM.mp3
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_Ringtone.mp3
/usr/share/ambience/myfirstpackage/sounds/myfirstpackage_SMS.mp3
| The Following User Says Thank You to Markkyboy For This Useful Post: | ||

[root@Jolla rpmbuild]# rpmbuild -bb SPECS/myfirstpackage.spec Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/myfirstpackage-0.1-1.arm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.C5rTfh + umask 022 + cd /root/rpmbuild/BUILD + /bin/rm -rf /root/rpmbuild/BUILDROOT/myfirstpackage-0.1-1.arm + exit 0 [root@Jolla rpmbuild]#

| The Following User Says Thank You to Markkyboy For This Useful Post: | ||

| The Following User Says Thank You to Markkyboy For This Useful Post: | ||