3 %bcond_with tests # build with tests
4 %define kdeframever 5.114
6 %define kfname threadweaver
8 Summary: Helper for multithreaded programming
14 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5: bfcc9ef729a0390a21243ba67b324277
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Test-devel >= %{qtver}
19 BuildRequires: cmake >= 3.16
20 BuildRequires: kf5-extra-cmake-modules >= %{version}
22 BuildRequires: rpmbuild(macros) >= 1.164
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define qt5dir %{_libdir}/qt5
32 ThreadWeaver is a helper for multithreaded programming. It uses a
33 job-based interface to queue tasks and execute them in an efficient
36 You simply divide the workload into jobs, state the dependencies
37 between the jobs and ThreadWeaver will work out the most efficient way
38 of dividing the work between threads within a set of resource limits.
40 See the information on [use cases](@ref usecases) and [why
41 multithreading can help](@ref multithreading), as well as the usage
42 section below, for more detailed information.
45 Summary: Header files for %{kfname} development
46 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
47 Group: X11/Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for %{kfname} development.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe dla programistów używających %{kfname}.
57 %setup -q -n %{kfname}-%{version}
62 %{!?with_tests:-DBUILD_TESTING=OFF} \
63 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
68 %ninja_build -C build test
73 rm -rf $RPM_BUILD_ROOT
74 %ninja_install -C build
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
85 %ghost %{_libdir}/libKF5ThreadWeaver.so.5
86 %attr(755,root,root) %{_libdir}/libKF5ThreadWeaver.so.*.*
89 %defattr(644,root,root,755)
90 %{_includedir}/KF5/ThreadWeaver
91 %{_libdir}/cmake/KF5ThreadWeaver
92 %{_libdir}/libKF5ThreadWeaver.so
93 %{qt5dir}/mkspecs/modules/qt_ThreadWeaver.pri