]>
Commit | Line | Data |
---|---|---|
55d93f88 | 1 | # TODO: |
55d93f88 | 2 | # - runtime Requires if any |
19a9b680 | 3 | # - package manual pages |
57505d3c | 4 | %define kdeframever 5.85 |
c0fc4616 | 5 | %define qtver 5.14.0 |
19a9b680 | 6 | %define kfname kdoctools |
55d93f88 WF |
7 | |
8 | Summary: Create documentation from DocBook | |
19a9b680 | 9 | Name: kf5-%{kfname} |
57505d3c | 10 | Version: 5.85.0 |
301c130f | 11 | Release: 1 |
55d93f88 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
301c130f | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
57505d3c | 15 | # Source0-md5: 2676c29e1d3a93bd42e4f84f86961c4d |
55d93f88 | 16 | URL: http://www.kde.org/ |
19a9b680 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
c0fc4616 | 18 | BuildRequires: cmake >= 3.5 |
291070a5 | 19 | BuildRequires: docbook-dtd45-xml |
c0fc4616 | 20 | BuildRequires: docbook-style-xsl |
291070a5 | 21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
19a9b680 | 22 | BuildRequires: kf5-karchive-devel >= %{version} |
291070a5 | 23 | BuildRequires: kf5-ki18n-devel >= %{version} |
c0fc4616 JP |
24 | BuildRequires: libxml2-devel |
25 | BuildRequires: libxml2-progs | |
3b2771ea | 26 | BuildRequires: libxslt-devel |
92f9c1c2 | 27 | BuildRequires: ninja |
291070a5 | 28 | BuildRequires: perl-URI |
c0fc4616 | 29 | BuildRequires: perl-base |
19a9b680 | 30 | BuildRequires: qt5-linguist >= %{qtver} |
9f7d8ac1 | 31 | BuildRequires: rpmbuild(macros) >= 1.736 |
5dae0b25 ER |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
c0fc4616 | 34 | Requires: Qt5Core >= %{qtver} |
b46360f9 | 35 | Requires: kf5-dirs |
c0fc4616 | 36 | Requires: kf5-karchive >= %{version} |
55d93f88 WF |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %define qt5dir %{_libdir}/qt5 | |
40 | ||
41 | %description | |
42 | Provides tools to generate documentation in various format from | |
43 | DocBook files. | |
44 | ||
45 | %package devel | |
19a9b680 AM |
46 | Summary: Header files for %{kfname} development |
47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
55d93f88 WF |
48 | Group: X11/Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
4cfa5dd1 | 50 | Requires: Qt5Core-devel >= %{qtver} |
c0fc4616 | 51 | Requires: cmake >= 3.5 |
55d93f88 WF |
52 | |
53 | %description devel | |
19a9b680 | 54 | Header files for %{kfname} development. |
55d93f88 WF |
55 | |
56 | %description devel -l pl.UTF-8 | |
19a9b680 | 57 | Pliki nagłówkowe dla programistów używających %{kfname}. |
55d93f88 WF |
58 | |
59 | %prep | |
19a9b680 | 60 | %setup -q -n %{kfname}-%{version} |
55d93f88 WF |
61 | |
62 | %build | |
63 | install -d build | |
64 | cd build | |
92f9c1c2 | 65 | %cmake -G Ninja \ |
19a9b680 | 66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
55d93f88 | 67 | ../ |
92f9c1c2 | 68 | %ninja_build |
55d93f88 WF |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
92f9c1c2 | 72 | %ninja_install -C build |
55d93f88 | 73 | |
185da1bf AM |
74 | %find_lang %{kfname}5 |
75 | ||
55d93f88 WF |
76 | %clean |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
185da1bf | 82 | %files -f %{kfname}5.lang |
55d93f88 WF |
83 | %defattr(644,root,root,755) |
84 | %doc README.md | |
85 | %attr(755,root,root) %{_bindir}/checkXML5 | |
86 | %attr(755,root,root) %{_bindir}/meinproc5 | |
028dfdf9 | 87 | %ghost %{_libdir}/libKF5DocTools.so.5 |
301c130f | 88 | %attr(755,root,root) %{_libdir}/libKF5DocTools.so.*.* |
55d93f88 WF |
89 | %{_docdir}/HTML/*/kdoctools5-common |
90 | %dir %{_datadir}/kf5/kdoctools | |
91 | %{_datadir}/kf5/kdoctools/customization | |
92 | %{_mandir}/man1/checkXML5.1* | |
301c130f | 93 | %{_mandir}/man1/meinproc5.1* |
55d93f88 WF |
94 | %{_mandir}/man7/kf5options.7* |
95 | %{_mandir}/man7/qt5options.7* | |
60185c53 WF |
96 | %lang(ca) %{_mandir}/ca/man1/checkXML5.1* |
97 | %lang(ca) %{_mandir}/ca/man1/meinproc5.1* | |
98 | %lang(ca) %{_mandir}/ca/man7/kf5options.7* | |
99 | %lang(ca) %{_mandir}/ca/man7/qt5options.7* | |
100 | %lang(de) %{_mandir}/de/man1/checkXML5.1* | |
101 | %lang(de) %{_mandir}/de/man1/meinproc5.1* | |
102 | %lang(de) %{_mandir}/de/man7/kf5options.7* | |
103 | %lang(de) %{_mandir}/de/man7/qt5options.7* | |
104 | %lang(es) %{_mandir}/es/man1/checkXML5.1* | |
105 | %lang(es) %{_mandir}/es/man1/meinproc5.1* | |
106 | %lang(es) %{_mandir}/es/man7/kf5options.7* | |
107 | %lang(es) %{_mandir}/es/man7/qt5options.7* | |
5ef76ca9 | 108 | %lang(it) %{_mandir}/id/man1/checkXML5.1* |
60185c53 WF |
109 | %lang(it) %{_mandir}/it/man1/checkXML5.1* |
110 | %lang(it) %{_mandir}/it/man1/meinproc5.1* | |
111 | %lang(it) %{_mandir}/it/man7/kf5options.7* | |
112 | %lang(it) %{_mandir}/it/man7/qt5options.7* | |
113 | %lang(nl) %{_mandir}/nl/man1/checkXML5.1* | |
114 | %lang(nl) %{_mandir}/nl/man1/meinproc5.1* | |
115 | %lang(nl) %{_mandir}/nl/man7/kf5options.7* | |
116 | %lang(nl) %{_mandir}/nl/man7/qt5options.7* | |
117 | %lang(pt) %{_mandir}/pt/man1/checkXML5.1* | |
118 | %lang(pt) %{_mandir}/pt/man1/meinproc5.1* | |
119 | %lang(pt) %{_mandir}/pt/man7/kf5options.7* | |
120 | %lang(pt) %{_mandir}/pt/man7/qt5options.7* | |
121 | %lang(pt_BR) %{_mandir}/pt_BR/man1/checkXML5.1* | |
122 | %lang(pt_BR) %{_mandir}/pt_BR/man1/meinproc5.1* | |
123 | %lang(pt_BR) %{_mandir}/pt_BR/man7/kf5options.7* | |
124 | %lang(pt_BR) %{_mandir}/pt_BR/man7/qt5options.7* | |
125 | %lang(ru) %{_mandir}/ru/man1/checkXML5.1* | |
126 | %lang(ru) %{_mandir}/ru/man7/qt5options.7* | |
127 | %lang(sv) %{_mandir}/sv/man1/checkXML5.1* | |
128 | %lang(sv) %{_mandir}/sv/man1/meinproc5.1* | |
129 | %lang(sv) %{_mandir}/sv/man7/kf5options.7* | |
130 | %lang(sv) %{_mandir}/sv/man7/qt5options.7* | |
131 | %lang(uk) %{_mandir}/uk/man1/checkXML5.1* | |
132 | %lang(uk) %{_mandir}/uk/man1/meinproc5.1* | |
133 | %lang(uk) %{_mandir}/uk/man7/kf5options.7* | |
134 | %lang(uk) %{_mandir}/uk/man7/qt5options.7* | |
55d93f88 WF |
135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
301c130f | 138 | %{_includedir}/KF5/KDocTools |
55d93f88 | 139 | %{_libdir}/cmake/KF5DocTools |
028dfdf9 | 140 | %{_libdir}/libKF5DocTools.so |