]>
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 |
a43a5680 | 4 | Version: 1.22.1 |
a218511a | 5 | Release: 1 |
95104df7 ER |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
0d0e917d | 8 | Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz |
a43a5680 | 9 | # Source0-md5: 614d7b06bcbc42e3a93f56abd589398d |
b71d5fa8 | 10 | URL: http://wiki.mate-desktop.org/libmateweather |
89c90155 JP |
11 | BuildRequires: autoconf >= 2.59 |
12 | BuildRequires: automake >= 1:1.9 | |
2d9656ef | 13 | BuildRequires: gettext-tools |
b662ff7e JP |
14 | BuildRequires: glib2-devel >= 1:2.50.0 |
15 | BuildRequires: gtk+3-devel >= 3.22 | |
1551d369 | 16 | BuildRequires: gtk-doc >= 1.11 |
e835abcc | 17 | BuildRequires: intltool >= 0.50.1 |
89c90155 | 18 | BuildRequires: libsoup-devel >= 2.34.0 |
1551d369 | 19 | BuildRequires: libtool >= 2:2.2.6 |
ab9372dc | 20 | BuildRequires: libxml2-devel >= 1:2.6.0 |
95104df7 | 21 | BuildRequires: mate-common |
ab9372dc | 22 | BuildRequires: pkgconfig >= 1:0.19 |
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 |
b662ff7e | 29 | Requires: glib2 >= 1:2.50.0 |
95104df7 | 30 | Requires: gsettings-desktop-schemas |
b662ff7e | 31 | Requires: gtk+3 >= 3.22 |
00e63e63 | 32 | Requires: libsoup >= 2.34.0 |
ab9372dc | 33 | Requires: libxml2 >= 1:2.6.0 |
1ccc1d96 | 34 | Requires: mate-icon-theme |
66908064 | 35 | Requires: tzdata-zoneinfo >= 2016g |
667ba88b | 36 | Obsoletes: python-mateweather |
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} |
b662ff7e JP |
53 | Requires: glib2-devel >= 1:2.50.0 |
54 | Requires: gtk+3-devel >= 3.22 | |
00e63e63 | 55 | Requires: libsoup-devel >= 2.34.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 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 | ||
79 | %prep | |
80 | %setup -q | |
95104df7 ER |
81 | |
82 | %build | |
89c90155 JP |
83 | %{__libtoolize} |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
95104df7 ER |
88 | %configure \ |
89 | --with-html-dir=%{_gtkdocdir} \ | |
ab9372dc | 90 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
0475dace | 91 | --disable-silent-rules \ |
95104df7 ER |
92 | --disable-static |
93 | ||
0475dace | 94 | %{__make} |
95104df7 ER |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
95104df7 | 102 | |
cbd7e3cc | 103 | %if %{with python} |
95104df7 ER |
104 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
105 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
106 | %py_postclean | |
cbd7e3cc | 107 | %endif |
95104df7 | 108 | |
ab9372dc | 109 | # outdated copy of es |
95104df7 | 110 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
a43a5680 | 111 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ} |
ab9372dc | 112 | |
95104df7 ER |
113 | %find_lang %{name} |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post | |
119 | /sbin/ldconfig | |
1ccc1d96 | 120 | %update_icon_cache mate |
95104df7 ER |
121 | %glib_compile_schemas |
122 | ||
123 | %postun | |
124 | /sbin/ldconfig | |
1ccc1d96 | 125 | %update_icon_cache mate |
95104df7 ER |
126 | %glib_compile_schemas |
127 | ||
128 | %files -f %{name}.lang | |
129 | %defattr(644,root,root,755) | |
89c90155 | 130 | %doc AUTHORS ChangeLog NEWS README |
ab9372dc JB |
131 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* |
132 | %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1 | |
95104df7 | 133 | %{_datadir}/libmateweather |
95104df7 | 134 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
ab9372dc JB |
135 | %{_iconsdir}/mate/*x*/status/weather-*.png |
136 | %{_iconsdir}/mate/scalable/status/weather-*.svg | |
95104df7 ER |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
ab9372dc | 140 | %attr(755,root,root) %{_libdir}/libmateweather.so |
95104df7 ER |
141 | %{_includedir}/libmateweather |
142 | %{_pkgconfigdir}/mateweather.pc | |
143 | ||
144 | %files apidocs | |
145 | %defattr(644,root,root,755) | |
146 | %{_gtkdocdir}/libmateweather |