![]() |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Method work like expected, it was my mistake in previous version of vkb :D
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
T.Mavica, here is your .spec file:
Code:
Name: sailfishquickim P.S. 0.1-1: 0.1 = number of Version 1 = number of Release If you change this numbers in folder name, also you need change them in the .spec file. Good luck ;) |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
T.Mavica, detailed explanation for you ;)
1. Connect your phone to WinSCP via SSH connection and open Putty. How to here: http://talk.maemo.org/showthread.php?t=92491 2. Run this command as ROOT: Code:
mkdir -p /root/rpmbuild/{BUILD,BUILDROOT,RPMS/armv7hl,SPECS} 3. Download this spec file to your PC -> transfer it to /root/rpmbuild/SPECS 4. Three commands for creating your package (as ROOT): Code:
/bin/cp -rf /root/rpmbuild/BUILD/sailfishquickim-0.3-1.arm /root/rpmbuild/BUILDROOT 5. Transfere it where you want, for example to Downloads folder: Code:
/bin/cp -f /root/rpmbuild/RPMS/armv7hl/sailfishquickim-0.3-1.armv7hl.rpm /home/nemo/Downloads Code:
pkcon install-local -y /home/nemo/Downloads/sailfishquickim-0.3-1.armv7hl.rpm Code:
pkcon remove sailfishquickim So, if you want to update your package, some steps: 1. Change version number of your folder, for example from sailfishquickim-0.3-1.arm to sailfishquickim-0.4-1.arm or sailfishquickim-0.3-2.arm Where is: 0.3-1: 0.3 = number of Version 1 = number of Release 2. Change to the SAME version in the .spec file. For example: From this: Code:
Name: sailfishquickim Code:
Name: sailfishquickim Code:
Name: sailfishquickim 4. Create new RPM package That's all :D |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Hi Schturman,
wonder if you can help, after entering the line Code:
rpmbuild -bb SPECS/myfirstpackage.spec Code:
[nemo@Jolla rpmbuild]$ rpmbuild -bb SPECS/myfirstpackage.spec Regards, |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
Code:
RPM build errors: Thanks for your help, it's much appreciated NielDK. Regards, |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
post a full spec file and we will fix it ;)
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
thanks, but for now, I'm trying to compile your file using your SPEC file, all as an experiment so I can see what is doing what before my eyes. So, as yet, I have no SPEC file of my own, only yours. NielDK kindly answered me and now I have got a bit further. It seems that a line or command in the SPEC file was causing the compiled RPM to get deleted - I'm in a right pickle!, but it's all good and is how I learn! I'm starting again and hopefully this time, I will have an RPM file at the end of it! (I feel like I'm learning another language and not doing very well!) Here is where I'm at now; Code:
[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 Regards, |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
It's good output! You will find created rpm file in: /root/rpmbuild/RPMS/armv7hl
just copy it to you Downloads folder... |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
I will try again, but now for some reason I am hitting permission problems with root/user - I must be doing something wrong, I'm sure I will get there, these journeys are often long for me! :D Thanks Schturman, I'm sure I will be back with more questions! EDIT - Twice I've tried now, the same output you say is good, but still no RPM being created/found in RPMS directory. Regards, |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8