]>
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 |
89c90155 JP |
4 | Version: 1.8.0 |
5 | Release: 1 | |
95104df7 ER |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
89c90155 JP |
8 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
9 | # Source0-md5: f11f7f3c6ae72e58b54931cb09bb76a7 | |
b71d5fa8 | 10 | URL: http://wiki.mate-desktop.org/libmateweather |
89c90155 JP |
11 | BuildRequires: autoconf >= 2.59 |
12 | BuildRequires: automake >= 1:1.9 | |
d33f0d8b | 13 | BuildRequires: gettext-devel |
ab9372dc | 14 | BuildRequires: glib2-devel >= 1:2.26.0 |
b71d5fa8 | 15 | BuildRequires: gtk+2-devel >= 2:2.11.0 |
ab9372dc | 16 | BuildRequires: gtk-doc >= 1.9 |
b71d5fa8 | 17 | BuildRequires: intltool >= 0.40.3 |
89c90155 JP |
18 | BuildRequires: libsoup-devel >= 2.34.0 |
19 | BuildRequires: libtool | |
ab9372dc | 20 | BuildRequires: libxml2-devel >= 1:2.6.0 |
95104df7 | 21 | BuildRequires: mate-common |
ab9372dc JB |
22 | BuildRequires: pkgconfig >= 1:0.19 |
23 | BuildRequires: python-devel >= 2 | |
24 | BuildRequires: python-pygobject-devel >= 2.0 | |
25 | BuildRequires: python-pygtk-devel >= 2:2.0 | |
d33f0d8b | 26 | BuildRequires: rpm-pythonprov |
ab9372dc | 27 | BuildRequires: rpmbuild(macros) >= 1.219 |
95104df7 ER |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
ab9372dc | 30 | Requires(post,postun): /sbin/ldconfig |
95104df7 ER |
31 | Requires: glib2 >= 1:2.26.0 |
32 | Requires: gsettings-desktop-schemas | |
ab9372dc | 33 | Requires: gtk+2 >= 2:2.11.0 |
95104df7 ER |
34 | Requires: gtk-update-icon-cache |
35 | Requires: hicolor-icon-theme | |
ab9372dc | 36 | Requires: libxml2 >= 1:2.6.0 |
c7df76e7 | 37 | Conflicts: mate-applet-gweather < 1.6.1 |
95104df7 ER |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
ab9372dc JB |
41 | libmateweather is a library to allow MATE Desktop to display weather |
42 | information. It's a fork of libgweather. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | libmateweather to biblioteka umożliwiająca wyświetlanie informacji | |
46 | pogodowych w środowisku MATE Desktop. Jest odgałęzieniem | |
47 | libgweather. | |
95104df7 ER |
48 | |
49 | %package devel | |
50 | Summary: Development files for libmateweather | |
ab9372dc JB |
51 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather |
52 | Group: X11/Development/Libraries | |
95104df7 | 53 | Requires: %{name} = %{version}-%{release} |
ab9372dc JB |
54 | Requires: glib2-devel >= 1:2.26.0 |
55 | Requires: gtk+2-devel >= 2:2.11.0 | |
56 | Requires: libsoup-devel >= 2.4.0 | |
57 | Requires: libxml2-devel >= 1:2.6.0 | |
95104df7 ER |
58 | |
59 | %description devel | |
ab9372dc JB |
60 | Development files for libmateweather. |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki programistyczne biblioteki libmateweather. | |
95104df7 ER |
64 | |
65 | %package apidocs | |
66 | Summary: libmateweather API documentation | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
68 | Group: Documentation | |
69 | Requires: gtk-doc-common | |
70 | ||
71 | %description apidocs | |
72 | libmateweather API documentation. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libmateweather. | |
76 | ||
ab9372dc JB |
77 | %package -n python-mateweather |
78 | Summary: Python binding for libmateweather library | |
79 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki libmateweather | |
80 | Group: Libraries/Python | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Requires: python-pygobject >= 2.0 | |
83 | Requires: python-pygtk-gtk >= 2:2.0 | |
84 | ||
85 | %description -n python-mateweather | |
86 | Python binding for libmateweather library. | |
87 | ||
88 | %description -n python-mateweather -l pl.UTF-8 | |
89 | Wiązanie Pythona do biblioteki libmateweather. | |
90 | ||
95104df7 ER |
91 | %prep |
92 | %setup -q | |
95104df7 ER |
93 | |
94 | %build | |
89c90155 JP |
95 | %{__libtoolize} |
96 | %{__aclocal} -I m4 | |
97 | %{__autoconf} | |
98 | %{__autoheader} | |
99 | %{__automake} | |
95104df7 ER |
100 | %configure \ |
101 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 102 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95104df7 | 103 | --enable-python \ |
0475dace | 104 | --disable-silent-rules \ |
95104df7 ER |
105 | --disable-static |
106 | ||
0475dace | 107 | %{__make} |
95104df7 ER |
108 | |
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
115 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
89c90155 | 116 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
95104df7 ER |
117 | |
118 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
119 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
120 | %py_postclean | |
121 | ||
ab9372dc | 122 | # outdated copy of es |
95104df7 | 123 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
ab9372dc | 124 | |
95104df7 ER |
125 | %find_lang %{name} |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post | |
131 | /sbin/ldconfig | |
132 | %update_icon_cache hicolor | |
133 | %glib_compile_schemas | |
134 | ||
135 | %postun | |
136 | /sbin/ldconfig | |
137 | %update_icon_cache hicolor | |
138 | %glib_compile_schemas | |
139 | ||
140 | %files -f %{name}.lang | |
141 | %defattr(644,root,root,755) | |
89c90155 | 142 | %doc AUTHORS ChangeLog NEWS README |
ab9372dc JB |
143 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1 | |
95104df7 | 145 | %{_datadir}/libmateweather |
95104df7 | 146 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
ab9372dc JB |
147 | %{_iconsdir}/mate/*x*/status/weather-*.png |
148 | %{_iconsdir}/mate/scalable/status/weather-*.svg | |
95104df7 ER |
149 | |
150 | %files devel | |
151 | %defattr(644,root,root,755) | |
ab9372dc | 152 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
153 | %{_includedir}/libmateweather |
154 | %{_pkgconfigdir}/mateweather.pc | |
155 | ||
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
158 | %{_gtkdocdir}/libmateweather | |
ab9372dc JB |
159 | |
160 | %files -n python-mateweather | |
161 | %defattr(644,root,root,755) | |
162 | %dir %{py_sitedir}/mateweather | |
163 | %{py_sitedir}/mateweather/*.py[co] | |
164 | %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE | |
165 | %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/*.py[co] | |
166 | %attr(755,root,root) %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/mateweather.so |