[SailfishDevel] Adding files to RPM packages

Andrey Kozhevnikov coderusinbox at gmail.com
Fri Jan 3 16:48:23 UTC 2014


you need to add your translations to INSTALLS

On 03.01.2014 22:34, Franck Routier (perso) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> pro file is as follows:
>
> # The name of your app.
> # NOTICE: name defined in TARGET has a corresponding QML filename.
> #         If name defined in TARGET is changed, following needs to be
> #         done to match new name:
> #         - corresponding QML filename must be changed
> #         - desktop icon filename must be changed
> #         - desktop filename must be changed
> #         - icon definition filename in desktop file must be changed
> TARGET = MkPokerPlanning
>
> CONFIG += sailfishapp
>
> SOURCES += src/MkPokerPlanning.cpp
>
> evil_hack_to_fool_lupdate {
>      SOURCES += \
>      qml/MkPokerPlanning.qml \
>      qml/cover/CoverPage.qml \
>      qml/pages/MainPage.qml \
>      qml/pages/Card.qml \
>      qml/pages/CardPage.qml \
>      qml/pages/About.qml \
>      qml/pages/CardDeckModel.qml \
>      qml/pages/AppSettings.qml \
>      qml/pages/SettingsPage.qml
> }
>
> OTHER_FILES += qml/MkPokerPlanning.qml \
>      qml/cover/CoverPage.qml \
>      rpm/MkPokerPlanning.spec \
>      rpm/MkPokerPlanning.yaml \
>      MkPokerPlanning.desktop \
>      qml/pages/MainPage.qml \
>      qml/pages/Card.qml \
>      qml/pages/CardPage.qml \
>      qml/pages/About.qml \
>      LICENSE.txt \
>      changelog \
>      qml/pages/CardDeckModel.qml \
>      qml/pages/AppSettings.qml \
>      qml/pages/SettingsPage.qml \
>      languages/mkpokerplanning_fr.ts \
>      languages/mkpokerplanning_fr.qm
>
> RESOURCES += \
>      images.qrc
>
> HEADERS +=
>
> TRANSLATIONS = languages/mkpokerplanning_fr.ts
>
> Le 03/01/2014 17:30, Andrey Kozhevnikov a écrit :
>> show pro file
>>
>> On 03.01.2014 22:22, Franck Routier (perso) wrote:
>>> Hi,
>>>
>>> still in the process of finishing my first application...
>>>
>>> Now I have translation files (.ts and .qm), that are located in
>>> a 'languages' directory.
>>>
>>> I have added them to the .pro file, and I have modified the yaml
>>> RPM definition, but I must be missing something, as I get an RPM
>>> error "error: File not found:
>>> /home/deploy/installroot/usr/share/MkPokerPlanning/languages"
>>>
>>> Indeed, I can find my files on the mersdk VM in
>>> /home/mersdk/devl/MkPokerPlanning/languages, but it does not make
>>> it to /home/deploy/installroot/usr/share/MkPokerPlanning/...
>>>
>>> Here is my yaml:
>>>
>>> Name: MkPokerPlanning Summary: Participate in a poker planning
>>> session and show off your Jolla Version: 0.4 Release: 1 Group:
>>> Qt/Qt URL: http://example.org/ License: GPLv3 Sources: -
>>> '%{name}-%{version}.tar.bz2' Description: |- This app will let
>>> you choose your poker planning evaluation in a set of cards, and
>>> show it to your scrum-mates in due time, and on your Jolla.
>>> Configure: none Builder: qtc5 PkgConfigBR: - Qt5Quick - Qt5Qml -
>>> Qt5Core - sailfishapp >= 0.0.10 Requires: - sailfishsilica-qt5 >=
>>> 0.10.9 Files: - '%{_bindir}' - '%{_datadir}/%{name}/qml' -
>>> '%{_datadir}/%{name}/languages' -
>>> '%{_datadir}/applications/%{name}.desktop' -
>>> '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' - /usr/bin -
>>> /usr/share/MkPokerPlanning -
>>> /usr/share/MkPokerPlanning/languages - /usr/share/applications -
>>> /usr/share/icons/hicolor/86x86/apps PkgBR: []
>>>
>>> Can someone help me spot the problem ?
>>>
>>> Thanks in advance,
>>>
>>> Franck _______________________________________________
>>> SailfishOS.org Devel mailing list
>> _______________________________________________ SailfishOS.org
>> Devel mailing list
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.14 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSxuadAAoJEGEvoAir78RoZRkIAIIEDJxgXdICX5nE9NMl798x
> 0Y6KXmu1+6oYPGTMzVdmVvHA1VWkyzuQNftq5DTtgxW/F6TCxQUS0RHa5wzvafyr
> 8ij79aoYRVW6HklG9m9YCyA7533QYwJegRtCRhn5e3gR0f1wckxxpTlKV0EA/Gy2
> CD/X8FEUI9hOu5c4L86vVwTVwtbdNEicMfP3F6rGidv0eEBYmMcZiF8IkX1VSKbx
> xmWm65TcbyI1G7zf5x7rtfhA9Y/s1ZlzyJ2A6+cRuJna1wvVpFsxAoKiQd9gyYi1
> hkgeYkTEuOpdMMQvmwYf6lvmfpHn3BZCsfgd9jRTtKCBHkVeJlqVUC66ifL7o3Y=
> =Eblp
> -----END PGP SIGNATURE-----
> _______________________________________________
> SailfishOS.org Devel mailing list



More information about the Devel mailing list