diff --git a/harbour-score-board.desktop b/harbour-score-board.desktop index bad1d48..1bbddff 100644 --- a/harbour-score-board.desktop +++ b/harbour-score-board.desktop @@ -2,6 +2,6 @@ Type=Application Name=Score board Icon=harbour-score-board -Exec=invoker -t silica-qt5 sailfish-qml harbour-score-board +Exec=sailfish-qml harbour-score-board X-Nemo-Application-Type=silica-qt5 Comment=Simple QML score sheet application diff --git a/rpm/score-board.spec b/rpm/score-board.spec new file mode 100644 index 0000000..78364f5 --- /dev/null +++ b/rpm/score-board.spec @@ -0,0 +1,54 @@ +# RPM spec file for Score-board. +# This file is used to build Redhat Package Manager packages for +# Maep. Such packages make it easy to install and uninstall +# the library and related files from binaries or source. +# +# RPM. To build, use the command: rpmbuild --clean -ba maep-qt.spec +# + +Name: harbour-score-board + +Summary: A Sailfish application to store scores from games (or not) +Version: 1.0.0 +Release: 1 +License: GPLv3 +Source: %{name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +Requires: sailfishsilica-qt5 +Requires: libsailfishapp-launcher + +%description +A Sailfish application to store scores from games (or not). It +automatically saves previous boards, and they can be modified +later. It allows to create boards up to ten players or teams and +can display the summation of all scores. + +%prep +rm -rf $RPM_BUILD_ROOT +%setup -q -n %{name}-%{version} + +%install +rm -rf %{buildroot} +install -d %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/About.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/harbour-score-board.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/RowHeader.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/RowEditor.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/RowItem.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/ScoreModel.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/TeamModel.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/Score.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/BoardSetup.qml %{buildroot}%{_datadir}/%{name}/qml +install -m 644 -p qml/sqlite_backend.js %{buildroot}%{_datadir}/%{name}/qml +install -d %{buildroot}%{_datadir}/applications +install -m 644 -p harbour-score-board.desktop %{buildroot}%{_datadir}/applications + +%files +%defattr(-,root,root,-) +%{_datadir}/applications +%{_datadir}/%{name} + +%changelog +* Fri Aug 28 2015 - Damien Caliste 1.0.0-1 +- initial release with basic functionalities.