Init Package for openEuler
This commit is contained in:
parent
c858af156e
commit
2d737dd4f4
23
0001-fix-compile-error-of-kylin-weather.patch
Normal file
23
0001-fix-compile-error-of-kylin-weather.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From f7b06d70a47dfe8706e28420c1b2ad5c32f89a01 Mon Sep 17 00:00:00 2001
|
||||||
|
From: peijiankang <peijiankang@kylinos.cn>
|
||||||
|
Date: Tue, 17 Jan 2023 12:50:54 +0800
|
||||||
|
Subject: [PATCH] fix compile error of kylin-weather
|
||||||
|
|
||||||
|
---
|
||||||
|
translations/generate_translations_pm.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/translations/generate_translations_pm.sh b/translations/generate_translations_pm.sh
|
||||||
|
index a5e938e..2359710 100755
|
||||||
|
--- a/translations/generate_translations_pm.sh
|
||||||
|
+++ b/translations/generate_translations_pm.sh
|
||||||
|
@@ -4,5 +4,5 @@ ts_file_list=(`ls translations/*.ts`)
|
||||||
|
|
||||||
|
for ts in "${ts_file_list[@]}"
|
||||||
|
do
|
||||||
|
- lrelease "${ts}"
|
||||||
|
+ lrelease-qt5 "${ts}"
|
||||||
|
done
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
BIN
kylin-weather-3.1.2.tar.gz
Normal file
BIN
kylin-weather-3.1.2.tar.gz
Normal file
Binary file not shown.
67
kylin-weather.spec
Normal file
67
kylin-weather.spec
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
Name: kylin-weather
|
||||||
|
Version: 3.1.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Indicator that displays China weather information
|
||||||
|
License: GPL-3.0+
|
||||||
|
URL: https://gitee.com/openkylin/kylin-weather
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch01: 0001-fix-compile-error-of-kylin-weather.patch
|
||||||
|
|
||||||
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
BuildRequires: qtchooser
|
||||||
|
BuildRequires: qt5-qtscript-devel
|
||||||
|
BuildRequires: qt5-qttools-devel
|
||||||
|
BuildRequires: pkgconf
|
||||||
|
BuildRequires: GeoIP-devel
|
||||||
|
BuildRequires: libX11-devel
|
||||||
|
BuildRequires: gsettings-qt-devel
|
||||||
|
BuildRequires: qt5-qtx11extras-devel
|
||||||
|
BuildRequires: kf5-kwindowsystem-devel
|
||||||
|
BuildRequires: ukui-interface
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Kylin Weather displays detail weather information for one place,
|
||||||
|
including weather forecast and observe weather, and you can
|
||||||
|
change it.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch01 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir build && pushd build
|
||||||
|
%{qmake_qt5} ..
|
||||||
|
%{make_build}
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
pushd build
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make INSTALL_ROOT=%{buildroot} install
|
||||||
|
popd
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
indicatorPath="/etc/xdg/autostart/indicator-china-weather.desktop"
|
||||||
|
if [ ! -d "$indicatorPath" ]; then
|
||||||
|
rm -f "$indicatorPath"
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_sysconfdir}/xdg/autostart/kylin-weather.desktop
|
||||||
|
%{_bindir}/kylin-weather
|
||||||
|
%{_datadir}/applications/kylin-weather.desktop
|
||||||
|
%{_datadir}/glib-2.0/schemas/org.kylin.weather.gschema.xml
|
||||||
|
%{_datadir}/glib-2.0/schemas/org.ukui.log4qt.kylin-weather.gschema.xml
|
||||||
|
%{_datadir}/kylin-weather/translations/kylin-weather_zh_CN.qm
|
||||||
|
%{_datadir}/kylin-user-guide/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jan 30 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-1
|
||||||
|
- Init Package for openEuler
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user