]>
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 |
1b6b846d | 4 | Version: 1.26.3 |
a218511a | 5 | Release: 1 |
95104df7 ER |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
5b1e083b | 8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
1b6b846d | 9 | # Source0-md5: 891a0161b24f046a75125683a56551b5 |
8a7bd47b | 10 | URL: https://wiki.mate-desktop.org/mate-desktop/libraries/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 |
bc164b2c | 22 | BuildRequires: rpm-build >= 4.6 |
ab9372dc | 23 | BuildRequires: rpmbuild(macros) >= 1.219 |
95104df7 | 24 | BuildRequires: tar >= 1:1.22 |
66908064 | 25 | BuildRequires: tzdata-zoneinfo >= 2016g |
95104df7 | 26 | BuildRequires: xz |
ab9372dc | 27 | Requires(post,postun): /sbin/ldconfig |
00e63e63 | 28 | Requires(post,postun): gtk-update-icon-cache |
5b1e083b | 29 | Requires: glib2 >= 1:2.56.0 |
95104df7 | 30 | Requires: gsettings-desktop-schemas |
b662ff7e | 31 | Requires: gtk+3 >= 3.22 |
963f77fe | 32 | Requires: hicolor-icon-theme |
fad43947 | 33 | Requires: libsoup >= 2.54.0 |
ab9372dc | 34 | Requires: libxml2 >= 1:2.6.0 |
66908064 | 35 | Requires: tzdata-zoneinfo >= 2016g |
8a7bd47b | 36 | Obsoletes: python-mateweather < 1.18.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} |
5b1e083b | 53 | Requires: glib2-devel >= 1:2.56.0 |
b662ff7e | 54 | Requires: gtk+3-devel >= 3.22 |
fad43947 | 55 | Requires: libsoup-devel >= 2.54.0 |
ab9372dc | 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 | 69 | BuildArch: noarch |
95104df7 ER |
70 | |
71 | %description apidocs | |
72 | libmateweather API documentation. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libmateweather. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
95104df7 ER |
79 | |
80 | %build | |
89c90155 JP |
81 | %{__libtoolize} |
82 | %{__aclocal} -I m4 | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
95104df7 ER |
86 | %configure \ |
87 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 88 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
0475dace | 89 | --disable-silent-rules \ |
95104df7 ER |
90 | --disable-static |
91 | ||
0475dace | 92 | %{__make} |
95104df7 ER |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
95104df7 | 100 | |
ab9372dc | 101 | # outdated copy of es |
95104df7 | 102 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
a43a5680 | 103 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ} |
ab9372dc | 104 | |
95104df7 ER |
105 | %find_lang %{name} |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post | |
111 | /sbin/ldconfig | |
5b1e083b | 112 | %update_icon_cache hicolor |
95104df7 ER |
113 | %glib_compile_schemas |
114 | ||
115 | %postun | |
116 | /sbin/ldconfig | |
5b1e083b | 117 | %update_icon_cache hicolor |
95104df7 ER |
118 | %glib_compile_schemas |
119 | ||
120 | %files -f %{name}.lang | |
121 | %defattr(644,root,root,755) | |
89c90155 | 122 | %doc AUTHORS ChangeLog NEWS README |
ab9372dc JB |
123 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1 | |
95104df7 | 125 | %{_datadir}/libmateweather |
95104df7 | 126 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
5b1e083b JP |
127 | %{_iconsdir}/hicolor/*x*/status/weather-*.png |
128 | %{_iconsdir}/hicolor/scalable/status/weather-*.svg | |
95104df7 ER |
129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
ab9372dc | 132 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
133 | %{_includedir}/libmateweather |
134 | %{_pkgconfigdir}/mateweather.pc | |
135 | ||
136 | %files apidocs | |
137 | %defattr(644,root,root,755) | |
138 | %{_gtkdocdir}/libmateweather |