]>
Commit | Line | Data |
---|---|---|
78bb78a1 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ac78c0aa | 4 | %define kdeappsver 22.04.0 |
1638213a | 5 | %define kframever 5.56.0 |
986f5069 WF |
6 | %define qtver 5.9.0 |
7 | %define kaname kdenetwork-filesharing | |
8 | Summary: KDENetwork file sharing | |
9 | Name: ka5-%{kaname} | |
ac78c0aa | 10 | Version: 22.04.0 |
986f5069 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Libraries | |
8bfbaf82 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ac78c0aa | 15 | # Source0-md5: 7a8b3344cf7db7c78e12a15d1c0dfacb |
986f5069 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Widgets-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
21 | BuildRequires: gettext-devel | |
1638213a WF |
22 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} |
23 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
24 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
25 | BuildRequires: kf5-kio-devel >= %{kframever} | |
26 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
26e92950 | 27 | BuildRequires: ninja |
986f5069 WF |
28 | BuildRequires: qt5-build >= %{qtver} |
29 | BuildRequires: rpmbuild(macros) >= 1.164 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRequires: zlib-devel | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | kcontrol filesharing config module for SMB. | |
37 | ||
fc2aa5b9 WF |
38 | %description -l pl.UTF-8 |
39 | Moduł do konfiguracji współdzielenia plików przez SMB. | |
40 | ||
986f5069 WF |
41 | %prep |
42 | %setup -q -n %{kaname}-%{version} | |
43 | ||
44 | %build | |
45 | install -d build | |
46 | cd build | |
47 | %cmake \ | |
26e92950 | 48 | -G Ninja \ |
78bb78a1 | 49 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
1638213a | 50 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
986f5069 WF |
51 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
52 | .. | |
26e92950 | 53 | %ninja_build |
986f5069 | 54 | |
78bb78a1 WF |
55 | %if %{with tests} |
56 | ctest | |
57 | %endif | |
58 | ||
59 | ||
986f5069 WF |
60 | %install |
61 | rm -rf $RPM_BUILD_ROOT | |
26e92950 | 62 | %ninja_install -C build |
986f5069 WF |
63 | |
64 | %find_lang %{kaname} --all-name --with-kde | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files -f %{kaname}.lang | |
70 | %defattr(644,root,root,755) | |
8bfbaf82 WF |
71 | %attr(755,root,root) %{_prefix}/libexec/kauth/authhelper |
72 | %{_datadir}/dbus-1/system-services/org.kde.filesharing.samba.service | |
73 | %{_datadir}/dbus-1/system.d/org.kde.filesharing.samba.conf | |
74 | %{_datadir}/metainfo/org.kde.kdenetwork-filesharing.metainfo.xml | |
75 | %{_datadir}/polkit-1/actions/org.kde.filesharing.samba.policy | |
388de771 | 76 | %{_libdir}/qt5/plugins/kf5/propertiesdialog/sambausershareplugin.so |