diff --git a/kdoctools-5.6.0-fix-KDOCTOOLS_DATA_INSTALL_DIR.patch b/kdoctools-5.6.0-fix-KDOCTOOLS_DATA_INSTALL_DIR.patch deleted file mode 100644 index 344676f..0000000 --- a/kdoctools-5.6.0-fix-KDOCTOOLS_DATA_INSTALL_DIR.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Nru kdoctools-5.6.0.orig/KF5DocToolsConfig.cmake.in kdoctools-5.6.0/KF5DocToolsConfig.cmake.in ---- kdoctools-5.6.0.orig/KF5DocToolsConfig.cmake.in 2015-01-03 13:06:30.000000000 +0100 -+++ kdoctools-5.6.0/KF5DocToolsConfig.cmake.in 2015-02-14 13:17:20.123882453 +0100 -@@ -1,6 +1,6 @@ - @PACKAGE_INIT@ - --set(KDOCTOOLS_DATA_INSTALL_DIR "${PACKAGE_PREFIX_DIR}/@KF5_DATA_INSTALL_DIR@") -+set(KDOCTOOLS_DATA_INSTALL_DIR "@KF5_DATA_INSTALL_DIR@") - set(KDOCTOOLS_CUSTOMIZATION_DIR "${KDOCTOOLS_DATA_INSTALL_DIR}/kdoctools/customization") - - include("${CMAKE_CURRENT_LIST_DIR}/KF5DocToolsTargets.cmake") diff --git a/kdoctools.spec b/kdoctools.spec index 51daacb..a3dbd38 100644 --- a/kdoctools.spec +++ b/kdoctools.spec @@ -1,7 +1,8 @@ %define majver %(echo %version | cut -d. -f1-2) + Name: kdoctools Version: 5.9.0 -Release: 1mamba +Release: 2mamba Summary: Provides tools to generate documentation in various format from DocBook files Group: Development/Tools Vendor: openmamba @@ -9,7 +10,6 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.kde.org Source: http://download.kde.org/stable/frameworks/%{majver}/kdoctools-%{version}.tar.xz -Patch0: kdoctools-5.6.0-fix-KDOCTOOLS_DATA_INSTALL_DIR.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -21,80 +21,72 @@ BuildRequires: libxml2-devel BuildRequires: libxslt-devel ## AUTOBUILDREQ-END BuildRequires: cmake +BuildRequires: extra-cmake-modules +BuildRequires: rpm-macros-kde5 +BuildRequires: docbook-dtds +BuildRequires: docbook-xsl +BuildRequires: libki18n-devel +BuildRequires: libkarchive-devel +BuildRequires: gettext +BuildRequires: perl +BuildRequires: python +Requires: docbook-dtds +Requires: docbook-xsl BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Provides tools to generate documentation in various format from DocBook files. +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + %debug_package %prep %setup -q -#%patch0 -p1 %build -%cmake -d build \ - -DCMAKE_BUILD_TYPE=Release \ - -DLIB_INSTALL_DIR=%{_lib} \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DBUILD_TESTING=OFF +%cmake_kde5 -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build -%find_lang kdoctools5 +%find_lang kdoctools5 --with-man --with-qt --all-name || touch kdoctools5.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f kdoctools5.lang %defattr(-,root,root) -%{_bindir}/checkXML5 -%{_bindir}/meinproc5 -%{_includedir}/KF5/XsltKde/xslt.h -%{_includedir}/KF5/XsltKde/xslt_kde.h -%dir %{_libdir}/cmake/KF5DocTools/ -%{_libdir}/cmake/KF5DocTools/KF5DocTools*.cmake -%{_libdir}/libKF5XsltKde.a -%dir %{_datadir}/doc/HTML/*/kdoctools5-common -%{_datadir}/doc/HTML/*/kdoctools5-common/* -%dir %{_datadir}/kf5/kdoctools/customization/* -%{_datadir}/kf5/kdoctools/customization/*/* -%{_mandir}/man1/checkXML5.1* -%{_mandir}/man7/kf5options.7* -%{_mandir}/man7/qt5options.7* -%{_mandir}/man8/meinproc5.8* -%lang(de) %{_mandir}/de/man1/checkXML5.1* -%lang(de) %{_mandir}/de/man7/kf5options.7* -%lang(de) %{_mandir}/de/man7/qt5options.7* -%lang(de) %{_mandir}/de/man8/meinproc5.8* -%lang(it) %{_mandir}/it/man1/checkXML5.1* -%lang(it) %{_mandir}/it/man7/kf5options.7* -%lang(it) %{_mandir}/it/man7/qt5options.7* -%lang(it) %{_mandir}/it/man8/meinproc5.8* -%lang(nl) %{_mandir}/nl/man1/checkXML5.1* -%lang(nl) %{_mandir}/nl/man7/kf5options.7* -%lang(nl) %{_mandir}/nl/man7/qt5options.7* -%lang(nl) %{_mandir}/nl/man8/meinproc5.8* -%lang(pt_BR) %{_mandir}/pt_BR/man1/checkXML5.1* -%lang(pt_BR) %{_mandir}/pt_BR/man7/kf5options.7* -%lang(pt_BR) %{_mandir}/pt_BR/man7/qt5options.7* -%lang(pt_BR) %{_mandir}/pt_BR/man8/meinproc5.8* -%lang(ru) %{_mandir}/ru/man1/checkXML5.1* -%lang(ru) %{_mandir}/ru/man7/qt5options.7* -%lang(sv) %{_mandir}/sv/man1/checkXML5.1* -%lang(sv) %{_mandir}/sv/man7/kf5options.7* -%lang(sv) %{_mandir}/sv/man7/qt5options.7* -%lang(sv) %{_mandir}/sv/man8/meinproc5.8* -%lang(uk) %{_mandir}/uk/man1/checkXML5.1* -%lang(uk) %{_mandir}/uk/man7/kf5options.7* -%lang(uk) %{_mandir}/uk/man7/qt5options.7* -%lang(uk) %{_mandir}/uk/man8/meinproc5.8* +%{_kde5_bindir}/checkXML5 +%{_kde5_bindir}/meinproc5 +%{_datadir}/doc/HTML/*/kdoctools5-common +%{_kde5_datadir}/kf5/kdoctools +%{_mandir}/man1/checkXML5.* +%{_mandir}/man7/kf5options.* +%{_mandir}/man7/qt5options.* +%{_mandir}/man8/meinproc5.* %doc COPYING.LIB LICENSE +%files devel +%defattr(-,root,root) +%{_kde5_includedir}/XsltKde +%{_kde5_libdir}/libKF5XsltKde.a +%{_kde5_libdir}/cmake/KF5DocTools + %changelog +* Sat Apr 25 2015 Davide Madrisan 5.9.0-2mamba +- standardize the specfile +- add some missing build requirements +- add a devel package + * Wed Apr 15 2015 Automatic Build System 5.9.0-1mamba - automatic version update by autodist