]>
Commit | Line | Data |
---|---|---|
dcf9cdf8 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
d9ee54ef | 4 | %define kdeappsver 22.12.0 |
cc647cd9 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
5ac5a0d0 | 7 | %define kaname lokalize |
b55034f0 JB |
8 | Summary: Lokalize - computer-aided translation system |
9 | Summary(pl.UTF-8): Lokalize - system komputerowo wspomaganego tłumaczenia | |
5ac5a0d0 | 10 | Name: ka5-%{kaname} |
d9ee54ef | 11 | Version: 22.12.0 |
837dae3c | 12 | Release: 1 |
5ac5a0d0 WF |
13 | License: GPL v2+/LGPL v2.1+ |
14 | Group: X11/Applications | |
e4529a3d | 15 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
d9ee54ef | 16 | # Source0-md5: 36bac2c193b8d500bd4eae70a67b1bcd |
5ac5a0d0 WF |
17 | URL: http://www.kde.org/ |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
674e9159 WF |
19 | BuildRequires: Qt5DBus-devel |
20 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
21 | BuildRequires: Qt5Script-devel | |
22 | BuildRequires: Qt5Sql-devel | |
23 | BuildRequires: Qt5Widgets-devel | |
5ac5a0d0 | 24 | BuildRequires: cmake >= 2.8.12 |
674e9159 WF |
25 | BuildRequires: gettext-devel |
26 | BuildRequires: hunspell-devel | |
2589ba9a WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
28 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
29 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
31 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
32 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
33 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
34 | BuildRequires: kf5-kio-devel >= %{kframever} | |
35 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
36 | BuildRequires: kf5-kross-devel >= %{kframever} | |
37 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
38 | BuildRequires: kf5-sonnet-devel >= %{kframever} | |
55f65086 | 39 | BuildRequires: ninja |
5ac5a0d0 | 40 | BuildRequires: qt5-build >= %{qtver} |
b55034f0 | 41 | BuildRequires: rpmbuild(macros) >= 1.736 |
5ac5a0d0 WF |
42 | BuildRequires: shared-mime-info |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: xz | |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
47 | %description | |
674e9159 WF |
48 | Lokalize is a computer-aided translation system that focuses on |
49 | productivity and quality assurance. It is targeted for software | |
50 | translation and also integrates external conversion tools for | |
51 | freelance office document translation. | |
52 | ||
b55034f0 JB |
53 | Features: |
54 | - Project management overview | |
55 | - Translation merging (synchronization) | |
56 | - Translation memory | |
57 | - Glossary | |
58 | - Spell-checking | |
674e9159 | 59 | |
b55034f0 JB |
60 | %description -l pl.UTF-8 |
61 | Lokalize to system komputerowo wspomaganego tłumaczenia, skupiający | |
62 | się na produktywności i zapewnieniu jakości. Głównym zastosowaniem | |
63 | jest tłumaczenie oprogramowania; zawiera także narzędzia do | |
64 | zewnętrznej konwersji do tłumaczenia dokumentów biurowych. | |
65 | ||
66 | Możliwości: | |
67 | - widok ogólny zarządzania projektem | |
68 | - łączenie tłumaczeń (synchronizacja) | |
69 | - pamięć tłumaczeń | |
70 | - słownik pojęć | |
71 | - sprawdzanie pisowni | |
5ac5a0d0 WF |
72 | |
73 | %prep | |
74 | %setup -q -n %{kaname}-%{version} | |
75 | ||
76 | %build | |
77 | install -d build | |
78 | cd build | |
178ea6f0 | 79 | %cmake .. \ |
55f65086 | 80 | -G Ninja \ |
dcf9cdf8 | 81 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
178ea6f0 JB |
82 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
83 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON | |
84 | ||
55f65086 | 85 | %ninja_build |
5ac5a0d0 | 86 | |
dcf9cdf8 WF |
87 | %if %{with tests} |
88 | ctest | |
89 | %endif | |
90 | ||
91 | ||
5ac5a0d0 WF |
92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
b55034f0 | 94 | |
55f65086 | 95 | %ninja_install -C build |
5ac5a0d0 | 96 | |
2589ba9a | 97 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/sr |
178ea6f0 | 98 | %find_lang %{kaname} --with-kde |
5ac5a0d0 WF |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
5ac5a0d0 WF |
103 | %files -f %{kaname}.lang |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_bindir}/lokalize | |
106 | %{_desktopdir}/org.kde.lokalize.desktop | |
107 | %{_datadir}/config.kcfg/lokalize.kcfg | |
108 | %{_iconsdir}/hicolor/128x128/apps/lokalize.png | |
109 | %{_iconsdir}/hicolor/32x32/apps/lokalize.png | |
110 | %{_iconsdir}/hicolor/64x64/apps/lokalize.png | |
111 | %{_iconsdir}/hicolor/scalable/apps/lokalize.svgz | |
112 | %{_datadir}/knotifications5/lokalize.notifyrc | |
113 | %{_datadir}/kxmlgui5/lokalize | |
114 | %{_datadir}/lokalize | |
115 | %{_datadir}/metainfo/org.kde.lokalize.appdata.xml | |
e4529a3d | 116 | %{_datadir}/qlogging-categories5/lokalize.categories |