3 %bcond_without doc # Documentation
5 %define orgname qtserialport
6 %define qtbase_ver %{version}
7 %define qttools_ver %{version}
8 Summary: The Qt5 SerialPort library
9 Summary(pl.UTF-8): Biblioteka Qt5 SerialPort
13 License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
15 Source0: http://download.qt.io/official_releases/qt/5.8/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
16 # Source0-md5: 1a39fbb6436761a2ea3edce6628a41bd
17 URL: http://www.qt.io/
18 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
19 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
20 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
22 BuildRequires: qt5-assistant >= %{qttools_ver}
24 BuildRequires: qt5-build >= %{qtbase_ver}
25 BuildRequires: qt5-qmake >= %{qtbase_ver}
26 BuildRequires: rpmbuild(macros) >= 1.654
27 BuildRequires: tar >= 1:1.22
28 BuildRequires: udev-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define specflags -fno-strict-aliasing
33 %define qt5dir %{_libdir}/qt5
36 Qt is a cross-platform application and UI framework. Using Qt, you can
37 write web-enabled applications once and deploy them across desktop,
38 mobile and embedded systems without rewriting the source code.
40 This package contains Qt5 SerialPort library.
42 %description -l pl.UTF-8
43 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
44 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
45 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
48 Ten pakiet zawiera bibliotekę Qt5 SerialPort.
50 %package -n Qt5SerialPort
51 Summary: The Qt5 SerialPort library
52 Summary(pl.UTF-8): Biblioteka Qt5 SerialPort
54 Requires: Qt5Core >= %{qtbase_ver}
55 Obsoletes: qt5-qtserialport
57 %description -n Qt5SerialPort
58 Qt5 SerialPort library provides classes that enable access to a serial
61 %description -n Qt5SerialPort -l pl.UTF-8
62 Biblioteka Qt5 SerialPort udostępnia klasy pozwalające na dostęp do
65 %package -n Qt5SerialPort-devel
66 Summary: Qt5 SerialPort library - development files
67 Summary(pl.UTF-8): Biblioteka Qt5 SerialPort - pliki programistyczne
68 Group: Development/Libraries
69 Requires: Qt5Core-devel >= %{qtbase_ver}
70 Requires: Qt5SerialPort = %{version}-%{release}
72 Obsoletes: qt5-qtserialport-devel
74 %description -n Qt5SerialPort-devel
75 Qt5 SerialPort library - development files.
77 %description -n Qt5SerialPort-devel -l pl.UTF-8
78 Biblioteka Qt5 SerialPort - pliki programistyczne.
81 Summary: Qt5 SerialPort documentation in HTML format
82 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML
84 Requires: qt5-doc-common >= %{qtbase_ver}
85 %if "%{_rpmversion}" >= "5"
90 Qt5 SerialPort documentation in HTML format.
92 %description doc -l pl.UTF-8
93 Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML.
96 Summary: Qt5 SerialPort documentation in QCH format
97 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH
99 Requires: qt5-doc-common >= %{qtbase_ver}
100 %if "%{_rpmversion}" >= "5"
105 Qt5 SerialPort documentation in QCH format.
107 %description doc-qch -l pl.UTF-8
108 Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH.
111 Summary: Qt5 SerialPort examples
112 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 SerialPort
113 Group: Development/Libraries
114 %if "%{_rpmversion}" >= "5"
118 %description examples
119 Qt5 SerialPort examples.
121 %description examples -l pl.UTF-8
122 Przykłady do biblioteki Qt5 SerialPort.
125 %setup -q -n %{orgname}-opensource-src-%{version}
130 %{?with_doc:%{__make} docs}
133 rm -rf $RPM_BUILD_ROOT
135 INSTALL_ROOT=$RPM_BUILD_ROOT
138 %{__make} install_docs \
139 INSTALL_ROOT=$RPM_BUILD_ROOT
143 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?
144 # actually drop *.la, follow policy of not packaging them when *.pc exist
145 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
148 rm -rf $RPM_BUILD_ROOT
150 %post -n Qt5SerialPort -p /sbin/ldconfig
151 %postun -n Qt5SerialPort -p /sbin/ldconfig
153 %files -n Qt5SerialPort
154 %defattr(644,root,root,755)
155 %doc LGPL_EXCEPTION.txt dist/changes-*
156 %attr(755,root,root) %{_libdir}/libQt5SerialPort.so.*.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libQt5SerialPort.so.5
159 %files -n Qt5SerialPort-devel
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/libQt5SerialPort.so
162 %{_libdir}/libQt5SerialPort.prl
163 %{_includedir}/qt5/QtSerialPort
164 %{_pkgconfigdir}/Qt5SerialPort.pc
165 %{_libdir}/cmake/Qt5SerialPort
166 %{qt5dir}/mkspecs/modules/qt_lib_serialport.pri
167 %{qt5dir}/mkspecs/modules/qt_lib_serialport_private.pri
171 %defattr(644,root,root,755)
172 %{_docdir}/qt5-doc/qtserialport
175 %defattr(644,root,root,755)
176 %{_docdir}/qt5-doc/qtserialport.qch
179 # examples not installed
180 #%files examples -f examples.files