This commit is contained in:
2026-01-28 16:15:24 +08:00
parent 3172bec83e
commit 0cd6391329
4 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
%define qt6_version 6.8.0
%define rname syndication
# Full KF6 version (e.g. 6.22.0)
%{!?_kf6_version: %global _kf6_version %{version}}
Name: kf6-syndication
Version: 6.20.0
Release: 0
Summary: RSS/Atom parsing library
License: LGPL-2.1-or-later
URL: https://www.kde.org
Source: https://ftp.ntu.edu.tw/pub/kde/stable/frameworks/6.20/%{rname}-%{version}.tar.xz
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
BuildRequires: cmake(KF6Codecs) >= %{_kf6_version}
BuildRequires: cmake(Qt6Network) >= %{qt6_version}
BuildRequires: cmake(Qt6ToolsTools) >= %{qt6_version}
BuildRequires: cmake(Qt6Xml) >= %{qt6_version}
%description
KF6Syndication is an RSS/Atom parsing library by KDE, which
also provides an API to fetch feeds from the network.
%package -n libKF6Syndication6
Summary: RSS/Atom parsing library
Requires: kf6-syndication >= %{version}
%description -n libKF6Syndication6
KF6Syndication is an RSS/Atom parsing library, which
also provides an API to fetch feeds from the network.
This package contains the base library.
%package devel
Summary: RSS/Atom parsing library - development headers
Requires: libKF6Syndication6 = %{version}
%description devel
KF6Syndication is an RSS/Atom parsing library, which
also provides an API to fetch feeds from the network. This
package contains development headers.
%prep
%autosetup -p1 -n %{rname}-%{version}
%build
%cmake_kf6
%kf6_build
%install
%kf6_install
%ldconfig_scriptlets -n libKF6Syndication6
%files
%{_kf6_debugdir}/syndication.categories
%{_kf6_debugdir}/syndication.renamecategories
%files -n libKF6Syndication6
%license LICENSES/*
%doc README.md
%{_kf6_libdir}/libKF6Syndication.so.*
%files devel
%{_kf6_cmakedir}/KF6Syndication/
%{_kf6_includedir}/Syndication/
%{_kf6_libdir}/libKF6Syndication.so
%changelog