]> git.pld-linux.org Git - packages/wkhtmltopdf.git/commitdiff
- package docs
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 Apr 2015 17:51:25 +0000 (19:51 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 Apr 2015 17:51:25 +0000 (19:51 +0200)
- added qt5 bcond

wkhtmltopdf.spec

index b52a8cadf7a757ea2dd64266a87b3b00cb827ab0..a6a53891bf0baad4f35a5540ce542386e4b104a4 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    qt5     # build against Qt5
+#
 Summary:       Programs capable of converting HTML documents into images or PDF documents
 Summary(pl.UTF-8):     Programy do konwersji dokumentów HTML do obrazów lub dokumentów PDF
 Name:          wkhtmltopdf
@@ -8,6 +12,16 @@ Group:                Applications/Graphics
 Source0:       https://github.com/wkhtmltopdf/wkhtmltopdf/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: f3a665a462f4939fa31dfd3ef1d3231d
 URL:           http://wkhtmltopdf.org/
+%if %{with qt5}
+BuildRequires: Qt5Core-devel >= 5
+BuildRequires: Qt5Gui-devel >= 5
+BuildRequires: Qt5Network-devel >= 5
+BuildRequires: Qt5PrintSupport-devel >= 5.2
+BuildRequires: Qt5Svg-devel >= 5
+BuildRequires: Qt5WebKit-devel >= 5
+BuildRequires: Qt5XmlPatterns-devel >= 5
+BuildRequires: qt5-qmake
+%else
 BuildRequires: QtCore-devel >= 4
 BuildRequires: QtGui-devel >= 4
 BuildRequires: QtNetwork-devel >= 4
@@ -15,6 +29,7 @@ BuildRequires:        QtSvg-devel >= 4
 BuildRequires: QtWebKit-devel >= 4
 BuildRequires: QtXmlPatterns-devel >= 4
 BuildRequires: qt4-qmake
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,9 +45,15 @@ Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki wkhtmltox
 License:       LGPL v3+
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+%if %{with qt5}
+Requires:      Qt5Core-devel >= 5
+Requires:      Qt5Network-devel >= 5
+Requires:      Qt5WebKit-devel >= 5
+%else
 Requires:      QtCore-devel >= 4
 Requires:      QtNetwork-devel >= 4
 Requires:      QtWebKit-devel >= 4
+%endif
 
 %description devel
 Header files for wkhtmltox library.
@@ -44,7 +65,7 @@ Pliki nagłówkowe biblioteki wkhtmltox.
 %setup -q
 
 %build
-qmake-qt4 \
+qmake-%{?with_qt5:qt5}%{!?with_qt5:qt4} \
        QMAKE_CXX="%{__cxx}" \
        QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
        QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
@@ -67,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS CHANGELOG.md README.md
 %attr(755,root,root) %{_bindir}/wkhtmltoimage
 %attr(755,root,root) %{_bindir}/wkhtmltopdf
 %attr(755,root,root) %{_libdir}/libwkhtmltox.so.*.*.*
This page took 0.063141 seconds and 4 git commands to generate.