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