]> git.pld-linux.org Git - packages/kf5-kdoctools.git/blame - kf5-kdoctools.spec
- updated to 5.116.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
df094e45 7%define kdeframever 5.116
edb42916 8%define qtver 5.15.2
19a9b680 9%define kfname kdoctools
55d93f88
WF
10
11Summary: Create documentation from DocBook
19a9b680 12Name: kf5-%{kfname}
df094e45 13Version: 5.116.0
10cce108 14Release: 1
55d93f88
WF
15License: GPL v2+/LGPL v2.1+
16Group: X11/Libraries
10cce108 17Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
df094e45 18# Source0-md5: bec0942c9b3378d0b940ddb9d333db25
55d93f88 19URL: http://www.kde.org/
10cce108 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
10cce108 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
10cce108 43%define qt5dir %{_libdir}/qt5
55d93f88
WF
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}
10cce108 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
27752dbe
WF
67%cmake -B build \
68 -G Ninja \
ae35a551 69 %{!?with_tests:-DBUILD_TESTING=OFF} \
27752dbe
WF
70 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
71
72%ninja_build -C build
55d93f88 73
ae35a551 74%if %{with tests}
27752dbe 75%ninja_build -C build test
ae35a551
WF
76%endif
77
78
55d93f88
WF
79%install
80rm -rf $RPM_BUILD_ROOT
92f9c1c2 81%ninja_install -C build
55d93f88 82
10cce108 83%find_lang %{kfname}5
185da1bf 84
55d93f88
WF
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%post -p /sbin/ldconfig
89%postun -p /sbin/ldconfig
90
10cce108 91%files -f %{kfname}5.lang
55d93f88
WF
92%defattr(644,root,root,755)
93%doc README.md
10cce108
WF
94%attr(755,root,root) %{_bindir}/checkXML5
95%attr(755,root,root) %{_bindir}/meinproc5
96%ghost %{_libdir}/libKF5DocTools.so.5
97%attr(755,root,root) %{_libdir}/libKF5DocTools.so.*.*
98%{_docdir}/HTML/*/kdoctools5-common
99%dir %{_datadir}/kf5/kdoctools
100%{_datadir}/kf5/kdoctools/customization
101%{_mandir}/man1/checkXML5.1*
102%{_mandir}/man1/meinproc5.1*
103%{_mandir}/man7/kf5options.7*
104%{_mandir}/man7/qt5options.7*
105%lang(ca) %{_mandir}/ca/man1/checkXML5.1*
106%lang(ca) %{_mandir}/ca/man1/meinproc5.1*
107%lang(ca) %{_mandir}/ca/man7/kf5options.7*
108%lang(ca) %{_mandir}/ca/man7/qt5options.7*
109%lang(de) %{_mandir}/de/man1/checkXML5.1*
110%lang(de) %{_mandir}/de/man1/meinproc5.1*
111%lang(de) %{_mandir}/de/man7/kf5options.7*
112%lang(de) %{_mandir}/de/man7/qt5options.7*
113%lang(es) %{_mandir}/es/man1/checkXML5.1*
114%lang(es) %{_mandir}/es/man1/meinproc5.1*
115%lang(es) %{_mandir}/es/man7/kf5options.7*
116%lang(es) %{_mandir}/es/man7/qt5options.7*
117%lang(it) %{_mandir}/id/man1/checkXML5.1*
118%lang(it) %{_mandir}/it/man1/checkXML5.1*
119%lang(it) %{_mandir}/it/man1/meinproc5.1*
120%lang(it) %{_mandir}/it/man7/kf5options.7*
121%lang(it) %{_mandir}/it/man7/qt5options.7*
122%lang(nl) %{_mandir}/nl/man1/checkXML5.1*
123%lang(nl) %{_mandir}/nl/man1/meinproc5.1*
124%lang(nl) %{_mandir}/nl/man7/kf5options.7*
125%lang(nl) %{_mandir}/nl/man7/qt5options.7*
126%lang(pt) %{_mandir}/pt/man1/checkXML5.1*
127%lang(pt) %{_mandir}/pt/man1/meinproc5.1*
128%lang(pt) %{_mandir}/pt/man7/kf5options.7*
129%lang(pt) %{_mandir}/pt/man7/qt5options.7*
130%lang(pt_BR) %{_mandir}/pt_BR/man1/checkXML5.1*
131%lang(pt_BR) %{_mandir}/pt_BR/man1/meinproc5.1*
132%lang(pt_BR) %{_mandir}/pt_BR/man7/kf5options.7*
133%lang(pt_BR) %{_mandir}/pt_BR/man7/qt5options.7*
134%lang(ru) %{_mandir}/ru/man1/checkXML5.1*
135%lang(ru) %{_mandir}/ru/man7/qt5options.7*
136%lang(sv) %{_mandir}/sv/man1/checkXML5.1*
137%lang(sv) %{_mandir}/sv/man1/meinproc5.1*
138%lang(sv) %{_mandir}/sv/man7/kf5options.7*
139%lang(sv) %{_mandir}/sv/man7/qt5options.7*
140%lang(uk) %{_mandir}/uk/man1/checkXML5.1*
141%lang(uk) %{_mandir}/uk/man1/meinproc5.1*
142%lang(uk) %{_mandir}/uk/man7/kf5options.7*
143%lang(uk) %{_mandir}/uk/man7/qt5options.7*
55d93f88
WF
144
145%files devel
146%defattr(644,root,root,755)
10cce108
WF
147%{_includedir}/KF5/KDocTools
148%{_libdir}/cmake/KF5DocTools
149%{_libdir}/libKF5DocTools.so
This page took 0.610171 seconds and 5 git commands to generate.