View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
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
And inside it /usr/share etc...

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
Version:       0.1
Release:       1
Summary:       My First package
Group:         System/Tools
Vendor:        Schturman
Distribution:  SailfisfOS
Packager: Schturman <your@mail.com>
URL:           www.yoursite.com
License:       GPL
 
%description
This is my first package of custom Ambience...
 
%files
/usr/share/ambience/*
 
%post
systemctl-user restart ambienced.service
 
%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
    rm -rf /usr/share/ambience/myfirstpackage
    systemctl-user restart ambienced.service
  else
    if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
    echo "It's just upgrade"
    fi
fi
 
%changelog
* Sun Mar 16 2014 Builder <builder@...> 0.1
- First build.
As far as I understand for creating from source file it will not work in this way. I need put tar.gz file to /root/rpmbuild/SOURCES and create correct .spec file for this.

Can someone create a template for this ? Full step by step guide ?
Thanks
 

The Following 4 Users Say Thank You to Schturman For This Useful Post: