xfce4-weather-plugin/xfce4-weather-plugin.spec

65 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2021-06-24 12:46:10 +08:00
%global minorversion 0.11
%global xfceversion 4.16
2020-07-26 16:54:25 +08:00
Name: xfce4-weather-plugin
2021-06-24 12:46:10 +08:00
Version: 0.11.0
2020-07-26 16:54:25 +08:00
Release: 1
Summary: Weather information plugin for the Xfce panel
License: BSD
URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
2021-06-24 12:46:10 +08:00
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
2020-07-26 16:54:25 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++
BuildRequires: libxfce4ui-devel >= %{xfceversion}
BuildRequires: xfce4-panel-devel >= %{xfceversion}
BuildRequires: libsoup-devel >= 2.26.0
BuildRequires: upower-devel >= 0.9.0
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: libxml2-devel >= 2.4.0
Requires: xfce4-panel >= %{xfceversion}
%description
The weather plugin displays information about the current weather according
your timezone and settings. It allows one to search weather location code in
the same plugin and displays weather status in little icons.
Features include:
- Temperature, atmospheric pressure and state.
- Wind speed, gust, and direction.
- Humidity, Visibility, Dew-point, UV Index.
%prep
2021-06-24 12:46:10 +08:00
%autosetup
2020-07-26 16:54:25 +08:00
%build
%configure
%make_build
%install
%make_install
# remove la file
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# make sure debuginfo is generated properly
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog README TODO
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/xfce4/weather
%changelog
2021-06-24 12:46:10 +08:00
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.11.0-1
- Update to 0.11.0
2020-07-26 16:54:25 +08:00
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.10.1-1
- Init package