]> git.pld-linux.org Git - packages/kf5-kdoctools.git/blob - kf5-kdoctools.spec
29fb44588622ba30c9cfdd3623f43c3128dc5d3e
[packages/kf5-kdoctools.git] / kf5-kdoctools.spec
1 # TODO:
2 # - runtime Requires if any
3 # - these dirs are not own by any package
4 #  /usr/include/KF5
5 #  /usr/share/kf5
6 # - package manual pages
7 %define         kdeframever     5.4
8 %define         qtver           5.3.2
9 %define         kfname          kdoctools
10
11 Summary:        Create documentation from DocBook
12 Name:           kf5-%{kfname}
13 Version:        5.4.0
14 Release:        0.1
15 License:        GPL v2+/LGPL v2.1+
16 Group:          X11/Libraries
17 Source0:        http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
18 # Source0-md5:  a9b6de67f41ac6c988506b79dcaa7097
19 URL:            http://www.kde.org/
20 BuildRequires:  Qt5Core-devel >= %{qtver}
21 BuildRequires:  Qt5DBus-devel >= %{qtver}
22 BuildRequires:  Qt5Gui-devel >= %{qtver}
23 BuildRequires:  Qt5Test-devel >= %{qtver}
24 BuildRequires:  Qt5Widgets-devel >= %{qtver}
25 BuildRequires:  Qt5Xml-devel >= %{qtver}
26 BuildRequires:  cmake >= 2.8.12
27 BuildRequires:  kf5-extra-cmake-modules >= 1.4.0
28 BuildRequires:  kf5-karchive-devel >= %{version}
29 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
30 BuildRequires:  polkit-qt-1-devel
31 BuildRequires:  qt5-linguist >= %{qtver}
32 BuildRequires:  rpmbuild(macros) >= 1.164
33 BuildRequires:  tar >= 1:1.22
34 BuildRequires:  xz
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         qt5dir          %{_libdir}/qt5
38
39 %description
40 Provides tools to generate documentation in various format from
41 DocBook files.
42
43 %package devel
44 Summary:        Header files for %{kfname} development
45 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kfname}
46 Group:          X11/Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description devel
50 Header files for %{kfname} development.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe dla programistów używających %{kfname}.
54
55 %prep
56 %setup -q -n %{kfname}-%{version}
57
58 %build
59 install -d build
60 cd build
61 %cmake \
62         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
63         ../
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} -C build/ install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc README.md
81 %attr(755,root,root) %{_bindir}/checkXML5
82 %attr(755,root,root) %{_bindir}/meinproc5
83 %{_libdir}/libKF5XsltKde.a
84 %{_docdir}/HTML/*/kdoctools5-common
85 %dir %{_datadir}/kf5/kdoctools
86 %{_datadir}/kf5/kdoctools/customization
87 %{_mandir}/man1/checkXML5.1*
88 %{_mandir}/man7/kf5options.7*
89 %{_mandir}/man7/qt5options.7*
90 %{_mandir}/man8/meinproc5.8*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %{_includedir}/KF5/XsltKde
95 %{_libdir}/cmake/KF5DocTools
This page took 0.083328 seconds and 2 git commands to generate.