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