|
2014-10-30
, 00:20
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#32
|
Ooops, sorry now looked you output again and you are right, it not created rpm file. You do something wrong.
|
2014-10-30
, 01:53
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#33
|
|
2014-10-30
, 09:27
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#34
|
[root@Jolla ~]# /bin/cp -rf /root/rpmbuild/BUILD/myfirstpackage-0.1-1.arm /root/rpmbuild/BUILDROOT [root@Jolla ~]# cd /root/rpmbuild [root@Jolla rpmbuild]# rpmbuild -bb SPECS/myfirstpackage.spec Processing files: myfirstpackage-0.1-1.armv7hl Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires(postun): /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/myfirstpackage-0.1-1.arm warning: Could not canonicalize hostname: Jolla Wrote: /root/rpmbuild/RPMS/armv7hl/myfirstpackage-0.1-1.armv7hl.rpm Executing(%clean): /bin/sh -e /root/rpmbuild/tmp/rpm-tmp.9Tvth7 + umask 022 + cd /root/rpmbuild/BUILD + /bin/rm -rf /root/rpmbuild/BUILDROOT/myfirstpackage-0.1-1.arm + exit 0 [root@Jolla rpmbuild]#
[root@Jolla rpmbuild]# ls /root/rpmbuild/RPMS/armv7hl | grep myfirst myfirstpackage-0.1-1.armv7hl.rpm [root@Jolla rpmbuild]#
The Following User Says Thank You to Schturman For This Useful Post: | ||
|
2014-10-30
, 23:02
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#35
|
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
|
2014-10-31
, 05:24
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#36
|
|
2014-10-31
, 13:47
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#37
|
root@Jolla rpmbuild]# rpmbuild -bb SPECS/allblack2.spec Processing files: allblack2-0.1-1.armv7hl error: File must begin with "/": RPM build errors: File must begin with "/":
Name: allblack2 Version: 0.2 Release: 2 Summary: My Second package Group: System/Tools Vendor: Markkyboy Distribution: SailfishOS Packager: Markkyboy URL: https://together.jolla.com/questions/ License: GPL %description My second custom Ambience package %files %defattr(-,root,root,-) /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" systemctl-user restart ambienced.service fi fi %changelog * Sun Mar 16 2014 Builder <builder@...> 0.1 - First build.
|
2014-10-31
, 14:14
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#38
|
%files /usr/share/ambience/*
%defattr(-,root,root,-) /usr/share/ambience/*
The Following User Says Thank You to Schturman For This Useful Post: | ||
|
2015-01-04
, 12:45
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#39
|
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
|
2015-01-04
, 13:11
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#40
|
systemctl-user restart ambienced.service
Name: ambience-green-hexagon Version: 0.0.1 Release: 1 Summary: Ambience Green Hexagon Group: System/Tools Vendor: Schturman Distribution: SailfisfOS Packager: Schturman <schturman@hotmail.com> URL: www.dhrider.co.cc License: GPL %description This is a Green Hexagon ambience with sounds... %files %defattr(-,root,root,-) /usr/share/ambience/* %post systemctl-user restart ambienced.service %postun if [ $1 = 0 ]; then #Do stuff specific to uninstalls rm -rf /usr/share/ambience/ambience-green-hexagon systemctl-user restart ambienced.service else if [ $1 = 1 ]; then #Do stuff specific to upgrades echo "It's just upgrade" systemctl-user restart ambienced.service fi fi %changelog * Sun Mar 16 2014 Builder <builder@...> 0.1 - First build.
The Following User Says Thank You to Schturman For This Useful Post: | ||
Tags |
jolla phone, on device |
|
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.