]> git.pld-linux.org Git - packages/kp5-kpipewire.git/commitdiff
- new
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 12 Oct 2022 13:05:40 +0000 (15:05 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 12 Oct 2022 13:05:40 +0000 (15:05 +0200)
kp5-kpipewire.spec [new file with mode: 0644]

diff --git a/kp5-kpipewire.spec b/kp5-kpipewire.spec
new file mode 100644 (file)
index 0000000..bd50dcb
--- /dev/null
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeplasmaver    5.26.0
+%define                qtver           5.15.2
+%define                kpname          kpipewire
+Summary:       a set of convenient classes to use PipeWire in Qt projects
+Name:          kp5-%{kpname}
+Version:       5.26.0
+Release:       1
+License:       GPL v2+/LGPL v2.1+
+Group:         X11/Libraries
+Source0:       https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
+# Source0-md5: 4c7a51e88240a871a614ed2bfc0d5474
+URL:           http://www.kde.org/
+BuildRequires: cmake >= 2.8.12
+BuildRequires: kf5-extra-cmake-modules
+BuildRequires: ninja
+BuildRequires: pipewire-devel
+BuildRequires: qt5-build >= %{qtver}
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+kpipewire offers a set of convenient classes to use PipeWire
+(https://pipewire.org/) in Qt projects.
+
+%package devel
+Summary:       Header files for %{kpname} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{kpname}
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      cmake >= 3.16
+
+%description devel
+Header files for %{kpname} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{kpname}.
+
+%prep
+%setup -q -n %{kpname}-%{version}
+
+%build
+install -d build
+cd build
+%cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+       -DHTML_INSTALL_DIR=%{_kdedocdir} \
+       ..
+%ninja_build
+
+%if %{with tests}
+ctest
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%ninja_install -C build
+
+%find_lang %{kpname} --all-name --with-kde
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{kpname}.lang
+%defattr(644,root,root,755)
+%ghost %{_libdir}/libKPipeWire.so.5
+%{_libdir}/libKPipeWire.so.5.*.*
+%ghost %{_libdir}/libKPipeWireRecord.so.5
+%{_libdir}/libKPipeWireRecord.so.5.*.*
+%{_libdir}/qt5/qml/org/kde/pipewire/libKPipeWireDeclarative.so
+%{_libdir}/qt5/qml/org/kde/pipewire/qmldir
+%{_libdir}/qt5/qml/org/kde/pipewire/record/libKPipeWireRecordDeclarative.so
+%{_libdir}/qt5/qml/org/kde/pipewire/record/qmldir
+%{_datadir}/qlogging-categories5/kpipewire.categories
+%{_datadir}/qlogging-categories5/kpipewirerecord.categories
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KPipeWire
+%{_libdir}/cmake/KPipeWire
+%{_libdir}/libKPipeWire.so
+%{_libdir}/libKPipeWireRecord.so
This page took 0.306142 seconds and 4 git commands to generate.