]> git.pld-linux.org Git - packages/kf6-threadweaver.git/commitdiff
- updated to 5.249.0; rel 0.1
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Sun, 4 Feb 2024 13:53:29 +0000 (14:53 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Sun, 4 Feb 2024 13:53:29 +0000 (14:53 +0100)
kf6-threadweaver.spec [new file with mode: 0644]

diff --git a/kf6-threadweaver.spec b/kf6-threadweaver.spec
new file mode 100644 (file)
index 0000000..d7cc362
--- /dev/null
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.249.0
+%define                qtver           5.15.2
+%define                kfname          threadweaver
+
+Summary:       Helper for multithreaded programming
+Name:          kf6-%{kfname}
+Version:       5.249.0
+Release:       0.1
+License:       LGPL v2.1+
+Group:         X11/Libraries
+Source0:       https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 9b4e710a774efb96847a8e33d129e4d3
+URL:           http://www.kde.org/
+BuildRequires: Qt6Core-devel >= %{qtver}
+BuildRequires: Qt6Test-devel >= %{qtver}
+BuildRequires: cmake >= 3.16
+BuildRequires: kf6-extra-cmake-modules >= %{version}
+BuildRequires: ninja
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRequires: zlib-devel
+Requires:      kf6-dirs
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                qt6dir          %{_libdir}/qt6
+
+%description
+ThreadWeaver is a helper for multithreaded programming. It uses a
+job-based interface to queue tasks and execute them in an efficient
+way.
+
+You simply divide the workload into jobs, state the dependencies
+between the jobs and ThreadWeaver will work out the most efficient way
+of dividing the work between threads within a set of resource limits.
+
+See the information on [use cases](@ref usecases) and [why
+multithreading can help](@ref multithreading), as well as the usage
+section below, for more detailed information.
+
+%package devel
+Summary:       Header files for %{kfname} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{kfname}
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{kfname} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{kfname}.
+
+%prep
+%setup -q -n %{kfname}-%{version}
+
+%build
+%cmake -B build \
+       -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
+
+%if %{with tests}
+%ninja_build -C build test
+%endif
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%ghost %{_libdir}/libKF6ThreadWeaver.so.6
+%attr(755,root,root) %{_libdir}/libKF6ThreadWeaver.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF6/ThreadWeaver
+%{_libdir}/cmake/KF6ThreadWeaver
+%{_libdir}/libKF6ThreadWeaver.so
This page took 0.119813 seconds and 4 git commands to generate.