]>
Commit | Line | Data |
---|---|---|
c639f547 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without qch # documentation in QCH format | |
2950c847 WF |
4 | |
5 | %define orgname qtserialport | |
c639f547 JB |
6 | %define qtbase_ver %{version} |
7 | %define qttools_ver %{version} | |
8 | Summary: The Qt5 SerialPort library | |
9 | Summary(pl.UTF-8): Biblioteka Qt5 SerialPort | |
2950c847 | 10 | Name: qt5-%{orgname} |
b2c3ac1d | 11 | Version: 5.3.2 |
528b6ebb JB |
12 | Release: 1 |
13 | License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0 | |
2950c847 | 14 | Group: Libraries |
528b6ebb | 15 | Source0: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz |
b2c3ac1d | 16 | # Source0-md5: 0a38cfe5c81364f2b93d0d38b94d375f |
2950c847 | 17 | URL: http://qt-project.org/ |
528b6ebb JB |
18 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
c639f547 JB |
21 | %if %{with qch} |
22 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
23 | %endif | |
24 | BuildRequires: qt5-build >= %{qtbase_ver} | |
25 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
2950c847 | 26 | BuildRequires: rpmbuild(macros) >= 1.654 |
16017d76 | 27 | BuildRequires: tar >= 1:1.22 |
528b6ebb | 28 | BuildRequires: udev-devel |
16017d76 | 29 | BuildRequires: xz |
2950c847 WF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
2950c847 | 32 | %define specflags -fno-strict-aliasing |
c639f547 | 33 | %define qt5dir %{_libdir}/qt5 |
2950c847 WF |
34 | |
35 | %description | |
c639f547 JB |
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. | |
39 | ||
40 | This package contains Qt5 SerialPort library. | |
41 | ||
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 | |
46 | źródłowego. | |
47 | ||
48 | Ten pakiet zawiera bibliotekę Qt5 SerialPort. | |
49 | ||
50 | %package -n Qt5SerialPort | |
51 | Summary: The Qt5 SerialPort library | |
52 | Summary(pl.UTF-8): Biblioteka Qt5 SerialPort | |
53 | Group: Libraries | |
54 | Requires: Qt5Core >= %{qtbase_ver} | |
55 | Obsoletes: qt5-qtserialport | |
2950c847 | 56 | |
c639f547 | 57 | %description -n Qt5SerialPort |
528b6ebb JB |
58 | Qt5 SerialPort library provides classes that enable access to a serial |
59 | port. | |
c639f547 | 60 | |
d0442c6b | 61 | %description -n Qt5SerialPort -l pl.UTF-8 |
528b6ebb JB |
62 | Biblioteka Qt5 SerialPort udostępnia klasy pozwalające na dostęp do |
63 | portu szeregowego. | |
c639f547 JB |
64 | |
65 | %package -n Qt5SerialPort-devel | |
66 | Summary: Qt5 SerialPort library - development files | |
67 | Summary(pl.UTF-8): Biblioteka Qt5 SerialPort - pliki programistyczne | |
2950c847 | 68 | Group: Development/Libraries |
c639f547 JB |
69 | Requires: Qt5Core-devel >= %{qtbase_ver} |
70 | Requires: Qt5SerialPort = %{version}-%{release} | |
528b6ebb | 71 | Requires: udev-devel |
c639f547 JB |
72 | Obsoletes: qt5-qtserialport-devel |
73 | ||
74 | %description -n Qt5SerialPort-devel | |
75 | Qt5 SerialPort library - development files. | |
2950c847 | 76 | |
c639f547 JB |
77 | %description -n Qt5SerialPort-devel -l pl.UTF-8 |
78 | Biblioteka Qt5 SerialPort - pliki programistyczne. | |
2950c847 WF |
79 | |
80 | %package doc | |
c639f547 JB |
81 | Summary: Qt5 SerialPort documentation in HTML format |
82 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML | |
2950c847 | 83 | Group: Documentation |
c639f547 | 84 | Requires: qt5-doc-common >= %{qtbase_ver} |
16017d76 ER |
85 | %if "%{_rpmversion}" >= "5" |
86 | BuildArch: noarch | |
87 | %endif | |
2950c847 WF |
88 | |
89 | %description doc | |
c639f547 JB |
90 | Qt5 SerialPort documentation in HTML format. |
91 | ||
92 | %description doc -l pl.UTF-8 | |
93 | Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML. | |
94 | ||
95 | %package doc-qch | |
96 | Summary: Qt5 SerialPort documentation in QCH format | |
97 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH | |
98 | Group: Documentation | |
99 | Requires: qt5-doc-common >= %{qtbase_ver} | |
100 | %if "%{_rpmversion}" >= "5" | |
101 | BuildArch: noarch | |
102 | %endif | |
103 | ||
104 | %description doc-qch | |
105 | Qt5 SerialPort documentation in QCH format. | |
106 | ||
107 | %description doc-qch -l pl.UTF-8 | |
108 | Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH. | |
2950c847 WF |
109 | |
110 | %package examples | |
c639f547 JB |
111 | Summary: Qt5 SerialPort examples |
112 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 SerialPort | |
2950c847 | 113 | Group: Development/Libraries |
16017d76 ER |
114 | %if "%{_rpmversion}" >= "5" |
115 | BuildArch: noarch | |
116 | %endif | |
2950c847 WF |
117 | |
118 | %description examples | |
c639f547 JB |
119 | Qt5 SerialPort examples. |
120 | ||
121 | %description examples -l pl.UTF-8 | |
122 | Przykłady do biblioteki Qt5 SerialPort. | |
2950c847 WF |
123 | |
124 | %prep | |
125 | %setup -q -n %{orgname}-opensource-src-%{version} | |
126 | ||
127 | %build | |
128 | qmake-qt5 | |
129 | %{__make} | |
c639f547 | 130 | %{__make} %{!?with_qch:html_}docs |
2950c847 WF |
131 | |
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | %{__make} install \ | |
135 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
136 | ||
c639f547 | 137 | %{__make} install_%{!?with_qch:html_}docs \ |
2950c847 WF |
138 | INSTALL_ROOT=$RPM_BUILD_ROOT |
139 | ||
c639f547 JB |
140 | # useless symlinks |
141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
142 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
143 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
144 | ||
2950c847 WF |
145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
c639f547 JB |
148 | %post -n Qt5SerialPort -p /sbin/ldconfig |
149 | %postun -n Qt5SerialPort -p /sbin/ldconfig | |
2950c847 | 150 | |
c639f547 | 151 | %files -n Qt5SerialPort |
2950c847 | 152 | %defattr(644,root,root,755) |
528b6ebb | 153 | %doc LGPL_EXCEPTION.txt dist/changes-* |
c639f547 JB |
154 | %attr(755,root,root) %{_libdir}/libQt5SerialPort.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libQt5SerialPort.so.5 | |
2950c847 | 156 | |
c639f547 | 157 | %files -n Qt5SerialPort-devel |
2950c847 WF |
158 | %defattr(644,root,root,755) |
159 | %attr(755,root,root) %{_libdir}/libQt5SerialPort.so | |
2950c847 | 160 | %{_libdir}/libQt5SerialPort.prl |
2950c847 | 161 | %{_includedir}/qt5/QtSerialPort |
c639f547 JB |
162 | %{_pkgconfigdir}/Qt5SerialPort.pc |
163 | %{_libdir}/cmake/Qt5SerialPort | |
528b6ebb JB |
164 | %{qt5dir}/mkspecs/modules/qt_lib_serialport.pri |
165 | %{qt5dir}/mkspecs/modules/qt_lib_serialport_private.pri | |
2950c847 WF |
166 | |
167 | %files doc | |
168 | %defattr(644,root,root,755) | |
c639f547 JB |
169 | %{_docdir}/qt5-doc/qtserialport |
170 | ||
171 | %if %{with qch} | |
172 | %files doc-qch | |
173 | %defattr(644,root,root,755) | |
174 | %{_docdir}/qt5-doc/qtserialport.qch | |
175 | %endif | |
2950c847 | 176 | |
528b6ebb | 177 | # examples not installed |
2950c847 | 178 | #%files examples -f examples.files |