1 Summary: Library to allow MATE Desktop to display weather information
2 Summary(pl.UTF-8): Biblioteka umożliwiająca wyświetlanie informacji pogodowych w środowisku MATE Desktop
8 Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
9 # Source0-md5: 881a398575c44e79e22b079e06f00cb1
10 URL: http://wiki.mate-desktop.org/libmateweather
11 BuildRequires: gettext-devel
12 BuildRequires: glib2-devel >= 1:2.26.0
13 BuildRequires: gtk+2-devel >= 2:2.11.0
14 BuildRequires: gtk-doc >= 1.9
15 BuildRequires: intltool >= 0.40.3
16 BuildRequires: libsoup-devel >= 2.4.0
17 BuildRequires: libsoup-gnome-devel >= 2.4.0
18 BuildRequires: libxml2-devel >= 1:2.6.0
19 BuildRequires: mate-common
20 BuildRequires: pkgconfig >= 1:0.19
21 BuildRequires: python-devel >= 2
22 BuildRequires: python-pygobject-devel >= 2.0
23 BuildRequires: python-pygtk-devel >= 2:2.0
24 BuildRequires: rpm-pythonprov
25 BuildRequires: rpmbuild(macros) >= 1.219
26 BuildRequires: tar >= 1:1.22
28 Requires(post,postun): /sbin/ldconfig
29 Requires: glib2 >= 1:2.26.0
30 Requires: gsettings-desktop-schemas
31 Requires: gtk+2 >= 2:2.11.0
32 Requires: gtk-update-icon-cache
33 Requires: hicolor-icon-theme
34 Requires: libxml2 >= 1:2.6.0
35 Conflicts: mate-applet-gweather < 1.6.1
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 libmateweather is a library to allow MATE Desktop to display weather
40 information. It's a fork of libgweather.
42 %description -l pl.UTF-8
43 libmateweather to biblioteka umożliwiająca wyświetlanie informacji
44 pogodowych w środowisku MATE Desktop. Jest odgałęzieniem
48 Summary: Development files for libmateweather
49 Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather
50 Group: X11/Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: glib2-devel >= 1:2.26.0
53 Requires: gtk+2-devel >= 2:2.11.0
54 Requires: libsoup-devel >= 2.4.0
55 Requires: libxml2-devel >= 1:2.6.0
58 Development files for libmateweather.
60 %description devel -l pl.UTF-8
61 Pliki programistyczne biblioteki libmateweather.
64 Summary: libmateweather API documentation
65 Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather
67 Requires: gtk-doc-common
70 libmateweather API documentation.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki libmateweather.
75 %package -n python-mateweather
76 Summary: Python binding for libmateweather library
77 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki libmateweather
78 Group: Libraries/Python
79 Requires: %{name} = %{version}-%{release}
80 Requires: python-pygobject >= 2.0
81 Requires: python-pygtk-gtk >= 2:2.0
83 %description -n python-mateweather
84 Python binding for libmateweather library.
86 %description -n python-mateweather -l pl.UTF-8
87 Wiązanie Pythona do biblioteki libmateweather.
94 --with-html-dir=%{_gtkdocdir} \
95 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
97 --disable-silent-rules \
103 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la
108 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la
110 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
111 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
114 # outdated copy of es
115 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
120 rm -rf $RPM_BUILD_ROOT
124 %update_icon_cache hicolor
125 %glib_compile_schemas
129 %update_icon_cache hicolor
130 %glib_compile_schemas
132 %files -f %{name}.lang
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
135 %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
137 %{_datadir}/libmateweather
138 %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
139 %{_iconsdir}/mate/*x*/status/weather-*.png
140 %{_iconsdir}/mate/scalable/status/weather-*.svg
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/libmateweather.so
145 %{_includedir}/libmateweather
146 %{_pkgconfigdir}/mateweather.pc
149 %defattr(644,root,root,755)
150 %{_gtkdocdir}/libmateweather
152 %files -n python-mateweather
153 %defattr(644,root,root,755)
154 %dir %{py_sitedir}/mateweather
155 %{py_sitedir}/mateweather/*.py[co]
156 %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE
157 %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/*.py[co]
158 %attr(755,root,root) %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/mateweather.so