blob: 1788442629ee5335646a6d55efec6282bb184e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
Summary: A weather plugin for the Xfce panel
Summary(pl.UTF-8): Wtyczka panelu Xfce pokazująca pogodę
Name: xfce4-weather-plugin
Version: 0.8.9
Release: 2
License: GPL
Group: X11/Applications
Source0: http://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/0.8/%{name}-%{version}.tar.bz2
# Source0-md5: 0c56c057e1c354b30409b7871ab6f314
URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin
Patch0: user-agent.patch
BuildRequires: autoconf >= 2.63
BuildRequires: automake
BuildRequires: gettext-tools
BuildRequires: intltool
BuildRequires: libsoup-devel >= 2.26.0
BuildRequires: libtool
BuildRequires: libxfce4ui-devel
BuildRequires: libxml2-devel >= 1:2.6.27
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.601
BuildRequires: xfce4-dev-tools >= 4.12.0
BuildRequires: xfce4-panel-devel >= 4.12.0
Requires: gtk-update-icon-cache
Requires: hicolor-icon-theme
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A weather plugin for the Xfce panel.
%description -l pl.UTF-8
Wtyczka dla panelu Xfce wyświetlająca pogodę.
%prep
%setup -q
%patch0 -p1
%build
%configure \
--disable-static
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es
%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/libweather.la
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_icon_cache hicolor
%postun
%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libweather.so
%{_datadir}/xfce4/panel/plugins/weather.desktop
%{_datadir}/xfce4/weather
%{_iconsdir}/hicolor/*/*/xfce4-weather.png
|