]>
Commit | Line | Data |
---|---|---|
5bff2a83 | 1 | # TODO: |
cdeaa9d4 | 2 | # find_lang needs to be updated (to handle pmap, pmapc, js files) |
971a88d6 | 3 | %define kdeframever 5.90 |
7c63c1b2 | 4 | %define qtver 5.15.2 |
cdeaa9d4 | 5 | %define kfname ki18n |
5bff2a83 WF |
6 | |
7 | Summary: KDE Gettext-based UI text internationalization | |
cdeaa9d4 | 8 | Name: kf5-%{kfname} |
971a88d6 | 9 | Version: 5.90.0 |
83144289 | 10 | Release: 1 |
5bff2a83 WF |
11 | License: LGPL v2.1+ |
12 | Group: X11/Libraries | |
1b5ebfe3 | 13 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
971a88d6 | 14 | # Source0-md5: 5b03ba9f3ca0c0ea5eccb554151e7eb1 |
5bff2a83 | 15 | URL: http://www.kde.org/ |
cdeaa9d4 AM |
16 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
04d1d4c8 | 18 | BuildRequires: Qt5Qml-devel >= %{qtver} |
cdeaa9d4 | 19 | BuildRequires: Qt5Test-devel >= %{qtver} |
7c63c1b2 | 20 | BuildRequires: cmake >= 3.16 |
66a5c431 | 21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
aca7f551 | 22 | BuildRequires: ninja |
04d1d4c8 | 23 | BuildRequires: python3 |
3ebab2e0 | 24 | BuildRequires: rpmbuild(macros) >= 1.736 |
70360af3 ER |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
04d1d4c8 JP |
27 | Requires: Qt5Core >= %{qtver} |
28 | Requires: Qt5Qml >= %{qtver} | |
08e4e1a9 | 29 | Requires: kf5-dirs |
5bff2a83 WF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %define qt5dir %{_libdir}/qt5 | |
33 | ||
34 | %description | |
35 | KI18n provides functionality for internationalizing user interface | |
36 | text in applications, based on the GNU Gettext translation system. It | |
37 | wraps the standard Gettext functionality, so that the programmers and | |
38 | translators can use the familiar Gettext tools and workflows. | |
39 | ||
40 | KI18n provides additional functionality as well, for both programmers | |
41 | and translators, which can help to achieve a higher overall quality of | |
42 | source and translated text. This includes argument capturing, | |
43 | customizable markup, and translation scripting. | |
44 | ||
45 | %package devel | |
cdeaa9d4 AM |
46 | Summary: Header files for %{kfname} development |
47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
5bff2a83 WF |
48 | Group: X11/Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
7c63c1b2 | 50 | Requires: cmake >= 3.16 |
04d1d4c8 | 51 | Requires: gettext-tools |
5bff2a83 WF |
52 | |
53 | %description devel | |
cdeaa9d4 | 54 | Header files for %{kfname} development. |
5bff2a83 WF |
55 | |
56 | %description devel -l pl.UTF-8 | |
cdeaa9d4 | 57 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5bff2a83 WF |
58 | |
59 | %prep | |
cdeaa9d4 | 60 | %setup -q -n %{kfname}-%{version} |
5bff2a83 WF |
61 | |
62 | %build | |
63 | install -d build | |
64 | cd build | |
aca7f551 | 65 | %cmake -G Ninja \ |
cdeaa9d4 | 66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5bff2a83 | 67 | ../ |
aca7f551 | 68 | %ninja_build |
5bff2a83 WF |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
aca7f551 | 72 | %ninja_install -C build |
5bff2a83 | 73 | |
5d425044 | 74 | %find_lang %{kfname}5 --with-qm --all-name --with-kde |
5bff2a83 WF |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
cdeaa9d4 | 82 | %files -f %{kfname}5.lang |
5bff2a83 WF |
83 | %defattr(644,root,root,755) |
84 | %doc README.md | |
d2df0d02 | 85 | %ghost %{_libdir}/libKF5I18n.so.5 |
ecb0c7bd | 86 | %attr(755,root,root) %{_libdir}/libKF5I18n.so.*.* |
97cd71b6 WF |
87 | %ghost %{_libdir}/libKF5I18nLocaleData.so.5 |
88 | %attr(755,root,root) %{_libdir}/libKF5I18nLocaleData.so.5.*.* | |
5bff2a83 | 89 | %attr(755,root,root) %{qt5dir}/plugins/kf5/ktranscript.so |
223a6ebd | 90 | %{_datadir}/qlogging-categories5/ki18n.categories |
f0d65952 | 91 | %{_datadir}/qlogging-categories5/ki18n.renamecategories |
97cd71b6 WF |
92 | %dir %{_libdir}/qt5/qml/org/kde/i18n |
93 | %dir %{_libdir}/qt5/qml/org/kde/i18n/localeData | |
94 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/i18n/localeData/libki18nlocaledataqmlplugin.so | |
95 | %{_libdir}/qt5/qml/org/kde/i18n/localeData/qmldir | |
5bff2a83 WF |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %{_includedir}/KF5/KI18n | |
100 | %{_includedir}/KF5/ki18n_version.h | |
97cd71b6 | 101 | %{_includedir}/KF5/KI18nLocaleData |
5bff2a83 | 102 | %{_libdir}/cmake/KF5I18n |
d2df0d02 | 103 | %{_libdir}/libKF5I18n.so |
97cd71b6 | 104 | %{_libdir}/libKF5I18nLocaleData.so |
5bff2a83 | 105 | %{qt5dir}/mkspecs/modules/qt_KI18n.pri |