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