Name:          libmateweather
Version:       1.28.0
Release:       5
Summary:       Libraries to allow MATE Desktop to display weather information
# Automatically converted from old format: GPLv2+ and LGPLv2+ - review is highly recommended.
License:       GPL-2.0-or-later AND LGPLv2+
URL:           https://mate-desktop.org

# for downloading the tarball use 'spectool -g -R libmateweather.spec'
# Source for release-builds.
Source0:     https://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz
Patch01:       libmateweather-1.28.0-fix-sensitive-words.patch
Patch6001:     backport-Port-to-libsoup-3.0.patch
Patch6002:     libmateweather_0001-Update-AviationWeather-URL_1.28.patch

BuildRequires: make gcc
BuildRequires: autoconf automake libtool
BuildRequires: pkgconfig(gio-2.0) >= 2.25.0
BuildRequires: pkgconfig(glib-2.0) >= 2.56.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires: pkgconfig(libsoup-3.0) >= 3.0.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires: mate-common

Requires:      %{name}-data = %{version}-%{release}

%description
Libraries to allow MATE Desktop to display weather information

%package data
Summary: Data files for the libmateweather
BuildArch: noarch
Requires: %{name} = %{version}-%{release}

%description data
This package contains shared data needed for libmateweather.

%package devel
Summary:  Development files for libmateweather
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
Development files for libmateweather


%prep
%autosetup -p1

%build
NOCONFIGURE=yes ./autogen.sh
%configure --disable-static           \
           --disable-schemas-compile  \
           --enable-gtk-doc-html

%make_build

%install
%{make_install}

%find_lang %{name} --with-gnome --all-name

%files
%license COPYING
%doc AUTHORS README
%{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
%{_libdir}/libmateweather.so.1*

%files data -f %{name}.lang
%{_datadir}/icons/hicolor/*/status/*
%{_datadir}/libmateweather/

%files devel
%%doc %{_datadir}/gtk-doc/html/libmateweather/
%{_libdir}/libmateweather.so
%{_includedir}/libmateweather/
%{_libdir}/pkgconfig/mateweather.pc

%changelog
* Tue Sep 01 2026 pengmeng <pengmeng@kylinsec.com.cn> - 1.28.0-5
- Replace LicenseRef-Callaway-LGPLv2+ with LGPLv2+

* Thu Nov 20 2025 yueyaoqiang <yueyaoqiang@kylinos.cn> - 1.28.0-4
- convert license to SPDX,and Update AviationWeather URL

* Sun Oct 26 2025 Funda Wang <fundawang@yeah.net> - 1.28.0-3
- build with libsoup 3.0

* Mon Jul 28 2025 peijiankang <peijiankang@kylinos.cn> - 1.28.0-2
- fix sensitive words

* Mon Mar 17 2025 yuanxing <yuanxing@kylinsec.com.cn> - 1.28.0-1
- Initial build