]>
Commit | Line | Data |
---|---|---|
ab9372dc JB |
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 | |
95104df7 | 3 | Name: libmateweather |
0475dace | 4 | Version: 1.6.2 |
5bba8b92 | 5 | Release: 2 |
95104df7 ER |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
ee203144 | 8 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
0475dace | 9 | # Source0-md5: 881a398575c44e79e22b079e06f00cb1 |
b71d5fa8 | 10 | URL: http://wiki.mate-desktop.org/libmateweather |
d33f0d8b | 11 | BuildRequires: gettext-devel |
ab9372dc | 12 | BuildRequires: glib2-devel >= 1:2.26.0 |
b71d5fa8 | 13 | BuildRequires: gtk+2-devel >= 2:2.11.0 |
ab9372dc | 14 | BuildRequires: gtk-doc >= 1.9 |
b71d5fa8 ER |
15 | BuildRequires: intltool >= 0.40.3 |
16 | BuildRequires: libsoup-devel >= 2.4.0 | |
ab9372dc JB |
17 | BuildRequires: libsoup-gnome-devel >= 2.4.0 |
18 | BuildRequires: libxml2-devel >= 1:2.6.0 | |
95104df7 | 19 | BuildRequires: mate-common |
ab9372dc JB |
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 | |
d33f0d8b | 24 | BuildRequires: rpm-pythonprov |
ab9372dc | 25 | BuildRequires: rpmbuild(macros) >= 1.219 |
95104df7 ER |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
ab9372dc | 28 | Requires(post,postun): /sbin/ldconfig |
95104df7 ER |
29 | Requires: glib2 >= 1:2.26.0 |
30 | Requires: gsettings-desktop-schemas | |
ab9372dc | 31 | Requires: gtk+2 >= 2:2.11.0 |
95104df7 ER |
32 | Requires: gtk-update-icon-cache |
33 | Requires: hicolor-icon-theme | |
ab9372dc | 34 | Requires: libxml2 >= 1:2.6.0 |
c7df76e7 | 35 | Conflicts: mate-applet-gweather < 1.6.1 |
95104df7 ER |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
ab9372dc JB |
39 | libmateweather is a library to allow MATE Desktop to display weather |
40 | information. It's a fork of libgweather. | |
41 | ||
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 | |
45 | libgweather. | |
95104df7 ER |
46 | |
47 | %package devel | |
48 | Summary: Development files for libmateweather | |
ab9372dc JB |
49 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather |
50 | Group: X11/Development/Libraries | |
95104df7 | 51 | Requires: %{name} = %{version}-%{release} |
ab9372dc JB |
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 | |
95104df7 ER |
56 | |
57 | %description devel | |
ab9372dc JB |
58 | Development files for libmateweather. |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki programistyczne biblioteki libmateweather. | |
95104df7 ER |
62 | |
63 | %package apidocs | |
64 | Summary: libmateweather API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
66 | Group: Documentation | |
67 | Requires: gtk-doc-common | |
68 | ||
69 | %description apidocs | |
70 | libmateweather API documentation. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki libmateweather. | |
74 | ||
ab9372dc JB |
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 | |
82 | ||
83 | %description -n python-mateweather | |
84 | Python binding for libmateweather library. | |
85 | ||
86 | %description -n python-mateweather -l pl.UTF-8 | |
87 | Wiązanie Pythona do biblioteki libmateweather. | |
88 | ||
95104df7 ER |
89 | %prep |
90 | %setup -q | |
95104df7 ER |
91 | |
92 | %build | |
93 | %configure \ | |
94 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 95 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95104df7 | 96 | --enable-python \ |
0475dace | 97 | --disable-silent-rules \ |
95104df7 ER |
98 | --disable-static |
99 | ||
0475dace | 100 | %{__make} |
95104df7 ER |
101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
108 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
109 | ||
110 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
111 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
112 | %py_postclean | |
113 | ||
ab9372dc | 114 | # outdated copy of es |
95104df7 | 115 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
ab9372dc | 116 | |
95104df7 ER |
117 | %find_lang %{name} |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
123 | /sbin/ldconfig | |
124 | %update_icon_cache hicolor | |
125 | %glib_compile_schemas | |
126 | ||
127 | %postun | |
128 | /sbin/ldconfig | |
129 | %update_icon_cache hicolor | |
130 | %glib_compile_schemas | |
131 | ||
132 | %files -f %{name}.lang | |
133 | %defattr(644,root,root,755) | |
ab9372dc JB |
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 | |
95104df7 | 137 | %{_datadir}/libmateweather |
95104df7 | 138 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
ab9372dc JB |
139 | %{_iconsdir}/mate/*x*/status/weather-*.png |
140 | %{_iconsdir}/mate/scalable/status/weather-*.svg | |
95104df7 ER |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
ab9372dc | 144 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
145 | %{_includedir}/libmateweather |
146 | %{_pkgconfigdir}/mateweather.pc | |
147 | ||
148 | %files apidocs | |
149 | %defattr(644,root,root,755) | |
150 | %{_gtkdocdir}/libmateweather | |
ab9372dc JB |
151 | |
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 |