]>
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 | 4 | Version: 1.8.0 |
d2e04295 | 5 | Release: 2 |
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 | |
d2e04295 | 46 | pogodowych w środowisku MATE Desktop. Jest odgałęzieniem libgweather. |
95104df7 ER |
47 | |
48 | %package devel | |
49 | Summary: Development files for libmateweather | |
ab9372dc JB |
50 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather |
51 | Group: X11/Development/Libraries | |
95104df7 | 52 | Requires: %{name} = %{version}-%{release} |
ab9372dc JB |
53 | Requires: glib2-devel >= 1:2.26.0 |
54 | Requires: gtk+2-devel >= 2:2.11.0 | |
55 | Requires: libsoup-devel >= 2.4.0 | |
56 | Requires: libxml2-devel >= 1:2.6.0 | |
95104df7 ER |
57 | |
58 | %description devel | |
ab9372dc JB |
59 | Development files for libmateweather. |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki programistyczne biblioteki libmateweather. | |
95104df7 ER |
63 | |
64 | %package apidocs | |
65 | Summary: libmateweather API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
67 | Group: Documentation | |
68 | Requires: gtk-doc-common | |
d2e04295 ER |
69 | %if "%{_rpmversion}" >= "5" |
70 | BuildArch: noarch | |
71 | %endif | |
95104df7 ER |
72 | |
73 | %description apidocs | |
74 | libmateweather API documentation. | |
75 | ||
76 | %description apidocs -l pl.UTF-8 | |
77 | Dokumentacja API biblioteki libmateweather. | |
78 | ||
ab9372dc JB |
79 | %package -n python-mateweather |
80 | Summary: Python binding for libmateweather library | |
81 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki libmateweather | |
82 | Group: Libraries/Python | |
83 | Requires: %{name} = %{version}-%{release} | |
84 | Requires: python-pygobject >= 2.0 | |
85 | Requires: python-pygtk-gtk >= 2:2.0 | |
86 | ||
87 | %description -n python-mateweather | |
88 | Python binding for libmateweather library. | |
89 | ||
90 | %description -n python-mateweather -l pl.UTF-8 | |
91 | Wiązanie Pythona do biblioteki libmateweather. | |
92 | ||
95104df7 ER |
93 | %prep |
94 | %setup -q | |
95104df7 ER |
95 | |
96 | %build | |
89c90155 JP |
97 | %{__libtoolize} |
98 | %{__aclocal} -I m4 | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
95104df7 ER |
102 | %configure \ |
103 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 104 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95104df7 | 105 | --enable-python \ |
0475dace | 106 | --disable-silent-rules \ |
95104df7 ER |
107 | --disable-static |
108 | ||
0475dace | 109 | %{__make} |
95104df7 ER |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
117 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
89c90155 | 118 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
95104df7 ER |
119 | |
120 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
121 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
122 | %py_postclean | |
123 | ||
ab9372dc | 124 | # outdated copy of es |
95104df7 | 125 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
ab9372dc | 126 | |
95104df7 ER |
127 | %find_lang %{name} |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post | |
133 | /sbin/ldconfig | |
134 | %update_icon_cache hicolor | |
135 | %glib_compile_schemas | |
136 | ||
137 | %postun | |
138 | /sbin/ldconfig | |
139 | %update_icon_cache hicolor | |
140 | %glib_compile_schemas | |
141 | ||
142 | %files -f %{name}.lang | |
143 | %defattr(644,root,root,755) | |
89c90155 | 144 | %doc AUTHORS ChangeLog NEWS README |
ab9372dc JB |
145 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* |
146 | %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1 | |
95104df7 | 147 | %{_datadir}/libmateweather |
95104df7 | 148 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
ab9372dc JB |
149 | %{_iconsdir}/mate/*x*/status/weather-*.png |
150 | %{_iconsdir}/mate/scalable/status/weather-*.svg | |
95104df7 ER |
151 | |
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
ab9372dc | 154 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
155 | %{_includedir}/libmateweather |
156 | %{_pkgconfigdir}/mateweather.pc | |
157 | ||
158 | %files apidocs | |
159 | %defattr(644,root,root,755) | |
160 | %{_gtkdocdir}/libmateweather | |
ab9372dc JB |
161 | |
162 | %files -n python-mateweather | |
163 | %defattr(644,root,root,755) | |
164 | %dir %{py_sitedir}/mateweather | |
165 | %{py_sitedir}/mateweather/*.py[co] | |
166 | %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE | |
167 | %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/*.py[co] | |
168 | %attr(755,root,root) %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/mateweather.so |