From d819b9d6a7ace905ba663164e97e6c6e343fff2d Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 23 Sep 2022 15:28:53 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + README.md | 3 -- kpipewire.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 kpipewire.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de50451 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/kpipewire-5.25.90.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 497253f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# kpipewire - -The kpipewire package diff --git a/kpipewire.spec b/kpipewire.spec new file mode 100644 index 0000000..e09ac18 --- /dev/null +++ b/kpipewire.spec @@ -0,0 +1,98 @@ +Name: kpipewire +Summary: Set of convenient classes to use PipeWire in Qt projects +Version: 5.25.90 +Release: 1%{?dist} + +License: LGPLv2+ +URL: https://invent.kde.org/plasma/%{name} + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5Wayland) +BuildRequires: plasma-wayland-protocols-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtbase-private-devel +BuildRequires: qt5-qtdeclarative-devel +BuildRequires: qt5-qtwayland-devel + +BuildRequires: libavcodec-free-devel +BuildRequires: libavutil-free-devel +BuildRequires: libavformat-free-devel +BuildRequires: libepoxy-devel +BuildRequires: libdrm-devel +BuildRequires: libswscale-free-devel +BuildRequires: mesa-libgbm-devel +BuildRequires: pipewire-devel +BuildRequires: wayland-devel + +Requires: kf5-filesystem + +%description +It is developed in C++ and it's main use target is QML components. +As it's what's been useful, this framework focuses on graphical PipeWire +features. If it was necessary, these could be included. + +At the moment we offer two main components: + +- KPipeWire: offers the main components to connect to and render +PipeWire into your app. +- KPipeWireRecord: using FFmpeg, helps to record a PipeWire video stream +into a file. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: kpipewire-devel = %{version}-%{release} +Provides: kpipewire-devel%{?_isa} = %{version}-%{release} +Obsoletes: kpipewire-devel <= 1:5.2.0 +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%cmake_kf5 + +%cmake_build + + +%install +%cmake_install + +%find_lang %{name} --with-qt --all-name + +%ldconfig_scriptlets + +%files -f %{name}.lang +%license LICENSES/* +%{_libdir}/libKPipeWire.so.* +%{_libdir}/libKPipeWireRecord.so.* +%{_qt5_qmldir}/org/kde/pipewire/* +%{_kf5_datadir}/qlogging-categories5/*.categories + +%files devel +%{_libdir}/libKPipeWire.so +%{_libdir}/libKPipeWireRecord.so +%dir %{_includedir}/KPipeWire +%{_includedir}/KPipeWire/* +%dir %{_libdir}/cmake/KPipeWire +%{_libdir}/cmake/KPipeWire/*.cmake + +%changelog +* Mon Sep 19 2022 Jan Grulich - 5.25.90-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b4fcaf2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (kpipewire-5.25.90.tar.xz) = 995d817108ed893d8bb8f563c61bc66a788e939b50d1f03737fde1df3452bc9a5dd0878a3efac2ef142c39b3cd91f627f39b694157345c61c580d8dc0c7ee5bd