Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
neuntrainer
> _service:tar_git:harbour-neuntrainer.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:harbour-neuntrainer.spec of Package neuntrainer
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: harbour-neuntrainer # >> macros # << macros Summary: Add words to your personal XT9 word list Version: 0.9.7 Release: 0 Group: Applications License: MIT BuildArch: noarch URL: https://codeberg.org/nephros/neuntrainer Source0: %{name}-%{version}.tar.gz Source100: harbour-neuntrainer.yaml Requires: feature-xt9 Requires: libsailfishapp-launcher BuildRequires: qt5-qttools-linguist BuildRequires: qt5-qmake BuildRequires: desktop-file-utils %description %{name} lets you add words to ("train") the Xt9 input prediction engine that comes with licensed versions of Sailfish OS. You need a licensed version of Sailfish OS to install this, as it depends on the XT9 feature. Features/use cases supported at the moment: - Entering a couple of words in the text field - Selecting a word in the text field and learning it - Copypasting a phrase you have in the clipboard into the text field, and learning all words in it - Loading a text file from your phone and learning the words in it NOTE: it is unknown whether adding a large number of words to the database has a negative effect in some way. Use reponsibly. After all this is input text prediction, not a thesaurus or dictionary. %if "%{?vendor}" == "chum" PackageName: Neuntrainer Type: desktop-application DeveloperName: nephros Categories: - Utility - TextTools - Dictionary Custom: Repo: https://codeberg.org/nephros/neuntrainer Icon: https://codeberg.org/nephros/neuntrainer/raw/branch/master/icons/harbour-neuntrainer.svg Screenshots: - https://codeberg.org/nephros/neuntrainer/raw/branch/master/Screenshot_001.png Url: Homepage: https://forum.sailfishos.org/t/neuntrainer-app/10426 Bugtracker: https://codeberg.org/nephros/neuntrainer/issues %endif %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre # << build pre # >> build post PATH=$PATH:%{_libdir}/qt5/bin %{_libdir}/qt5/bin/lrelease -silent -removeidentical *.pro # << build post %install rm -rf %{buildroot} # >> install pre # << install pre # >> install post %__install -m 644 -D %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %__install -m 644 -D %{name}.profile %{buildroot}%{_sysconfdir}/sailjail/permissions/%{name}.profile %__install -m 644 -D qml/%{name}.qml %{buildroot}%{_datadir}/%{name}/qml/%{name}.qml #for f in qml/cover/*.qml qml/components/qmldir qml/components/*/*.qml qml/components/*.qml qml/pages/*.qml; do for f in $(find qml/ -type f -name "*.qml" -o -name "*.js" -o -name qmldir -o -name "*.png"); do %__install -m 644 -D ${f} %{buildroot}%{_datadir}/%{name}/${f} done for f in translations/*.qm; do %__install -m 644 -D ${f} %{buildroot}%{_datadir}/%{name}/${f} done for s in 512 256 128 64 48; do %__install -m 644 -D icons/%{name}-${s}.png %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png done %__install -m 644 -D icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg # mangle version info sed -i -e "s/\(^.*version = \).*$/\1\"%{version}\"/" %{buildroot}%{_datadir}/%{name}/qml/%{name}.qml # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %files %defattr(-,root,root,-) %license LICENSE %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/*/*/apps/%{name}.png %{_datadir}/icons/*/*/apps/%{name}.svg %{_datadir}/%{name}/translations/*.qm %{_datadir}/%{name}/qml/* %{_sysconfdir}/sailjail/permissions/%{name}.profile # >> files # << files