Skip to content

Commit

Permalink
Add an rpm packaging spec file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed Aug 28, 2015
1 parent 1beb125 commit e725279
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion harbour-score-board.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
54 changes: 54 additions & 0 deletions rpm/score-board.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> 1.0.0-1
- initial release with basic functionalities.

0 comments on commit e725279

Please sign in to comment.