]>
Commit | Line | Data |
---|---|---|
adeff2bc JP |
1 | %define qtver 5.8 |
2 | Summary: Qt5 Configuration Tool | |
3 | Name: qt5ct | |
0a6843c7 | 4 | Version: 1.3 |
5d7ea0d1 | 5 | Release: 1 |
adeff2bc JP |
6 | License: BSD |
7 | Group: Applications | |
8 | Source0: https://downloads.sourceforge.net/qt5ct/%{name}-%{version}.tar.bz2 | |
0a6843c7 | 9 | # Source0-md5: 15c819d213e363075b6164c37b8a3fd1 |
adeff2bc JP |
10 | URL: https://sourceforge.net/projects/qt5ct/ |
11 | BuildRequires: Qt5Concurrent-devel >= %{qtver} | |
12 | BuildRequires: Qt5Core-devel >= %{qtver} | |
13 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
14 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
15 | BuildRequires: Qt5ThemeSupport-devel >= %{qtver} | |
16 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
17 | BuildRequires: qt5-linguist >= %{qtver} | |
18 | BuildRequires: qt5-qmake >= %{qtver} | |
19 | Requires: Qt5Core >= %{qtver} | |
20 | Requires: Qt5DBus >= %{qtver} | |
21 | Requires: Qt5Gui >= %{qtver} | |
22 | Requires: Qt5Widgets >= %{qtver} | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | qt5ct allows users to configure Qt5 settings (theme, font, icons, | |
27 | etc.) under DE/WM without Qt integration. | |
28 | ||
29 | %prep | |
30 | %setup -q | |
31 | ||
32 | %build | |
33 | qmake-qt5 | |
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} install \ | |
40 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
41 | ||
42 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/translations | |
43 | cp -p src/qt5ct/translations/*.qm $RPM_BUILD_ROOT%{_datadir}/%{name}/translations | |
44 | ||
45 | %find_lang %{name} --with-qm | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
51 | %update_desktop_database | |
52 | ||
53 | %postun | |
54 | %update_desktop_database_postun | |
55 | ||
56 | %files -f %{name}.lang | |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHORS ChangeLog README | |
59 | %attr(755,root,root) %{_bindir}/qt5ct | |
60 | %attr(755,root,root) %{_libdir}/qt5/plugins/platformthemes/libqt5ct.so | |
61 | %attr(755,root,root) %{_libdir}/qt5/plugins/styles/libqt5ct-style.so | |
62 | %dir %{_datadir}/qt5ct | |
63 | %{_datadir}/qt5ct/colors | |
64 | %{_datadir}/qt5ct/qss | |
65 | %{_desktopdir}/qt5ct.desktop | |
23d6adf4 | 66 | %dir %{_datadir}/qt5ct/translations |