![]() |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Ooops, sorry now looked you output again and you are right, it not created rpm file. You do something wrong.
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
I used your SPEC file - should I have changed/removed anything or can I use your file as it is? I have added or removed '/' from different lines, hance the different results I keep getting. I've got muddled again. NielDK mentions about each operation in the spec file requiring a '/' before the % - in say /%files and that each line you want used, must start with '/' - but it's understanding which ones to '/' and which ones to leave as just '%' Any information is gratefully received. Regards |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
if you used my zip from the first post, you don't need to change nothing i the spec file.
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
I checked my example zip from the first post and found that I can't unzip directly on the phone. Unzip command converted folder inside zip archive to simple file, why I don't know... I suggest you extract it on your PC.
Here is output of creating rpm from this files and with NOT changed .spec file, just download zip -> extract on your PC -> transfer to the phone to correct location -> create rpm: Code:
[root@Jolla ~]# /bin/cp -rf /root/rpmbuild/BUILD/myfirstpackage-0.1-1.arm /root/rpmbuild/BUILDROOT Code:
[root@Jolla rpmbuild]# ls /root/rpmbuild/RPMS/armv7hl | grep myfirst |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Thanks Schturman,
Lol, I finally spotted the SPEC file in your example package. Don't know how I missed it! So I ended up copying and pasting from the 'spec file example' you laid out in your first post (thinking it would be the same as the proper spec file you provided). Eyes open, mind closed!!, doh! (I now know you were only showing uses for strings in your example). Brilliant!, I now have your theme on my phone and I like it, although I have a preference for my AllBlack ambience ;) I can now go back and start creating resources for my next ambience, perhaps AllBlack2..??, ;) A second file for my Openrepo account! :) Thanks again Schturman!, much appreciated. |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
no problem, good luck ;)
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
NielDK mentioned about needing to put a '/' in the '%files' section of SPEC file. I am now looking at your SPEC file for 'myfirstpackage' and none of your entries contain a '/' in the '%files' section yet it does work and produces the RPM package. I have edited your SPEC file for the purpose of creating my own ambience, I have not made any changes to the SPEC %files section, only name changes, URL, etc and yet upon going through the process, I am getting this error from rpmbuild; Code:
root@Jolla rpmbuild]# rpmbuild -bb SPECS/allblack2.spec Here's my spec file (your original one but altered), maybe you can see where I'm going wrong. Code:
Name: allblack2 Regards, |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
It explained in the first post...
If you don't need special permission, you can write your files under %files for example in my spec I added my files a special permission and put it under: %defattr(-,root,root,-) But you can change it like this: Code:
%files Code:
%defattr(-,root,root,-) |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
I'm still baffled by one problem which occurs occasionally, the RPM is created, installs but does not show in Gallery/Ambience, even after reboot or restarting ambienced.service, etc, etc. So, I cleared out all folders in /root/rpmbuild/BUILD, SPECS and so on until all were empty and started again, after that, the RPM once installed, then works!?, go figure!. Maybe some files are getting muddled??, I don't get any errors except one that goes something like this; "Warning: Could not canonicalise the name Jolla",.... but I researched and it appears I can ignore it, which seems right, as ALL of the RPMs I've made, have all had that warning but most install and work. Hmmmm, any ideas? :confused: Anyway, I know more than I did a month ago, thanks Schturman, your input is invaluable Regards |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
I don't know why it not worked for you from the first time, but it should...
I used this command in %post line for restart service in all my ambience packages and it always worked immediately without reboot etc.. Code:
systemctl-user restart ambienced.service Code:
Name: ambience-green-hexagon |
All times are GMT. The time now is 08:10. |
vBulletin® Version 3.8.8