]>
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 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Libraries to allow MATE Desktop to display weather information | |
30 | ||
31 | %package devel | |
32 | Summary: Development files for libmateweather | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Development files for libmateweather | |
38 | ||
39 | %package apidocs | |
40 | Summary: libmateweather API documentation | |
41 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
42 | Group: Documentation | |
43 | Requires: gtk-doc-common | |
44 | ||
45 | %description apidocs | |
46 | libmateweather API documentation. | |
47 | ||
48 | %description apidocs -l pl.UTF-8 | |
49 | Dokumentacja API biblioteki libmateweather. | |
50 | ||
51 | %prep | |
52 | %setup -q | |
a1995872 | 53 | %patch0 -p1 |
95104df7 ER |
54 | |
55 | %build | |
e00792e6 | 56 | NOCONFIGURE=1 ./autogen.sh |
95104df7 | 57 | %configure \ |
25779e07 | 58 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95104df7 ER |
59 | --with-html-dir=%{_gtkdocdir} \ |
60 | --enable-python \ | |
61 | --disable-static | |
62 | ||
63 | %{__make} \ | |
64 | V=1 | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
72 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
73 | ||
74 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
75 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
76 | %py_postclean | |
77 | ||
78 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES | |
79 | %find_lang %{name} | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post | |
85 | /sbin/ldconfig | |
86 | %update_icon_cache hicolor | |
87 | %glib_compile_schemas | |
88 | ||
89 | %postun | |
90 | /sbin/ldconfig | |
91 | %update_icon_cache hicolor | |
92 | %glib_compile_schemas | |
93 | ||
94 | %files -f %{name}.lang | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS COPYING README | |
97 | %{_datadir}/libmateweather | |
98 | %{_iconsdir}/mate/*/status/* | |
99 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml | |
100 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* | |
101 | %ghost %{_libdir}/libmateweather.so.1 | |
102 | ||
95104df7 ER |
103 | # python |
104 | %dir %{py_sitedir}/mateweather | |
105 | %{py_sitedir}/mateweather/*.py[co] | |
106 | %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/ | |
107 | %{py_sitedir}/mateweather/*/*.py[co] | |
108 | %attr(755,root,root) %{py_sitedir}/mateweather/*/mateweather.so | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libmateweather.so | |
113 | %{_includedir}/libmateweather | |
114 | %{_pkgconfigdir}/mateweather.pc | |
115 | ||
116 | %files apidocs | |
117 | %defattr(644,root,root,755) | |
118 | %{_gtkdocdir}/libmateweather |