3 %bcond_with tests # build with tests
4 %define kdeframever 5.94
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: e0587825e0f9a9900907ebc5bdec4fc7
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Test-devel >= %{qtver}
19 BuildRequires: cmake >= 2.8.12
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}
63 %{!?with_tests:-DBUILD_TESTING=OFF} \
64 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
74 rm -rf $RPM_BUILD_ROOT
75 %ninja_install -C build
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
86 %ghost %{_libdir}/libKF5ThreadWeaver.so.5
87 %attr(755,root,root) %{_libdir}/libKF5ThreadWeaver.so.*.*
90 %defattr(644,root,root,755)
91 %{_includedir}/KF5/ThreadWeaver
92 %{_libdir}/cmake/KF5ThreadWeaver
93 %{_libdir}/libKF5ThreadWeaver.so
94 %{qt5dir}/mkspecs/modules/qt_ThreadWeaver.pri