]>
Commit | Line | Data |
---|---|---|
5e059433 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
3018118a | 4 | %define kdeappsver 22.04.0 |
83871a0e | 5 | %define kframever 5.56.0 |
e4b2948b | 6 | %define qtver 5.9.0 |
9a8bb684 | 7 | %define kaname poxml |
9a8bb684 WF |
8 | Summary: poxml |
9 | Name: ka5-%{kaname} | |
3018118a | 10 | Version: 22.04.0 |
9a8bb684 WF |
11 | Release: 1 |
12 | License: GPL | |
13 | Group: X11/Applications/Editors | |
a39661f4 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
3018118a | 15 | # Source0-md5: 3b7974b515116bfd78f20832014613f8 |
9a8bb684 | 16 | URL: http://www.kde.org/ |
e4b2948b WF |
17 | BuildRequires: Qt5Core-devel |
18 | BuildRequires: Qt5Xml-devel | |
19 | BuildRequires: gettext-devel | |
83871a0e WF |
20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
21 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
8c77078c | 22 | BuildRequires: ninja |
e4b2948b | 23 | BuildRequires: qt5-build >= %{qtver} |
9a8bb684 WF |
24 | BuildRequires: shared-mime-info |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
e4b2948b | 28 | Translates DocBook XML files using gettext po files. |
9a8bb684 | 29 | |
0ba49e3c WF |
30 | %description -l pl.UTF-8 |
31 | poxml tłumaczy pliki DocBook XML korzystając z plików .po gettexta. | |
32 | ||
9a8bb684 WF |
33 | %prep |
34 | %setup -q -n %{kaname}-%{version} | |
35 | ||
36 | %build | |
37 | install -d build | |
38 | cd build | |
39 | %cmake \ | |
8c77078c | 40 | -G Ninja \ |
5e059433 | 41 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
83871a0e | 42 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
9a8bb684 WF |
43 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
44 | .. | |
8c77078c | 45 | %ninja_build |
9a8bb684 | 46 | |
5e059433 WF |
47 | %if %{with tests} |
48 | ctest | |
49 | %endif | |
50 | ||
51 | ||
9a8bb684 WF |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
8c77078c | 54 | %ninja_install -C build |
9a8bb684 WF |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %attr(755,root,root) %{_bindir}/po2xml | |
62 | %attr(755,root,root) %{_bindir}/split2po | |
63 | %attr(755,root,root) %{_bindir}/swappo | |
64 | %attr(755,root,root) %{_bindir}/xml2pot | |
65 | %{_mandir}/ca/man1/po2xml.1* | |
66 | %{_mandir}/ca/man1/split2po.1.* | |
67 | %{_mandir}/ca/man1/swappo.1.* | |
68 | %{_mandir}/ca/man1/xml2pot.1.* | |
69 | %{_mandir}/da/man1/po2xml.1.* | |
70 | %{_mandir}/da/man1/split2po.1.* | |
71 | %{_mandir}/da/man1/swappo.1.* | |
72 | %{_mandir}/da/man1/xml2pot.1.* | |
73 | %{_mandir}/de/man1/po2xml.1.* | |
74 | %{_mandir}/de/man1/split2po.1.* | |
75 | %{_mandir}/de/man1/swappo.1.* | |
76 | %{_mandir}/de/man1/xml2pot.1.* | |
77 | %{_mandir}/es/man1/po2xml.1.* | |
78 | %{_mandir}/es/man1/split2po.1.* | |
79 | %{_mandir}/es/man1/swappo.1.* | |
80 | %{_mandir}/es/man1/xml2pot.1.* | |
81 | %{_mandir}/et/man1/split2po.1.* | |
82 | %{_mandir}/fr/man1/po2xml.1.* | |
83 | %{_mandir}/fr/man1/split2po.1.* | |
84 | %{_mandir}/fr/man1/swappo.1.* | |
85 | %{_mandir}/fr/man1/xml2pot.1.* | |
86 | %{_mandir}/gl/man1/po2xml.1.* | |
87 | %{_mandir}/gl/man1/split2po.1.* | |
88 | %{_mandir}/gl/man1/swappo.1.* | |
89 | %{_mandir}/gl/man1/xml2pot.1.* | |
90 | %{_mandir}/it/man1/po2xml.1.* | |
91 | %{_mandir}/it/man1/split2po.1.* | |
92 | %{_mandir}/it/man1/swappo.1.* | |
93 | %{_mandir}/it/man1/xml2pot.1.* | |
94 | %{_mandir}/man1/po2xml.1.* | |
95 | %{_mandir}/man1/split2po.1.* | |
96 | %{_mandir}/man1/swappo.1.* | |
97 | %{_mandir}/man1/xml2pot.1.* | |
98 | %{_mandir}/nl/man1/po2xml.1.* | |
99 | %{_mandir}/nl/man1/split2po.1.* | |
100 | %{_mandir}/nl/man1/swappo.1.* | |
101 | %{_mandir}/nl/man1/xml2pot.1.* | |
102 | %{_mandir}/pt/man1/po2xml.1.* | |
103 | %{_mandir}/pt/man1/split2po.1.* | |
104 | %{_mandir}/pt/man1/swappo.1.* | |
105 | %{_mandir}/pt/man1/xml2pot.1.* | |
106 | %{_mandir}/pt_BR/man1/po2xml.1.* | |
107 | %{_mandir}/pt_BR/man1/split2po.1.* | |
108 | %{_mandir}/pt_BR/man1/swappo.1.* | |
109 | %{_mandir}/pt_BR/man1/xml2pot.1.* | |
110 | %{_mandir}/ru/man1/po2xml.1.* | |
111 | %{_mandir}/ru/man1/split2po.1.* | |
112 | %{_mandir}/ru/man1/swappo.1.* | |
113 | %{_mandir}/ru/man1/xml2pot.1.* | |
114 | %{_mandir}/sv/man1/po2xml.1.* | |
115 | %{_mandir}/sv/man1/split2po.1.* | |
116 | %{_mandir}/sv/man1/swappo.1.* | |
117 | %{_mandir}/sv/man1/xml2pot.1.* | |
118 | %{_mandir}/uk/man1/po2xml.1.* | |
119 | %{_mandir}/uk/man1/split2po.1.* | |
120 | %{_mandir}/uk/man1/swappo.1.* | |
121 | %{_mandir}/uk/man1/xml2pot.1.* |