[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: | ||



| The Following User Says Thank You to Markkyboy For This Useful Post: | ||

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.

%files /usr/share/ambience/*
%defattr(-,root,root,-) /usr/share/ambience/*
| The Following User Says Thank You to Schturman For This Useful Post: | ||



| The Following User Says Thank You to Markkyboy For This Useful Post: | ||
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: | ||