Skip to content

Commit

Permalink
Move rpm macros from spec to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ichthyosaurus committed Mar 29, 2022
1 parent fb7ccf6 commit defea3b
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
76 changes: 76 additions & 0 deletions rpm/harbour-meteoswiss.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.32
#

Name: harbour-meteoswiss

# >> macros
# << macros
%define __provides_exclude_from ^%{_datadir}/.*$

%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Unofficial client to the Swiss Meteorological Service (MeteoSwiss)
Version: 1.3.1
Release: 2
Group: Qt/Qt
License: GPLv3+
BuildArch: noarch
URL: https://github.com/ichthyosaurus/harbour-meteoswiss
Source0: %{name}-%{version}.tar.bz2
Source100: harbour-meteoswiss.yaml
Requires: sailfishsilica-qt5 >= 0.10.9
Requires: libsailfishapp-launcher
BuildRequires: pkgconfig(sailfishapp) >= 1.0.3
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: desktop-file-utils

%description
MeteoSwiss is an unofficial client to weather forecast services provided by
the Federal Office of Meteorology and Climatology (MeteoSwiss). Forecasts are
available offline and updated every hour.


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%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,-)
%defattr(0644,root,root,-)
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
# >> files
# << files
3 changes: 3 additions & 0 deletions rpm/harbour-meteoswiss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ PkgConfigBR:
- Qt5Qml
- Qt5Quick

Macros:
- __provides_exclude_from;^%{_datadir}/.*$

Requires:
- sailfishsilica-qt5 >= 0.10.9
- libsailfishapp-launcher
Expand Down

0 comments on commit defea3b

Please sign in to comment.