Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Trivial] spec file cleanup #342

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions rpm/harbour-amazfish.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

Name: harbour-amazfish

# >> macros
# << macros

%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
Expand Down Expand Up @@ -83,9 +80,6 @@ Links:
%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
%if 0%{?sailfishos}
%qmake5 VERSION='%{version}-%{release}' FLAVOR=silica
Expand All @@ -95,25 +89,15 @@ Links:

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

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

# >> install post
# << install post

desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}-ui
%attr(2755,root,privileged) %{_bindir}/%{name}d
%{_datadir}/%{name}-ui
%{_datadir}/applications/%{name}-ui.desktop
Expand All @@ -122,5 +106,3 @@ desktop-file-install --delete-original \
%{_userunitdir}/harbour-amazfish.service
%{_datadir}/mapplauncherd/privileges.d/harbour-amazfishd.privileges
%{_datadir}/harbour-amazfish/chirp.raw
# >> files
# << files
Loading