2 # find_lang needs to be updated (to handle pmap, pmapc, js files)
3 %define kdeframever 5.67
7 Summary: KDE Gettext-based UI text internationalization
13 Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
14 # Source0-md5: e6a5226f42a3cc444938fb80a7463ab4
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Concurrent-devel >= %{qtver}
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Script-devel >= %{qtver}
19 BuildRequires: Qt5Test-devel >= %{qtver}
20 BuildRequires: cmake >= 2.8.12
21 BuildRequires: gettext-devel
22 BuildRequires: kf5-extra-cmake-modules >= %{version}
24 BuildRequires: perl-base
25 BuildRequires: rpmbuild(macros) >= 1.164
26 BuildRequires: tar >= 1:1.22
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define qt5dir %{_libdir}/qt5
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.
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.
45 Summary: Header files for %{kfname} development
46 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
47 Group: X11/Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for %{kfname} development.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe dla programistów używających %{kfname}.
57 %setup -q -n %{kfname}-%{version}
63 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
68 rm -rf $RPM_BUILD_ROOT
69 %ninja_install -C build
71 %find_lang %{kfname}5 --with-qm --all-name --with-kde
74 rm -rf $RPM_BUILD_ROOT
76 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
79 %files -f %{kfname}5.lang
80 %defattr(644,root,root,755)
82 %attr(755,root,root) %ghost %{_libdir}/libKF5I18n.so.5
83 %attr(755,root,root) %{_libdir}/libKF5I18n.so.*.*
84 %attr(755,root,root) %{qt5dir}/plugins/kf5/ktranscript.so
85 %{_datadir}/qlogging-categories5/ki18n.categories
88 %defattr(644,root,root,755)
89 %{_includedir}/KF5/KI18n
90 %{_includedir}/KF5/ki18n_version.h
91 %{_libdir}/cmake/KF5I18n
92 %attr(755,root,root) %{_libdir}/libKF5I18n.so
93 %{qt5dir}/mkspecs/modules/qt_KI18n.pri