]>
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 |
5b1e083b | 4 | Version: 1.26.0 |
a218511a | 5 | Release: 1 |
95104df7 ER |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
5b1e083b JP |
8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 5071750f05fe60a1ee7691f24216948a | |
b71d5fa8 | 10 | URL: http://wiki.mate-desktop.org/libmateweather |
89c90155 JP |
11 | BuildRequires: autoconf >= 2.59 |
12 | BuildRequires: automake >= 1:1.9 | |
fad43947 | 13 | BuildRequires: gettext-tools >= 0.19.8 |
5b1e083b | 14 | BuildRequires: glib2-devel >= 1:2.56.0 |
b662ff7e | 15 | BuildRequires: gtk+3-devel >= 3.22 |
1551d369 | 16 | BuildRequires: gtk-doc >= 1.11 |
fad43947 | 17 | BuildRequires: libsoup-devel >= 2.54.0 |
1551d369 | 18 | BuildRequires: libtool >= 2:2.2.6 |
ab9372dc | 19 | BuildRequires: libxml2-devel >= 1:2.6.0 |
95104df7 | 20 | BuildRequires: mate-common |
ab9372dc | 21 | BuildRequires: pkgconfig >= 1:0.19 |
ab9372dc | 22 | BuildRequires: rpmbuild(macros) >= 1.219 |
95104df7 | 23 | BuildRequires: tar >= 1:1.22 |
66908064 | 24 | BuildRequires: tzdata-zoneinfo >= 2016g |
95104df7 | 25 | BuildRequires: xz |
ab9372dc | 26 | Requires(post,postun): /sbin/ldconfig |
00e63e63 | 27 | Requires(post,postun): gtk-update-icon-cache |
5b1e083b | 28 | Requires: glib2 >= 1:2.56.0 |
95104df7 | 29 | Requires: gsettings-desktop-schemas |
b662ff7e | 30 | Requires: gtk+3 >= 3.22 |
fad43947 | 31 | Requires: libsoup >= 2.54.0 |
ab9372dc | 32 | Requires: libxml2 >= 1:2.6.0 |
1ccc1d96 | 33 | Requires: mate-icon-theme |
66908064 | 34 | Requires: tzdata-zoneinfo >= 2016g |
667ba88b | 35 | Obsoletes: python-mateweather |
c7df76e7 | 36 | Conflicts: mate-applet-gweather < 1.6.1 |
95104df7 ER |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
ab9372dc JB |
40 | libmateweather is a library to allow MATE Desktop to display weather |
41 | information. It's a fork of libgweather. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | libmateweather to biblioteka umożliwiająca wyświetlanie informacji | |
d2e04295 | 45 | pogodowych w środowisku MATE Desktop. Jest odgałęzieniem 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} |
5b1e083b | 52 | Requires: glib2-devel >= 1:2.56.0 |
b662ff7e | 53 | Requires: gtk+3-devel >= 3.22 |
fad43947 | 54 | Requires: libsoup-devel >= 2.54.0 |
ab9372dc | 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 | |
d2e04295 | 68 | BuildArch: noarch |
95104df7 ER |
69 | |
70 | %description apidocs | |
71 | libmateweather API documentation. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki libmateweather. | |
75 | ||
76 | %prep | |
77 | %setup -q | |
95104df7 ER |
78 | |
79 | %build | |
89c90155 JP |
80 | %{__libtoolize} |
81 | %{__aclocal} -I m4 | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
95104df7 ER |
85 | %configure \ |
86 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 87 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
0475dace | 88 | --disable-silent-rules \ |
95104df7 ER |
89 | --disable-static |
90 | ||
0475dace | 91 | %{__make} |
95104df7 ER |
92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
95104df7 | 99 | |
cbd7e3cc | 100 | %if %{with python} |
95104df7 ER |
101 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
102 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
103 | %py_postclean | |
cbd7e3cc | 104 | %endif |
95104df7 | 105 | |
ab9372dc | 106 | # outdated copy of es |
95104df7 | 107 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
a43a5680 | 108 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ} |
ab9372dc | 109 | |
95104df7 ER |
110 | %find_lang %{name} |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post | |
116 | /sbin/ldconfig | |
5b1e083b | 117 | %update_icon_cache hicolor |
95104df7 ER |
118 | %glib_compile_schemas |
119 | ||
120 | %postun | |
121 | /sbin/ldconfig | |
5b1e083b | 122 | %update_icon_cache hicolor |
95104df7 ER |
123 | %glib_compile_schemas |
124 | ||
125 | %files -f %{name}.lang | |
126 | %defattr(644,root,root,755) | |
89c90155 | 127 | %doc AUTHORS ChangeLog NEWS README |
ab9372dc JB |
128 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* |
129 | %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1 | |
95104df7 | 130 | %{_datadir}/libmateweather |
95104df7 | 131 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
5b1e083b JP |
132 | %{_iconsdir}/hicolor/*x*/status/weather-*.png |
133 | %{_iconsdir}/hicolor/scalable/status/weather-*.svg | |
95104df7 ER |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
ab9372dc | 137 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
138 | %{_includedir}/libmateweather |
139 | %{_pkgconfigdir}/mateweather.pc | |
140 | ||
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %{_gtkdocdir}/libmateweather |