The Following 4 Users Say Thank You to Schturman For This Useful Post: | ||
![]() |
2016-05-06
, 12:54
|
Posts: 1,298 |
Thanked: 4,322 times |
Joined on Oct 2014
|
#2
|
![]() |
2016-05-06
, 20:09
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#3
|
Basicalky what you are missing, in the spec file:
if the tar.gz file in SOURCES is myfile.tar.gz
Source: myfile.tar.gz
%prep #This section will remove previous version of your package and will unpack a new version from your myfile.tar.gz rm -rf $RPM_BUILD_DIR/cdplayer-1.0 zcat $RPM_SOURCE_DIR/cdplayer-1.0.tgz | tar -xvf -
%prep %setup
%build make %install make install
%files ?
%pre %post %preun %postun
rpm -ba cdplayer-1.0.spec
The Following User Says Thank You to Schturman For This Useful Post: | ||
![]() |
2016-05-06
, 20:56
|
Posts: 1,298 |
Thanked: 4,322 times |
Joined on Oct 2014
|
#4
|
![]() |
2016-05-07
, 11:18
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#5
|
![]() |
2016-05-07
, 15:23
|
Posts: 1,298 |
Thanked: 4,322 times |
Joined on Oct 2014
|
#6
|
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.
![]() |
2016-05-07
, 15:36
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#7
|
![]() |
2016-05-30
, 14:10
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#8
|
![]() |
2016-05-31
, 08:05
|
Posts: 1,298 |
Thanked: 4,322 times |
Joined on Oct 2014
|
#9
|
Name: sample Version: 1.0 Release: 1%{?dist} Summary: A sample application License: GPL URL: http://www.sample.org Source0: http://www.sample.org/samle/%{name}-%{version}.tar.gz BuildRequires: somelibrariesthat are needed Requires: somerequireddependenciesforapplication %description This is my sample application that does nothing. %prep %setup -q -n %build %configure make %{?_smp_mflags} %check make check %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %files %doc README %{_bindir}/* %{_sbindir}/* %{_mandir}/man1/* %changelog * Mon Mar 31 2016 John Doe <jdoe@example.com> 1.0 - Initial release
![]() |
2016-06-03
, 16:21
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#10
|
Source0: /root/rpmbuild/SOURCES/purple-facebook-3d30d24fdbef.tar.gz
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:
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:
Can someone create a template for this ? Full step by step guide ?
Thanks
Lausanne & Lyon de descente...
----------------
Schturman's home page
Schturman's repo on openrepos
RPM packaging directly on your Jolla phone.
Root & User SSH access to Jolla via WinSCP.
Root and User SSH access to Jolla via Nautilus on Linux PC.