Ask / Submit

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-02-23 22:10:09 +0300

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directory
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • I check the /usr/share/ambience directory on the Jolla mobile and no update
  • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiance

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I updated the SDK: -- SailfishOS option on the left, Update Engine -- Qt Creator main window, bottom right, update button
  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directory
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • I check the /usr/share/ambience directory on the Jolla mobile and no update
  • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiance

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I updated the SDK: --
    • SailfishOS option on the left, Update Engine -- Engine
    • Qt Creator main window, bottom right, update button
  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directory
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • I check the /usr/share/ambience directory on the Jolla mobile and no update
  • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiance

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I updated the SDK:
    • SailfishOS option on the left, Update Engine
    • Qt Creator main window, bottom right, update button
  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directorydirectory that is defined in the project settings
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • connecting to the phone over SSH:
    • I check the /usr/share/ambience directory on the Jolla mobile and no update
    • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiance

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I updated the SDK:
    • SailfishOS option on the left, Update Engine
    • Qt Creator main window, bottom right, update button
  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directory that is defined in the project settings
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • connecting to the phone over SSH:
    • I check the /usr/share/ambience directory on the Jolla mobile and no update
    • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiancehttps://bitbucket.org/wickwire/sailfishos-jolla-ambience

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts

Update:

Please check the public repos in the other answer, both versions Windows and Linux.

Hi,

Ok I think I have something:

Though I'm unsure if it makes any difference, I'm using GNU/Linux Mint 15 x64 to do the Ambiance and at the time, I'm being successful deploying the RPM and applying the Ambiance:

  • I updated the SDK:
    • SailfishOS option on the left, Update Engine
    • Qt Creator main window, bottom right, update button
  • I modified the template.spec file
  • manually created the "translations" directory in the shadow build directory that is defined in the project settings
  • the template builds properly with Qt Creator
  • I'm using Release > Deploy as RPM Package - a coherent popup shows up in Qt Creator claiming there's no executable to run, close that
  • connecting to the phone over SSH:
    • I check the /usr/share/ambience directory on the Jolla mobile and no update
    • I turn the phone off, then on again and /usr/share/ambience (it's actually spelled with an "e") has the directory there
  • I'm able to select the ambiance from the Gallery and apply it

Next, Removing and adding again:

  • I swap the template back to another ambiance
  • I remove the template from the pulley menu options
  • /usr/share/ambience files remain there, I manually remove them
  • I re-deploy the template after a clean on Qt Creator
  • I deploys, same as before, no new files in /usr/share/ambience, turn the phone off, on again, ambiance is available again.

Please test and see if it works for you as well.

full template project on bitbucket:

https://bitbucket.org/wickwire/sailfishos-jolla-ambiencehttps://bitbucket.org/wickwire/sailfishos-jolla-ambience-linux

template.spec file below (the only file I changed, apart from the jpg background)


Name:       ambience-template

Summary:    Template ambience
Version:    0.0.1
Release:    1
Group:      System/GUI/Other
License:    TBD
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
BuildRequires:  qt5-qmake

Requires:   ambienced

%description
This is a template ambience description

%package ts-devel
Summary:   Translation source for template ambience
License:   TBD
Group:     System/GUI/Other

%description ts-devel
Translation source for a template ambience

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post



%files
%defattr(-,root,root,-)
%{_datadir}/ambience/ambience-template/ambience-template.ambience
%{_datadir}/ambience/ambience-template/sounds.index
%{_datadir}/ambience/ambience-template/images/*
%{_datadir}/ambience/ambience-template/sounds/*
%{_datadir}/translations/ambience-template_eng_en.qm

%files -n ambience-template-ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/ambience-template.ts