]>
Commit | Line | Data |
---|---|---|
95104df7 ER |
1 | Summary: Libraries to allow MATE Desktop to display weather information |
2 | Name: libmateweather | |
5564ce04 | 3 | Version: 1.6.1 |
a1995872 | 4 | Release: 2 |
95104df7 ER |
5 | License: GPL v2+ |
6 | Group: X11/Libraries | |
ee203144 | 7 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
5564ce04 | 8 | # Source0-md5: 6fd7832e76755fd3d8880472f7698577 |
a1995872 | 9 | Patch0: update-weather.noaa.gov-url.patch |
b71d5fa8 | 10 | URL: http://wiki.mate-desktop.org/libmateweather |
d33f0d8b | 11 | BuildRequires: gettext-devel |
b71d5fa8 ER |
12 | BuildRequires: gtk+2-devel >= 2:2.11.0 |
13 | BuildRequires: intltool >= 0.40.3 | |
14 | BuildRequires: libsoup-devel >= 2.4.0 | |
d33f0d8b | 15 | BuildRequires: libsoup-gnome-devel |
95104df7 | 16 | BuildRequires: mate-common |
95104df7 ER |
17 | BuildRequires: python-pygobject-devel |
18 | BuildRequires: python-pygtk-devel | |
d33f0d8b | 19 | BuildRequires: rpm-pythonprov |
95104df7 ER |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
22 | Requires: glib2 >= 1:2.26.0 | |
23 | Requires: gsettings-desktop-schemas | |
24 | Requires: gtk-update-icon-cache | |
25 | Requires: hicolor-icon-theme | |
c7df76e7 | 26 | Conflicts: mate-applet-gweather < 1.6.1 |
95104df7 ER |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Libraries to allow MATE Desktop to display weather information | |
31 | ||
32 | %package devel | |
33 | Summary: Development files for libmateweather | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | Development files for libmateweather | |
39 | ||
40 | %package apidocs | |
41 | Summary: libmateweather API documentation | |
42 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
43 | Group: Documentation | |
44 | Requires: gtk-doc-common | |
45 | ||
46 | %description apidocs | |
47 | libmateweather API documentation. | |
48 | ||
49 | %description apidocs -l pl.UTF-8 | |
50 | Dokumentacja API biblioteki libmateweather. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
a1995872 | 54 | %patch0 -p1 |
95104df7 ER |
55 | |
56 | %build | |
e00792e6 | 57 | NOCONFIGURE=1 ./autogen.sh |
95104df7 | 58 | %configure \ |
25779e07 | 59 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95104df7 ER |
60 | --with-html-dir=%{_gtkdocdir} \ |
61 | --enable-python \ | |
62 | --disable-static | |
63 | ||
64 | %{__make} \ | |
65 | V=1 | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
72 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
73 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
74 | ||
75 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
76 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
77 | %py_postclean | |
78 | ||
79 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES | |
80 | %find_lang %{name} | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post | |
86 | /sbin/ldconfig | |
87 | %update_icon_cache hicolor | |
88 | %glib_compile_schemas | |
89 | ||
90 | %postun | |
91 | /sbin/ldconfig | |
92 | %update_icon_cache hicolor | |
93 | %glib_compile_schemas | |
94 | ||
95 | %files -f %{name}.lang | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS COPYING README | |
98 | %{_datadir}/libmateweather | |
99 | %{_iconsdir}/mate/*/status/* | |
100 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml | |
101 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* | |
102 | %ghost %{_libdir}/libmateweather.so.1 | |
103 | ||
95104df7 ER |
104 | # python |
105 | %dir %{py_sitedir}/mateweather | |
106 | %{py_sitedir}/mateweather/*.py[co] | |
107 | %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/ | |
108 | %{py_sitedir}/mateweather/*/*.py[co] | |
109 | %attr(755,root,root) %{py_sitedir}/mateweather/*/mateweather.so | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/libmateweather.so | |
114 | %{_includedir}/libmateweather | |
115 | %{_pkgconfigdir}/mateweather.pc | |
116 | ||
117 | %files apidocs | |
118 | %defattr(644,root,root,755) | |
119 | %{_gtkdocdir}/libmateweather |