![]() |
[How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Hi.
Can someone explain/teach me how to correctly create .rpm file from the source (tar.gz) directly on the Jolla tablet/phone, if it possible at all ? I don't have/use SDK... For example, I want to create purple-facebook package for tablet, on the tablet itself. Here is the source https://github.com/dequis/purple-fac...g/3d30d24fdbef that @nodevel used to create package for the phone. Usualy I use a simple tamplate for creating packages on the phone and tablet without using a source, I just create a full path with files like: Code:
/root/rpmbuild/BUILD/homerefresh-0.1-4.i386 Here I wrote a guide how to do this: http://talk.maemo.org/showthread.php?t=92963 by using a simple .spec file inside /root/rpmbuild/SPECS, for example: Code:
Name: myfirstpackage Can someone create a template for this ? Full step by step guide ? Thanks |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Basicalky what you are missing, in the spec file:
if the tar.gz file in SOURCES is myfile.tar.gz Source: myfile.tar.gz |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Quote:
Code:
%prep Code:
%prep And so on... Code:
%build Code:
%files Code:
%pre %changelog, under or before %clean Section ? After this a creating rpm ? Code:
rpm -ba cdplayer-1.0.spec |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Well everything is explained quite nice in your link.
You dont build with rpm, you use rpmbuild ;) I also suggest looking in build.merproject.org to get ideas on how to use the spec file. |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Thanks @Nieldk, but it explained quite nice for people who understand this stuff and not really for noobies like me ;)
Before I posted here my question for template/explanation, I have read this site and few other... Thanks anyway. |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Quote:
You will quickly learn about dependencies and other things that needs to be addressed in the spec file. |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Thank you! Waiting to try it :)
|
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Nieldk, Hi. Any news ?
|
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Quote:
Here is a 'sample' spec file. You will probably learn fast that changes are needed ;) Code:
Name: sample |
Re: [How to] Creating rpm file from the source (tar.gz) file directly on the Jolla tablet/phone ?
Thanks Nieldk! I will try it.
But I have a few questions: 1. Release: 1%{?dist} What this 1%{?dist} ? It mean the spec file will read this number from source package ? Or I can just write the release number that I want ? 2. Source0: http://www.sample.org/samle/%{name}-%{version}.tar.gz If I already have tar.gz file, can I just put it to /root/rpmbuild/SOURCES folder and write it as is, for example: Code:
Source0: /root/rpmbuild/SOURCES/purple-facebook-3d30d24fdbef.tar.gz How I check what libraries my package need ? 4. Requires: somerequireddependenciesforapplication How I check what requires my package need ? 5. make %{?_smp_mflags} What it mean ? I need leave it as you wrote ? or I need change it {?_smp_mflags} to something ? Thanks |
All times are GMT. The time now is 21:56. |
vBulletin® Version 3.8.8