]> git.pld-linux.org Git - packages/ka5-lokalize.git/blob - ka5-lokalize.spec
86eff962e4ae2239406eea46a53edd0f6616b690
[packages/ka5-lokalize.git] / ka5-lokalize.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeappsver      21.12.3
5 %define         kframever       5.56.0
6 %define         qtver           5.9.0
7 %define         kaname          lokalize
8 Summary:        Lokalize - computer-aided translation system
9 Summary(pl.UTF-8):      Lokalize - system komputerowo wspomaganego tłumaczenia
10 Name:           ka5-%{kaname}
11 Version:        21.12.3
12 Release:        1
13 License:        GPL v2+/LGPL v2.1+
14 Group:          X11/Applications
15 Source0:        https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
16 # Source0-md5:  f4cd9c90ac95caffc4731c8ed79eaea9
17 URL:            http://www.kde.org/
18 BuildRequires:  Qt5Core-devel >= %{qtver}
19 BuildRequires:  Qt5DBus-devel
20 BuildRequires:  Qt5Gui-devel >= 5.11.1
21 BuildRequires:  Qt5Script-devel
22 BuildRequires:  Qt5Sql-devel
23 BuildRequires:  Qt5Widgets-devel
24 BuildRequires:  cmake >= 2.8.12
25 BuildRequires:  gettext-devel
26 BuildRequires:  hunspell-devel
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}
39 BuildRequires:  ninja
40 BuildRequires:  qt5-build >= %{qtver}
41 BuildRequires:  rpmbuild(macros) >= 1.736
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
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
53 Features:
54 - Project management overview
55 - Translation merging (synchronization)
56 - Translation memory
57 - Glossary
58 - Spell-checking
59
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
72
73 %prep
74 %setup -q -n %{kaname}-%{version}
75
76 %build
77 install -d build
78 cd build
79 %cmake .. \
80         -G Ninja \
81         %{!?with_tests:-DBUILD_TESTING=OFF} \
82         -DHTML_INSTALL_DIR=%{_kdedocdir} \
83         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
84
85 %ninja_build
86
87 %if %{with tests}
88 ctest
89 %endif
90
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %ninja_install -C build
96
97 rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/sr
98 %find_lang %{kaname} --with-kde
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
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
116 %{_datadir}/qlogging-categories5/lokalize.categories
This page took 0.275486 seconds and 2 git commands to generate.