]> git.pld-linux.org Git - packages/kf6-ki18n.git/commitdiff
- updated to 5.249.0; rel 0.1
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Sun, 4 Feb 2024 13:49:59 +0000 (14:49 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Sun, 4 Feb 2024 13:49:59 +0000 (14:49 +0100)
kf6-ki18n.spec [new file with mode: 0644]

diff --git a/kf6-ki18n.spec b/kf6-ki18n.spec
new file mode 100644 (file)
index 0000000..2b6f1a3
--- /dev/null
@@ -0,0 +1,116 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+# TODO:
+# find_lang needs to be updated (to handle pmap, pmapc, js files)
+%define                kdeframever     5.249.0
+%define                qtver           5.15.2
+%define                kfname          ki18n
+
+Summary:       KDE Gettext-based UI text internationalization
+Name:          kf6-%{kfname}
+Version:       5.249.0
+Release:       0.1
+License:       LGPL v2.1+
+Group:         X11/Libraries
+Source0:       https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 58db3e56a5a333f1219e7465e338a596
+URL:           http://www.kde.org/
+BuildRequires: Qt6Concurrent-devel >= %{qtver}
+BuildRequires: Qt6Core-devel >= %{qtver}
+BuildRequires: Qt6Qml-devel >= %{qtver}
+BuildRequires: Qt6Test-devel >= %{qtver}
+BuildRequires: cmake >= 3.16
+BuildRequires: kf6-extra-cmake-modules >= %{version}
+BuildRequires: ninja
+BuildRequires: python3
+BuildRequires: rpmbuild(macros) >= 1.736
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires:      Qt6Core >= %{qtver}
+Requires:      Qt6Qml >= %{qtver}
+Requires:      kf6-dirs
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                qt6dir          %{_libdir}/qt6
+
+%description
+KI18n provides functionality for internationalizing user interface
+text in applications, based on the GNU Gettext translation system. It
+wraps the standard Gettext functionality, so that the programmers and
+translators can use the familiar Gettext tools and workflows.
+
+KI18n provides additional functionality as well, for both programmers
+and translators, which can help to achieve a higher overall quality of
+source and translated text. This includes argument capturing,
+customizable markup, and translation scripting.
+
+%package devel
+Summary:       Header files for %{kfname} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{kfname}
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      cmake >= 3.16
+Requires:      gettext-tools
+
+%description devel
+Header files for %{kfname} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{kfname}.
+
+%prep
+%setup -q -n %{kfname}-%{version}
+
+%build
+%cmake -B build \
+       -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
+
+%if %{with tests}
+%ninja_build -C build test
+%endif
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%ninja_install -C build
+
+# not supported by glibc yet
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
+
+%find_lang %{kfname}6 --with-qm --all-name --with-kde
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{kfname}6.lang
+%defattr(644,root,root,755)
+%doc README.md
+%ghost %{_libdir}/libKF6I18n.so.6
+%attr(755,root,root) %{_libdir}/libKF6I18n.so.*.*
+%ghost %{_libdir}/libKF6I18nLocaleData.so.6
+%attr(755,root,root) %{_libdir}/libKF6I18nLocaleData.so.5.*.*
+%attr(755,root,root) %{qt6dir}/plugins/kf6/ktranscript.so
+%{_datadir}/qlogging-categories6/ki18n.categories
+%{_datadir}/qlogging-categories6/ki18n.renamecategories
+%dir %{_libdir}/qt6/qml/org/kde/i18n
+%dir %{_libdir}/qt6/qml/org/kde/i18n/localeData
+%attr(755,root,root) %{_libdir}/qt6/qml/org/kde/i18n/localeData/libki18nlocaledataqmlplugin.so
+%{_libdir}/qt6/qml/org/kde/i18n/localeData/qmldir
+%{_libdir}/qt6/qml/org/kde/i18n/localeData/kde-qmlmodule.version
+%{_libdir}/qt6/qml/org/kde/i18n/localeData/ki18nlocaledataqmlplugin.qmltypes
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF6/KI18n
+%{_includedir}/KF6/KI18nLocaleData
+%{_libdir}/cmake/KF6I18n
+%{_libdir}/libKF6I18n.so
+%{_libdir}/libKF6I18nLocaleData.so
This page took 0.166451 seconds and 4 git commands to generate.