2 # - dir /usr/include/KF5 not packaged
3 # /usr/lib/qt5/qml/org/kde not packaged
4 # /usr/lib/qt5/plugins/kf5
8 %define orgname threadweaver
10 Summary: Helper for multithreaded programming
16 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
17 # Source0-md5: 23426ad8caacb0e494d870c546a3783c
18 URL: http://www.kde.org/
19 BuildRequires: Qt5Core-devel
20 BuildRequires: Qt5Test-devel
21 BuildRequires: cmake >= 2.8.12
22 BuildRequires: kf5-extra-cmake-modules >= 1.0.0
23 BuildRequires: rpmbuild(macros) >= 1.164
24 BuildRequires: tar >= 1:1.22
26 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 %{orgname} development
46 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
47 Group: X11/Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for %{orgname} development.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe dla programistów używających %{orgname}.
57 %setup -q -n %{orgname}-%{version}
63 -DBIN_INSTALL_DIR=%{_bindir} \
64 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
65 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
66 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
67 -DQML_INSTALL_DIR=%{qt5dir}/qml \
68 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
69 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
70 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
71 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
72 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
73 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
78 rm -rf $RPM_BUILD_ROOT
80 %{__make} -C build/ install \
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %ghost %{_libdir}/libKF5ThreadWeaver.so.5
93 %attr(755,root,root) %{_libdir}/libKF5ThreadWeaver.so.5.0.0
96 %defattr(644,root,root,755)
97 %{_includedir}/KF5/ThreadWeaver
98 %{_includedir}/KF5/threadweaver_version.h
99 %{_libdir}/cmake/KF5ThreadWeaver
100 %{_libdir}/libKF5ThreadWeaver.so
101 %{qt5dir}/mkspecs/modules/qt_ThreadWeaver.pri