/[packages]/cauldron/qtserialport5/current/SPECS/qtserialport5.spec
ViewVC logotype

Contents of /cauldron/qtserialport5/current/SPECS/qtserialport5.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378547 - (show annotations) (download)
Mon Mar 18 01:34:54 2019 UTC (5 years, 1 month ago) by neoclust
File size: 3555 byte(s)
New version 5.12.0
1 %define snapshot 0
2 %define pre rc
3
4 %ifarch %{arm}
5 %define build_docs 0
6 %else
7 %define build_docs 1
8 %endif
9
10 %define qtmajor 5
11 %define qtminor 12
12 %define qtsubminor 2
13
14 %define rel 1
15
16 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
17
18 %define libqtserialport %mklibname qt5serialport %qtmajor
19 %define libqtserialport_d %mklibname qt5serialport -d
20
21 %if %snapshot
22 %define qttarballdir qtserialport-everywhere-src-%{qtversion}-%pre
23 %else
24 %define qttarballdir qtserialport-everywhere-src-%{qtversion}
25 %endif
26
27 Name: qtserialport5
28 Version: %{qtversion}
29 Release: %mkrel %{rel}
30 Summary: Qt Serialport component
31 Group: Development/KDE and Qt
32 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
33 URL: http://www.qt.io
34 Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
35 BuildRequires: qtbase5-devel >= %{version}
36 BuildRequires: pkgconfig(libudev)
37
38 #Branch Patchs
39
40 #Trunk Patchs
41
42 #Patch from Mageia
43
44 %description
45 Qt5 Serialport component.
46
47 #------------------------------------------------------------------------------
48
49 %if %{build_docs}
50 %package doc
51 Summary: QtSerialport%{qtmajor} APIs and tools docs
52 Group: Documentation
53 BuildArch: noarch
54 BuildRequires: qttools5
55 # This one is required to build QCH-format documentation
56 # for APIs and tools in this package set
57 BuildRequires: qttools5-assistant
58 Recommends: qttools5-assistant
59
60 %description doc
61 Documentation for APIs and tools in QtSerialport5 package for use with
62 Qt Assistant.
63
64 %files doc
65 %{_qt5_docdir}/qtserialport.qch
66 %{_qt5_docdir}/qtserialport/
67 %endif
68
69 #------------------------------------------------------------------------------
70
71 %package -n %{libqtserialport}
72 Summary: Qt%{qtmajor} Component Library
73 Group: System/Libraries
74
75 %description -n %{libqtserialport}
76 Qt%{qtmajor} Component Library.
77
78 Qt Serial Port provides the basic functionality, which includes configuring,
79 I/O operations, getting and setting the control signals of the RS-232 pinouts.
80
81 %files -n %{libqtserialport}
82 %{_qt5_libdir}/libQt5SerialPort.so.%{qtmajor}*
83
84 #------------------------------------------------------------------------------
85
86 %package -n %{libqtserialport_d}
87 Summary: Devel files needed to build apps based on QtSerialport
88 Group: Development/KDE and Qt
89 Requires: %{libqtserialport} = %version
90 Provides: libqtserialport5-devel = %version
91 Provides: libqt5serialport-devel = %version
92 Provides: qtserialport5-devel = %version
93 Provides: qt5serialport-devel = %version
94
95 Provides: libqtserialport5-private-devel = %version
96 Provides: libqt5serialport-private-devel = %version
97 Provides: qtserialport5-private-devel = %version
98 Provides: qt5serialport-private-devel = %version
99
100 %description -n %{libqtserialport_d}
101 Devel files needed to build apps based on Qt Serialport.
102
103 %files -n %{libqtserialport_d}
104 %{_qt5_libdir}/libQt5SerialPort.prl
105 %{_qt5_libdir}/libQt5SerialPort.so
106 %{_qt5_libdir}/pkgconfig/Qt5SerialPort.pc
107 %{_qt5_libdir}/cmake/Qt5SerialPort
108 %{_qt5_datadir}/mkspecs/modules/qt_lib_serialport.pri
109 %{_qt5_includedir}/QtSerialPort
110 %{_qt5_datadir}/mkspecs/modules/qt_lib_serialport_private.pri
111 %{_qt5_examplesdir}/serialport
112
113 #------------------------------------------------------------------------------
114
115 %prep
116 %setup -q -n qtserialport-everywhere-src-%{qtversion}
117
118 %build
119 %qmake_qt5
120 %make_build
121
122 %if %{build_docs}
123 %__make docs
124 %endif
125
126 %install
127 %make_install INSTALL_ROOT=%{buildroot}
128
129 %if %{build_docs}
130 %make_install install_docs INSTALL_ROOT=%{buildroot}
131 %endif
132
133 # .la and .a files, die, die, die.
134 find %{buildroot} -name '*.la' -delete

  ViewVC Help
Powered by ViewVC 1.1.30