]>
Commit | Line | Data |
---|---|---|
3ac26200 WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname pim-sieve-editor | |
4 | Summary: Sieve editor | |
5 | Name: ka5-%{kaname} | |
6 | Version: 18.12.0 | |
7 | Release: 1 | |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Applications | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
11 | # Source0-md5: 24898ae4f7f5d3c7ed61120b7c0f72b5 | |
12 | URL: http://www.kde.org/ | |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel | |
15 | BuildRequires: Qt5Network-devel | |
16 | BuildRequires: Qt5Test-devel | |
17 | BuildRequires: Qt5Widgets-devel | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: gettext-devel | |
20 | BuildRequires: ka5-kimap-devel >= 18.12.0 | |
21 | BuildRequires: ka5-kmailtransport-devel >= 18.12.0 | |
22 | BuildRequires: ka5-kpimtextedit-devel >= 18.12.0 | |
23 | BuildRequires: ka5-libksieve-devel >= 18.12.0 | |
24 | BuildRequires: ka5-pimcommon-devel >= 18.12.0 | |
25 | BuildRequires: kf5-extra-cmake-modules >= 5.51.0 | |
26 | BuildRequires: kf5-kbookmarks-devel >= 5.51.0 | |
27 | BuildRequires: kf5-kcrash-devel >= 5.51.0 | |
28 | BuildRequires: kf5-kdbusaddons-devel >= 5.51.0 | |
29 | BuildRequires: kf5-kdoctools-devel >= 5.51.0 | |
30 | BuildRequires: kf5-kiconthemes-devel >= 5.51.0 | |
31 | BuildRequires: kf5-kio-devel >= 5.51.0 | |
32 | BuildRequires: qt5-build >= %{qtver} | |
33 | BuildRequires: rpmbuild(macros) >= 1.164 | |
34 | BuildRequires: shared-mime-info | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Sieve Editor is an editor for Sieve scripts used for email filtering | |
41 | on a mail server. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{kaname}-%{version} | |
45 | ||
46 | %build | |
47 | install -d build | |
48 | cd build | |
49 | %cmake \ | |
50 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
51 | .. | |
52 | %{__make} | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | %{__make} -C build install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %find_lang %{kaname} --all-name --with-kde | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -p /sbin/ldconfig | |
65 | %postun -p /sbin/ldconfig | |
66 | ||
67 | %files -f %{kaname}.lang | |
68 | %defattr(644,root,root,755) | |
69 | /etc/xdg/sieveeditor.categories | |
70 | /etc/xdg/sieveeditor.renamecategories | |
71 | %attr(755,root,root) %{_bindir}/sieveeditor | |
72 | %attr(755,root,root) %ghost %{_libdir}/libsieveeditor.so.5 | |
73 | %attr(755,root,root) %{_libdir}/libsieveeditor.so.5.*.* | |
74 | %{_desktopdir}/org.kde.sieveeditor.desktop | |
75 | %{_datadir}/config.kcfg/sieveeditorglobalconfig.kcfg | |
aea56455 | 76 | %attr(755,root,root) %{_datadir}/kconf_update/sieveeditor-15.08-kickoff.sh |
3ac26200 WF |
77 | %{_datadir}/kconf_update/sieveeditor.upd |
78 | %{_datadir}/metainfo/org.kde.sieveeditor.appdata.xml |