ced6a68
# Review: https://bugzilla.redhat.com/show_bug.cgi?id=173105
ced6a68
09c1740
%global minorversion 0.11
ced6a68
09c1740
%global xfceversion 4.16
ced6a68
ced6a68
Name:           xfce4-weather-plugin
7d87876
Version:        0.11.1
4d779f2
Release:        %autorelease
ced6a68
Summary:        Weather plugin for the Xfce panel
ced6a68
ced6a68
License:        BSD
ced6a68
URL:            http://goodies.xfce.org/projects/panel-plugins/%{name}
ced6a68
#VCS: git:git://git.xfce.org/panel-plugins/xfce4-weather-plugin
ced6a68
Source0:        http://archive.xfce.org/src/panel-plugins/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
ced6a68
09c1740
BuildRequires:  make
e47ee60
BuildRequires:  gcc-c++
e47ee60
BuildRequires:  libxfce4ui-devel >= %{xfceversion}
e47ee60
BuildRequires:  xfce4-panel-devel >= %{xfceversion}
ac2c19d
BuildRequires:  libsoup-devel >= 2.26.0
ac2c19d
BuildRequires:  upower-devel >= 0.9.0
ced6a68
BuildRequires:  gettext
ced6a68
BuildRequires:  intltool
b2ffb27
BuildRequires:  libxml2-devel >= 2.4.0
ced6a68
Requires:       xfce4-panel >= %{xfceversion}
e19b33e
e19b33e
%description
e19b33e
A weather plugin for the Xfce panel. It shows the current temperature and 
e19b33e
weather condition, using weather data provided by xoap.weather.com.
e19b33e
c9aeb5e
e19b33e
%prep
5e9a57b
%autosetup
e19b33e
e19b33e
%build
ced6a68
%configure
edeced0
%make_build
c9aeb5e
e19b33e
%install
e47ee60
%make_install
e47ee60
f39e4f2
ced6a68
# remove la file
ced6a68
find %{buildroot} -name '*.la' -exec rm -f {} ';'
c9aeb5e
ced6a68
# make sure debuginfo is generated properly
ced6a68
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
ced6a68
ced6a68
%find_lang %{name}
2eb1dc4
f39e4f2
%files -f %{name}.lang
e47ee60
%license COPYING
7d87876
%doc AUTHORS ChangeLog README
ced6a68
%{_libdir}/xfce4/panel/plugins/*.so
ced6a68
%{_datadir}/xfce4/panel/plugins/*.desktop
ced6a68
%{_datadir}/icons/hicolor/*/*/*
f39e4f2
%{_datadir}/xfce4/weather
e19b33e
c9aeb5e
e19b33e
%changelog
4d779f2
%autochangelog