Init package

This commit is contained in:
misaka00251 2022-09-07 17:48:56 +08:00
parent 6807f9ef31
commit cf795b15b3
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
3 changed files with 79 additions and 0 deletions

BIN
kdnssd-5.97.0.tar.xz Normal file

Binary file not shown.

75
kf5-kdnssd.spec Normal file
View File

@ -0,0 +1,75 @@
%global framework kdnssd
Name: kf5-%{framework}
Version: 5.97.0
Release: 1
Summary: KDE Frameworks 5 Tier 1 integration module for DNS-SD services (Zeroconf)
License: LGPLv2+
URL: https://invent.kde.org/frameworks/%{framework}
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
BuildRequires: avahi-devel
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel
Requires: nss-mdns
Requires: kf5-filesystem >= %{majmin}
%description
KDE Frameworks 5 Tier 1 integration module for DNS-SD services (Zeroconf)
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{framework}-%{version}
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang_kf5 kdnssd5_qt
%ldconfig_scriptlets
%files -f kdnssd5_qt.lang
%doc README.md
%license LICENSES/*.txt
%{_kf5_libdir}/libKF5DNSSD.so.*
%files devel
%{_kf5_includedir}/KDNSSD/
%{_kf5_libdir}/libKF5DNSSD.so
%{_kf5_libdir}/cmake/KF5DNSSD/
%{_kf5_archdatadir}/mkspecs/modules/qt_KDNSSD.pri
%changelog
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
- Init package

4
kf5-kdnssd.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/kdnssd
tag_prefix: "^v"
separator: "."