diff --git a/rpm/harbour-meteoswiss.spec b/rpm/harbour-meteoswiss.spec new file mode 100644 index 0000000..1828e99 --- /dev/null +++ b/rpm/harbour-meteoswiss.spec @@ -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 diff --git a/rpm/harbour-meteoswiss.yaml b/rpm/harbour-meteoswiss.yaml index ea16309..4571288 100644 --- a/rpm/harbour-meteoswiss.yaml +++ b/rpm/harbour-meteoswiss.yaml @@ -41,6 +41,9 @@ PkgConfigBR: - Qt5Qml - Qt5Quick +Macros: + - __provides_exclude_from;^%{_datadir}/.*$ + Requires: - sailfishsilica-qt5 >= 0.10.9 - libsailfishapp-launcher